-
User Story
-
Resolution: Fixed
-
P2: Important
-
5.12
-
None
-
b743a9827 (dev), 99e98ea25 (dev), acb8ca6ab (6.10), 2390cb872 (dev), 80c798d23 (6.10)
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:
- is required for
-
QTBUG-110009 Multi Languge related documents for Qt6 is not consistent
-
- Closed
-
- relates to
-
QTBUG-71876 Doc: Consolidate Internationalization documentation
-
- Closed
-
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 |
648327,5 | linguist: add new example for Qt i18n for ID based translation | dev | qt/qttools | Status: NEW | 0 | 0 |
648329,2 | linguist: remove old examples | dev | qt/qttools | Status: NEW | 0 | 0 |