Skip to content

6. Translations

Uros Preloznik edited this page May 4, 2017 · 20 revisions

New language

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.

  1. 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.
  2. 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.
  3. Copy one language in /admin/languages/ to your language name (2 letter code) and translate all text.
  4. Copy your country flag image (16x16 PNG) to /admin/logindialog/img/flags and insert line into /admin/logindialog/css/flags.css
  5. Insert new language in /admin/languages/_lang.js.

Default language

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).

Clone this wiki locally