Unsolved Is processing and translation of .ts files now automatic?
-
The Qt 4.8 version of the project I'm working with has 12 ,ts files under TRANSLATIONS in the .pro file, additionally these files are read in by the C++ and processed.
There is another project based on the same which although it has the same section in the .pro file it does not have any C++ for reading or processing these files.
Is this something that is no longer required in Qt >= 5.8 or is it still required and just missing?
-
Anyone, does anyone know?
-
Hi,
Please have some patience and allow at least 24 hours before bumping your own thread. People answering here do it on their time and might not live in the same timezone as you.
The ts files are generated based on your code however they can be handled separately.
-
@SPlatten No, you still need your QTranslator to load your ts-File, no automation as of yet.
And how else would you then add your own non common language package to your application, likePirate Language
-
@J-Hilk , thanks for the response, I think I've found something which could help and it would appear that the file extension is no longer required.
-
@SPlatten said in Is processing and translation of .ts files now automatic?:
I think I've found something which could help and it would appear that the file extension is no longer required.
that is correct, QTranslator will, when no extension provided, search/supplement with a range of common translator extensions.
It will take "longer" but, as far as I can tell thats the only downside
-
@SPlatten said in Is processing and translation of .ts files now automatic?:
that the file extension is no longer required.
https://doc.qt.io/qt-5/qtlinguist-hellotr-example.html'No longer' mean more than 13 years I would guess... :)
https://sourceforge.net/p/qtwin/code/HEAD/tree/qt-3/trunk/src/kernel/qtranslator.cpp line 449