From 03bd4fa463e3e6b6dbcde4261ea6d08d992d6417 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Sun, 20 Mar 2011 16:20:06 +0200 Subject: [PATCH] GUI: Rename Swedish translation file. Ln pointed out in IRC that 'se' is not ISO-639 name of the Swedish, but 'sv' is. So rename the translation file to use the correct ISO-639 name. This wrong name also probably caused the GUI not recognizing Swedish locale of the OS. --- gui/{cppcheck_se.ts => cppcheck_sv.ts} | 0 gui/gui.pro | 2 +- gui/translationhandler.cpp | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename gui/{cppcheck_se.ts => cppcheck_sv.ts} (100%) diff --git a/gui/cppcheck_se.ts b/gui/cppcheck_sv.ts similarity index 100% rename from gui/cppcheck_se.ts rename to gui/cppcheck_sv.ts diff --git a/gui/gui.pro b/gui/gui.pro index 26428b4ed..a238a6262 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -38,7 +38,7 @@ TRANSLATIONS = cppcheck_fi.ts \ cppcheck_fr.ts \ cppcheck_nl.ts \ cppcheck_en.ts \ - cppcheck_se.ts \ + cppcheck_sv.ts \ cppcheck_de.ts \ cppcheck_pl.ts \ cppcheck_ru.ts \ diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp index 6a1cb1d9a..646d04c4c 100644 --- a/gui/translationhandler.cpp +++ b/gui/translationhandler.cpp @@ -38,7 +38,7 @@ TranslationHandler::TranslationHandler(QObject *parent) : AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Polish"), "cppcheck_pl"); AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Russian"), "cppcheck_ru"); AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Serbian"), "cppcheck_sr"); - AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Swedish"), "cppcheck_se"); + AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Swedish"), "cppcheck_sv"); //Load English as a fallback language QTranslator *english = new QTranslator();