Blesta Addons Posted May 11, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
alexistkd Posted May 11, 2014 Report Share Posted May 11, 2014 +1 Quote Link to comment Share on other sites More sharing options...
Tyson Posted May 12, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
Blesta Addons Posted May 12, 2014 Author Report Share 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 Link to comment Share on other sites More sharing options...
Blesta Addons Posted May 12, 2014 Author Report Share Posted May 12, 2014 Tested and not working "name": Language::_("CloudBackupSettings.plugin_name", true) , ---- NOT Working "name": $this->_("CloudBackupSettings.plugin_name") , ---- NOT Working Quote Link to comment Share on other sites More sharing options...
Tyson Posted May 12, 2014 Report Share 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 Link to comment Share on other sites More sharing options...
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.