Changeset 12008


Ignore:
Timestamp:
Feb 23, 2011, 2:16:16 AM (11 years ago)
Author:
jordan
Message:

(trunk qt) #4050 "transmission-qt translations don't load under Linux" -- fixed via patch from taem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/app.cc

    r11758 r12008  
    2424#include <QLibraryInfo>
    2525#include <QRect>
     26#include <QtGlobal>
    2627
    2728#include <libtransmission/transmission.h>
     
    9899
    99100    // install the transmission translator
     101#ifdef Q_OS_WIN32
    100102    appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QCoreApplication::applicationDirPath() + "/translations" );
     103#else
     104    appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath) );
     105#endif
    101106    installTranslator( &appTranslator );
    102107
Note: See TracChangeset for help on using the changeset viewer.