Skip to content

Translating

zetok edited this page Feb 15, 2015 · 38 revisions

To make new translation, or update/correct one, you will need Qt Linguist and lupdate tools.

##On *nix ###If you're just updating: run

lupdate -pro qtox.pro -ts translations/$LANGUAGE.ts ## don't forget to substitute $LANGUAGE
## if you're adding new language you have to:
lupdate -pro qtox.pro -ts translations/$LANGUAGE.ts -target-language ln_NW   # substitute $LANGUAGE and 'ln_NW'

Open updated .ts file in Linguist, translate it, save, commit changes and send pull request.

###If you're adding new translation(s): Files to edit:

translations/i18n.pri
res.qrc

In both of those files search for translations and add your language. Then proceed with steps for updating translation.

Search for static QStringList locales and static QStringList langs in src/widget/form/settings/generalform.cpp, and modify accordingly.

Clone this wiki locally