GUI: Sort the languages list.

This commit is contained in:
Kimmo Varis 2011-02-06 20:47:12 +02:00
parent e9d14b2cfd
commit 2a49ff9c4d
1 changed files with 14 additions and 13 deletions

View File

@ -27,26 +27,27 @@ TranslationHandler::TranslationHandler(QObject *parent) :
mCurrentLanguage(-1),
mTranslator(new QTranslator(this))
{
//Add our default languages
mNames << QT_TRANSLATE_NOOP("MainWindow", "English")
<< QT_TRANSLATE_NOOP("MainWindow", "Dutch")
// Add our available languages
// Keep this list sorted
mNames << QT_TRANSLATE_NOOP("MainWindow", "Dutch")
<< QT_TRANSLATE_NOOP("MainWindow", "English")
<< QT_TRANSLATE_NOOP("MainWindow", "Finnish")
<< QT_TRANSLATE_NOOP("MainWindow", "Swedish")
<< QT_TRANSLATE_NOOP("MainWindow", "German")
<< QT_TRANSLATE_NOOP("MainWindow", "Russian")
<< QT_TRANSLATE_NOOP("MainWindow", "Polish")
<< QT_TRANSLATE_NOOP("MainWindow", "Japanese")
<< QT_TRANSLATE_NOOP("MainWindow", "Serbian");
<< QT_TRANSLATE_NOOP("MainWindow", "Polish")
<< QT_TRANSLATE_NOOP("MainWindow", "Russian")
<< QT_TRANSLATE_NOOP("MainWindow", "Serbian")
<< QT_TRANSLATE_NOOP("MainWindow", "Swedish");
mFiles << "cppcheck_en"
<< "cppcheck_nl"
mFiles << "cppcheck_nl"
<< "cppcheck_en"
<< "cppcheck_fi"
<< "cppcheck_se"
<< "cppcheck_de"
<< "cppcheck_ru"
<< "cppcheck_pl"
<< "cppcheck_ja"
<< "cppcheck_sr";
<< "cppcheck_pl"
<< "cppcheck_ru"
<< "cppcheck_sr"
<< "cppcheck_se";
//Load English as a fallback language
QTranslator *english = new QTranslator();