I spent some time to find a solution about QTranslator; in other words, to show Dialogs in native language (or in a different language than English).
But I have a problem and for this reason I ask Pritpal help.
I know QTranslator can load translated strings in this way QTranslator():load( FileName, FilePath ); my problem regarding FilePath.
By default, Qt stores some values internally and these values can be overwrited with usage of qt.conf and this is an example:
Code: Select all
[Paths]
Prefix = D:/ThisIsMyPath/ThisIsMySubFolder
Plugins = plugins
Translations = translations
But how can I know this value?
The only way, that I have found, is through usage of the QLibraryInfo class like this:
Code: Select all
QtTranslator():load( FileName , QLibraryInfo():location( QLibraryInfo_TranslationsPath ) )
Unfortunately, QLibraryInfo class seems not implemented.
Is there an alternative way to know these values? If not, can be possible to implement the QLibraryInfo class?
Many thanks in advance.
Best regards.