Translation question
-
I have a set of language files including myapp.de_DE.qm
My code for setting the default language currently does:
QString language = QLocale::system().name();
and then uses that to build the fileid for QTranslator.load() of myapp.de_DE.qm for a system running in German in Germany.
However this doesn't work for an Austrian user whose language name is most likely de_AT.
I'm thinking of using the other variant of QTranslator::load() that accepts a QLocale() as the first parameter, but would like to know what QLocale::uiLanguages() would return on system running Austrian German. Would it include de_DE?
Thanks
David -
@Perdrix said in Translation question:
return on system running Austrian German. Would it include de_DE?
If so I would call it a bug. If you don't want the region specific art, simply replace or remove it.