GUI: Sort the languages list.
This commit is contained in:
parent
e9d14b2cfd
commit
2a49ff9c4d
|
@ -27,26 +27,27 @@ TranslationHandler::TranslationHandler(QObject *parent) :
|
||||||
mCurrentLanguage(-1),
|
mCurrentLanguage(-1),
|
||||||
mTranslator(new QTranslator(this))
|
mTranslator(new QTranslator(this))
|
||||||
{
|
{
|
||||||
//Add our default languages
|
// Add our available languages
|
||||||
mNames << QT_TRANSLATE_NOOP("MainWindow", "English")
|
// Keep this list sorted
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "Dutch")
|
mNames << QT_TRANSLATE_NOOP("MainWindow", "Dutch")
|
||||||
|
<< QT_TRANSLATE_NOOP("MainWindow", "English")
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "Finnish")
|
<< QT_TRANSLATE_NOOP("MainWindow", "Finnish")
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "Swedish")
|
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "German")
|
<< QT_TRANSLATE_NOOP("MainWindow", "German")
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "Russian")
|
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "Polish")
|
|
||||||
<< QT_TRANSLATE_NOOP("MainWindow", "Japanese")
|
<< 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"
|
mFiles << "cppcheck_nl"
|
||||||
<< "cppcheck_nl"
|
<< "cppcheck_en"
|
||||||
<< "cppcheck_fi"
|
<< "cppcheck_fi"
|
||||||
<< "cppcheck_se"
|
|
||||||
<< "cppcheck_de"
|
<< "cppcheck_de"
|
||||||
<< "cppcheck_ru"
|
|
||||||
<< "cppcheck_pl"
|
|
||||||
<< "cppcheck_ja"
|
<< "cppcheck_ja"
|
||||||
<< "cppcheck_sr";
|
<< "cppcheck_pl"
|
||||||
|
<< "cppcheck_ru"
|
||||||
|
<< "cppcheck_sr"
|
||||||
|
<< "cppcheck_se";
|
||||||
|
|
||||||
//Load English as a fallback language
|
//Load English as a fallback language
|
||||||
QTranslator *english = new QTranslator();
|
QTranslator *english = new QTranslator();
|
||||||
|
|
Loading…
Reference in New Issue