Skip to content

Translating

zetok edited this page Feb 24, 2015 · 38 revisions

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

Extensive guide: http://qt-project.org/doc/qt-4.8/linguist-translators.html

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

lupdate -pro qtox.pro -ts translations/$LANGUAGE.ts ## don't forget to substitute $LANGUAGE

Open updated .ts file in Qt 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.

Now generate new translation file:

lupdate -pro qtox.pro -ts translations/$LANGUAGE.ts -target-language ln_NW ## substitute $LANGUAGE and 'ln_NW'

Open generated .ts file with Qt Linguist, translate it, save, add modified/created files to git, commit, push to github and make pull request.

Clone this wiki locally