Changeset 458
- Timestamp:
- 09/08/08 16:42:53 (5 years ago)
- Files:
-
- 1 modified
-
trunk/gui/src/main.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/src/main.cpp
r436 r458 22 22 23 23 #include <QtGui> 24 #include <QLibraryInfo> 24 25 #include "config.h" 25 26 #include "version.h" … … 218 219 pQApp->setFont( QFont( family, pPref->getApplicationFontPointSize() ) ); 219 220 221 QTranslator qttor( 0 ); 220 222 QTranslator tor( 0 ); 221 223 QString sTranslationFile = QString("hydrogen.") + QLocale::system().name(); 222 224 QString sLocale = QLocale::system().name(); 223 225 if ( sLocale != "C") { 226 if (qttor.load( QString( "qt_" ) + sLocale, 227 QLibraryInfo::location(QLibraryInfo::TranslationsPath))) 228 pQApp->installTranslator( &qttor ); 229 else 230 _INFOLOG( QString("Warning: No Qt translation for locale %1 found.").arg(QLocale::system().name())); 231 232 224 233 QString sTranslationPath = "data/i18n"; 225 234 QString total = sTranslationPath + "/" + sTranslationFile + ".qm";