Add and override language constants

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:

plugin-about-i18n-master

to:

about-i18n

Then you'll need to deploy the plugin so that its index file is available at the following location:

data/plugins/about-i18n/index.php

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:

$this->SetI18N(true);

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.