(trunk qt) #3766 "Qt client i18n improvements" -- committed patch from rb07

This commit is contained in:
Charles Kerr
2010-11-25 03:00:25 +00:00
parent 4f3ea71479
commit b03984d039
8 changed files with 10 additions and 7 deletions

View File

@@ -23,7 +23,6 @@
#include <QLabel>
#include <QLibraryInfo>
#include <QRect>
#include <QTranslator>
#include <libtransmission/transmission.h>
#include <libtransmission/tr-getopt.h>
@@ -94,13 +93,11 @@ MyApp :: MyApp( int& argc, char ** argv ):
setApplicationName( MY_CONFIG_NAME );
// install the qt translator
QTranslator qtTranslator;
qtTranslator.load( "qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
installTranslator( &qtTranslator );
// install the transmission translator
QTranslator appTranslator;
appTranslator.load( QString(MY_READABLE_NAME) + "_" + QLocale::system().name() );
appTranslator.load( QString(MY_CONFIG_NAME) + "_" + QLocale::system().name(), QCoreApplication::applicationDirPath() + "/translations" );
installTranslator( &appTranslator );
Formatter::initUnits( );