How are tier 1 framework qm translations supposed to be loaded?

Harald Sitter sitter at kde.org
Tue Jan 26 10:00:18 GMT 2021


On Tue, Jan 26, 2021 at 10:35 AM Halla Rempt <boud at valdyas.org> wrote:
>
> It turns out that we have several problems with loading translations in Krita. Qt and ki18n translations seem to follow different rules with regards to users setting a language other than the platform language, on different platforms.
>
> But it also seems that the qm-based translations from the tier1 frameworks we ship aren't loaded at all, unless the user is using distro packages for everything, in a plasma environment. I can see code in ki18n that tries to load the translations for Qt, but the frameworks don't seem to have that startup hook, and I don't know how it's supposed to work...

The frameworks that are using Qt translation tech instead of gettext
will generally set up a loader somewhere in the code.

https://api.kde.org/ecm/module/ECMPoQmTools.html

"It assumes that the .qm file for the language code <lang> is
installed as <sharedir>/locale/<lang>/LC_MESSAGES/<catalog_name>.qm,
where <sharedir> is one of the directories given by the
GenericDataLocation of QStandardPaths."

HS


More information about the kde-devel mailing list