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