341

Product support

Visit this product's website for support.

Categories

Adds the artisan localize:addstrings {Author.Plugin} {lang-code} command that will scan all the YAML files in {Author.Plugin} for language keys and add them to the /plugins/{author}/{plugin}/lang/{lang-code}/lang.php file.

For example, if you have the following file inside your plugin this command will add the inetis.testplugin::lang.user.name string to the language file with the default value NEW_name. This helps with finding language keys that haven't been translated yet.

user_name:
    label: inetis.testplugin::lang.user.name
    span: auto
    type: text

Usage

php artisan localize:addstrings {Author.Name} {lang-code}
Parameter Explanation Example
First name of the plugin Rainlab.Pages
Second language abbreviation en

If the destination language doesn't exist, this plugin will create it.

Dependencies

This plugin required Rainlab.Builder

Support

Please use GitHub Issues to report any issues with this plugin.

Reviews should not be used for getting support or reporting bugs, if you need support please use the Plugin support link.

Usage

php artisan localize:addstrings {Author.Plugin} {lang-code}
Parameter Explanation Example
First name of the plugin Rainlab.Pages
Second language abbreviation en

If the destination language doesn't exist, this plugin will create it.

1.0.1

First version of Localise

Dec 18, 2017