Added path to translations.
--HG-- branch : develop
This commit is contained in:
parent
db004d4521
commit
66e6f11104
|
@ -69,11 +69,15 @@ int main(int argc, char *argv[])
|
|||
app.installTranslator(&qtTranslator);
|
||||
|
||||
QTranslator appTranslator;
|
||||
#ifdef Q_OS_WIN32
|
||||
appTranslator.load("valentina_" + QLocale::system().name(), ".");
|
||||
#else
|
||||
#ifdef QT_DEBUG
|
||||
appTranslator.load("valentina_" + QLocale::system().name(), ".");
|
||||
#else
|
||||
appTranslator.load("valentina_" + QLocale::system().name(), "/usr/share/valentina/translations");
|
||||
#endif
|
||||
#endif
|
||||
app.installTranslator(&appTranslator);
|
||||
|
||||
MainWindow w;
|
||||
|
|
Loading…
Reference in New Issue
Block a user