-
Notifications
You must be signed in to change notification settings - Fork 123
Translating welle.io
Albrecht Lohofener edited this page Jul 1, 2017
·
1 revision
To translate welle.io in your native language QT provides a set of tools. This description shows how to translate welle.io.
For more information about the translation process please visit the official QT documentation https://doc.qt.io/qt-5/linguist-overview.html.
- Add your language in i18n format to file "welle.io.pro". In this example I show how to translate the app into "new_language"
TRANSLATIONS = i18n/de_DE.ts i18n/new_language.ts
- Run "lupdate". If you use QT creator, read this page ,please.
Updating 'i18n/de_DE.ts'...
Found 142 source text(s) (0 new and 142 already existing)
Updating 'i18n/new_language.ts'...
Found 142 source text(s) (142 new and 0 already existing)
- Start "Qt Linguist" and load the file "i18n/new_language.ts"
- Choose the target language and start the translation
- Finish your translation
- Run "lrelease" to create a "i18n/new_language.qm" which contains all the translations usable by welle.io
- Add the QM-file to the resource file "resources.qrc"
<file>i18n/new_language.qm</file>
- Compile welle.io and test the translation with the command line option "-L"
More command line information: https://github.com/albrechtl/welle.io#usage - Add both files "i18n/new_language.ts" and "i18n/new_language.qm" the the git repository
- Create a pull request to merge the new language into the main branch.