Details
-
User Story
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12
-
None
Description
The examples in Qt Linguist should be revised & consolidated. In particular, they do not follow best practices:
- All of them look up the translation files in the current working directory, which is confusing especially for shadow builds. Instead, the qrc system should be used (possible nowadays with CONFIG += lrelease embed_translations)
- The current locale is determined via QLocale::system().name(). Instead, best practice is to use QTranslator::load(QLocale(), ...).
Qt Linguist Examples
There are also other examples and demos that do show translation support:
Finally, some examples do contain QTranslator setups that do not follow best practices, either:
Attachments
Issue Links
- is required for
-
QTBUG-110009 Multi Languge related documents for Qt6 is not consistent
- In Progress
- relates to
-
QTBUG-71876 Doc: Consolidate Internationalization documentation
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-71856 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
245834,4 | Remove translator functionality from Qt Widget examples | dev | qt/qtbase | Status: NEW | 0 | 0 |