Jump to content

Recommended Posts

Posted

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

Posted

Tested and not working

"name": Language::_("CloudBackupSettings.plugin_name", true) , ---- NOT Working

"name": $this->_("CloudBackupSettings.plugin_name") , ---- NOT Working

Posted

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";
?>

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...