[Interest] How to properly translate an application?

Mark Gaiser markg85 at gmail.com
Thu Jun 7 14:22:08 CEST 2018


Hi,

I have a windows desktop application (Qt 5.9 LTS) here that has Dutch and
English translations files (in .ts format) created with Qt Linguist. Any
strings in that file show up in the Qt UI just fine in the chosen language.

But if i set the language to Dutch (operating system language is English)
then Qt's default buttons are still in English. Sure, they can be
translated on a case-by-case basis but i don't think that
should be needed.

I don't think there is a problem with the .ts files as anything in there
just works in the UI.
But perhaps i missed a step?

The translation files are generated as follows:

lupdate -verbosr file.pro

"file.pro" contians the required translation lines:
TRANSLATIONS += dutch_nl.ts
TRANSLATIONS += english_en.ts


Best regards,
Mark Gaiser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20180607/975a8259/attachment.html>


More information about the Interest mailing list