[Localization] Adding Translations For New language To Qt6
Kizito Birabwa
kbirabwa at yahoo.co.uk
Sun Dec 22 15:50:20 CET 2024
Hello All,
I would like to add translations for Luganda (lg) to Qt6. It has none at the moment, i.e. to add a new language to Qt6.
I seek guidance on how to do this please.
I have been following the instructions in the Qt Localization wiki, at https://wiki.qt.io/Qt_Localization, which show how to update or add to translations for existing languages in Qt5 and Qt6.
They also show how to add translations for a new language in Qt5, which I have successfully used - for Qt5.
I am using Linux with Qt6 (6.7.3) and its development tools and libraries installed and have managed to build Qt6 (6.7.3), but stumble at the step:
cd qttranslations; <qt-installation>/bin/qt-cmake . -G Ninja; ninja ts-<lang>
If I put 'ts-lg', ninja does not recognise the target. It returns a message that ends with:
ninja: error: unknown target 'ts-lg', did you mean 'ts-lv'?
If I put 'ts-untranslated' as in the instructions for Qt5, ninja again does not recognise the target:
ninja: error: unknown target 'ts-untranslated'
For Qt5 I ended up having to get templates from the link to https://l10n-files.qt.io/l10n-files/, that was about seven months ago. This time the link just presents me with a blank page.
I hope you can help,
Thanks in advance
Regards
Kizito Birabwa
More information about the Localization
mailing list