Added path to translations.

--HG--
branch : develop
This commit is contained in:
dismine 2013-11-26 18:42:58 +02:00
parent db004d4521
commit 66e6f11104

View File

@ -69,10 +69,14 @@ int main(int argc, char *argv[])
app.installTranslator(&qtTranslator);
QTranslator appTranslator;
#ifdef QT_DEBUG
#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);