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 . Quote
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. Quote
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 Quote
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 Quote
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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.