From 6754258823464d9f9f3b9fc229aa10b6ad661e0a Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 23 Feb 2011 02:16:16 +0000 Subject: [PATCH] (trunk qt) #4050 "transmission-qt translations don't load under Linux" -- fixed via patch from taem --- qt/app.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qt/app.cc b/qt/app.cc index b2cb67f5a..c1617cbe9 100644 --- a/qt/app.cc +++ b/qt/app.cc @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -97,7 +98,11 @@ MyApp :: MyApp( int& argc, char ** argv ): installTranslator( &qtTranslator ); // install the transmission translator +#ifdef Q_OS_WIN32 appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QCoreApplication::applicationDirPath() + "/translations" ); +#else + appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath) ); +#endif installTranslator( &appTranslator ); Formatter::initUnits( ); -- 2.40.0