Translation - Which qm file loaded ?
Unsolved
General and Desktop
-
Hi
Is there any Qt API to find which qm(lang translation file) is loaded ?
-
@dheerendra said in Translation - Which qm file loaded ?:
Is there any Qt API to find which qm(lang translation file) is loaded ?
No, you have to remember it by yourself.
-
@dheerendra QTranslator should have the filePath function:
QString QTranslator::filePath() const
usually the translation files you load have a country/language specific identifier.
qt_en.qm
for exampleshould be easy enough to conclude what file/language was loaded :D
-
@J-Hilk @Christian-Ehrlicher @VRonin
Thanks for the reply. I appreciate the same. I have done few work-arounds to get the information. My interest was to find through some API if exists.