Blesta Addons Posted May 11, 2014 Report Posted May 11, 2014 we can't add language variable to the config.json , this is usefull for language translation . specially name and description .
Tyson Posted May 12, 2014 Report Posted May 12, 2014 You can add language terms to the config file, but I don't think the description can yet be a language definition. Some modules already do this.
Blesta Addons Posted May 12, 2014 Author Report Posted May 12, 2014 You can add language terms to the config file, but I don't think the description can yet be a language definition. Some modules already do this. i have tested before requesting this , but is not showing anything .... i think i have included the language file after the json file .. i will reodrer them and try again
Blesta Addons Posted May 12, 2014 Author Report Posted May 12, 2014 Tested and not working "name": Language::_("CloudBackupSettings.plugin_name", true) , ---- NOT Working "name": $this->_("CloudBackupSettings.plugin_name") , ---- NOT Working
Tyson Posted May 12, 2014 Report Posted May 12, 2014 Yes, you need to include the language file before the config file. Don't attempt to use PHP in the JSON file--just set the string: { "version": "1.0.0", "name": "MyPlugin.name", "description": "A plugin like no other!", "authors": [ { "name": "Phillips Data, Inc.", "url": "http://www.blesta.com" } ] } Your language file: <?php $lang['MyPlugin.name'] = "My Plugin's Name"; ?> Michael 1
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now