Add and override language constants
This plugin is for version 7 of the product and has not been ported to version 8 yet. We'll eventually be rewriting the existing plugins to v8 platform, please let us know
if you require this particular plugin there.
To find out which plugins have already been ported to v8, click here
This plugin shows how to set different texts based on the current interface language. It currently provides English and Russian versions of text strings.
To change the current language, go to Settings > Common and select English or Русский in Language dropdown.
Upon downloading and extracting plugin package, rename its main directory from:
Then you'll need to deploy the plugin so that its index file is available at the following location:
To enable the plugin, add the following to array defined in data/settings/config.php file:
'plugins.about-i18n' => true,
Plugin adds tab to user account settings, with sample button and link there.
You can use the same idea for merely overriding existing translations and preserving your modifications through updates. For that, remove js and templates subdirectories, and main code in index.php file will only need one line kept which actually enables use of localization for plugins:
And certainly, you can add translations for other languages, just make sure the language files names match those of files found in main i18n directory.