Always use translation. English is default.
This commit is contained in:
parent
917cabb068
commit
fbb946edee
5
main.cpp
5
main.cpp
@ -13,9 +13,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
QTranslator translator;
|
||||
// Set default to english.
|
||||
if (QLocale::system ().name () != "ru_RU" &&
|
||||
(translator.load (QLocale::system (), "translation", "_") ||
|
||||
translator.load ("translation_en")))
|
||||
if (translator.load (QLocale::system (), "translation", "_", ":/translations") ||
|
||||
translator.load (":/translations/translation_en"))
|
||||
{
|
||||
a.installTranslator(&translator);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user