Difference between revisions of "Converting translation files"
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
<source lang=bash> | <source lang=bash> | ||
lconvert -i data/translations/knotter_it.ts -o data/translations/knotter.pot | lconvert -i data/translations/knotter_it.ts -o data/translations/knotter.pot | ||
+ | </source> | ||
+ | |||
+ | |||
+ | ==From Qt Linguist to GNU Gettext translation== | ||
+ | # Convert one of the knotter_(lang).ts to knotter_knotter-(lang).po (lconvert) | ||
+ | |||
+ | Example: | ||
+ | |||
+ | <source lang=bash> | ||
+ | lconvert -i data/translations/knotter_it.ts -o data/translations/knotter_knotter-it.pot | ||
</source> | </source> |
Revision as of 14:59, 18 October 2013
From GNU Gettext Qt Linguist
- Convert knotter_knotter-(lang).po into knotter_(lang).ts (lconvert)
- Add knotter_(lang).ts to translations.pri
- Update the translations (lupdate)
- Compile knotter_(lang).ts into knotter_(lang).qm (lrelease)
Example:
lconvert -i data/translations/knotter_knotter-ru.po -o data/translations/knotter_ru.ts
lconvert -i data/translations/knotter_knotter-en_GB.po -o data/translations/knotter_en_GB.ts
lupdate knotter.pro
lrelease knotter.pro
From Qt Linguist to GNU Gettext template
- Update the translations (lupdate)
- Convert one of the knotter_(lang).ts to knotter.pot (lconvert)
Example:
lconvert -i data/translations/knotter_it.ts -o data/translations/knotter.pot
From Qt Linguist to GNU Gettext translation
- Convert one of the knotter_(lang).ts to knotter_knotter-(lang).po (lconvert)
Example:
lconvert -i data/translations/knotter_it.ts -o data/translations/knotter_knotter-it.pot