-
Notifications
You must be signed in to change notification settings - Fork 31
6. Translations
Uros Preloznik edited this page May 4, 2017
·
20 revisions
To translate this project into new langauge follow this instructions. If you wish to share your translation with others, you will have to prepare pull request for committing translations to main repository.
- Original QWC Translations are still used (most of the strings), but file was split into separate files for each language. Located at - /client/site/js/lang/. Modify or add new file if needed.
- Check if your language exists in core Ext JS locale files /admin/languages/locale/. If it's is not, then copy one of the languages and translate it.
- Copy one language in /admin/languages/ to your language name (2 letter code) and translate all text.
- Copy your country flag image (16x16 PNG) to /admin/logindialog/img/flags and insert line into /admin/logindialog/css/flags.css
- Insert new language in /admin/languages/_lang.js.
Open admin/settings.php and adjust language in this line (if you do not have this, simply include this line):
define('DEFAULT_LANG', 'en');
User can always change language with lang parameter in URL (for example, when you change language in login window).