GUI: Initial addition of Serbian localization using clean English template.

This commit is contained in:
vBm 2010-12-10 16:59:36 +01:00
parent 9c81695c12
commit ccaa5c2c17
11 changed files with 1228 additions and 29 deletions

View File

@ -651,6 +651,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -726,18 +731,18 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation>Falsche Sprache angegeben!</translation> <translation>Falsche Sprache angegeben!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<oldsource>Language file %1.qm not found!</oldsource> <oldsource>Language file %1.qm not found!</oldsource>
<translation>Sprachdatei %1 nicht gefunden!</translation> <translation>Sprachdatei %1 nicht gefunden!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<oldsource>Failed to load translation for language %1 from file %2.qm</oldsource> <oldsource>Failed to load translation for language %1 from file %2.qm</oldsource>
<translation>Die Übersetzungen der Sprache %1 konnten nicht aus der Datei %2 geladen werden</translation> <translation>Die Übersetzungen der Sprache %1 konnten nicht aus der Datei %2 geladen werden</translation>
@ -1139,3 +1144,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -651,6 +651,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation>Serbian</translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -726,18 +731,18 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation>Incorrect language specified!</translation> <translation>Incorrect language specified!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<oldsource>Language file %1.qm not found!</oldsource> <oldsource>Language file %1.qm not found!</oldsource>
<translation>Could not find the file: %1!</translation> <translation>Could not find the file: %1!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<oldsource>Failed to load translation for language %1 from file %2.qm</oldsource> <oldsource>Failed to load translation for language %1 from file %2.qm</oldsource>
<translation>Failed to load translation for language %1 from file %2</translation> <translation>Failed to load translation for language %1 from file %2</translation>
@ -1139,3 +1144,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -655,6 +655,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -730,18 +735,18 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation>Virheellinen kieli valittu!</translation> <translation>Virheellinen kieli valittu!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<oldsource>Language file %1.qm not found!</oldsource> <oldsource>Language file %1.qm not found!</oldsource>
<translation>Käännöstiedostoa %1 ei löytynyt!</translation> <translation>Käännöstiedostoa %1 ei löytynyt!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<oldsource>Failed to load translation for language %1 from file %2.qm</oldsource> <oldsource>Failed to load translation for language %1 from file %2.qm</oldsource>
<translation>Käänöksen lataaminen kielelle %1 tiedostosta %2 epäonnistui</translation> <translation>Käänöksen lataaminen kielelle %1 tiedostosta %2 epäonnistui</translation>
@ -1143,3 +1148,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -642,6 +642,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -717,17 +722,17 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<translation> %1 !</translation> <translation> %1 !</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1164,3 +1169,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -651,6 +651,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -726,18 +731,18 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation>Ongeldige taal gespecifieerd!</translation> <translation>Ongeldige taal gespecifieerd!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<oldsource>Language file %1.qm not found!</oldsource> <oldsource>Language file %1.qm not found!</oldsource>
<translation>Kon het taalbestand niet vinden: %1!</translation> <translation>Kon het taalbestand niet vinden: %1!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<oldsource>Failed to load translation for language %1 from file %2.qm</oldsource> <oldsource>Failed to load translation for language %1 from file %2.qm</oldsource>
<translation>Kon de vertaling voor taal %1 in bestand %2 niet laden</translation> <translation>Kon de vertaling voor taal %1 in bestand %2 niet laden</translation>
@ -1139,3 +1144,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -633,6 +633,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -708,17 +713,17 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -1115,3 +1120,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -643,6 +643,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -718,18 +723,18 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation>Выбран неверный язык!</translation> <translation>Выбран неверный язык!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<oldsource>Language file %1.qm not found!</oldsource> <oldsource>Language file %1.qm not found!</oldsource>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<oldsource>Failed to load translation for language %1 from file %2.qm</oldsource> <oldsource>Failed to load translation for language %1 from file %2.qm</oldsource>
<translation>Ошибка загрузки переводов для языка %1 из файла %2</translation> <translation>Ошибка загрузки переводов для языка %1 из файла %2</translation>
@ -1128,3 +1133,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

View File

@ -654,6 +654,11 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<source>Japanease</source> <source>Japanease</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="translationhandler.cpp" line="40"/>
<source>Serbian</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>Project</name> <name>Project</name>
@ -729,18 +734,18 @@ Do you want to stop the checking and exit Cppcheck?.</source>
<context> <context>
<name>QObject</name> <name>QObject</name>
<message> <message>
<location filename="translationhandler.cpp" line="95"/> <location filename="translationhandler.cpp" line="97"/>
<source>Incorrect language specified!</source> <source>Incorrect language specified!</source>
<translation>valt språk är ej korrekt!</translation> <translation>valt språk är ej korrekt!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="105"/> <location filename="translationhandler.cpp" line="107"/>
<source>Language file %1 not found!</source> <source>Language file %1 not found!</source>
<oldsource>Language file %1.qm not found!</oldsource> <oldsource>Language file %1.qm not found!</oldsource>
<translation>Språk filen %1 hittades ej!</translation> <translation>Språk filen %1 hittades ej!</translation>
</message> </message>
<message> <message>
<location filename="translationhandler.cpp" line="111"/> <location filename="translationhandler.cpp" line="113"/>
<source>Failed to load translation for language %1 from file %2</source> <source>Failed to load translation for language %1 from file %2</source>
<oldsource>Failed to load translation for language %1 from file %2.qm</oldsource> <oldsource>Failed to load translation for language %1 from file %2.qm</oldsource>
<translation>Misslyckades med att ladda översättningen för %1 från filen %2</translation> <translation>Misslyckades med att ladda översättningen för %1 från filen %2</translation>
@ -1142,3 +1147,4 @@ Statistics
</message> </message>
</context> </context>
</TS> </TS>

1147
gui/cppcheck_sr.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@ -40,7 +40,8 @@ TRANSLATIONS = cppcheck_fi.ts \
cppcheck_de.ts \ cppcheck_de.ts \
cppcheck_pl.ts \ cppcheck_pl.ts \
cppcheck_ru.ts \ cppcheck_ru.ts \
cppcheck_ja.ts cppcheck_ja.ts \
cppcheck_sr.ts
# Windows-specific options # Windows-specific options
CONFIG += embed_manifest_exe CONFIG += embed_manifest_exe

View File

@ -36,7 +36,8 @@ TranslationHandler::TranslationHandler(QObject *parent) :
<< QT_TRANSLATE_NOOP("MainWindow", "German") << QT_TRANSLATE_NOOP("MainWindow", "German")
<< QT_TRANSLATE_NOOP("MainWindow", "Russian") << QT_TRANSLATE_NOOP("MainWindow", "Russian")
<< QT_TRANSLATE_NOOP("MainWindow", "Polish") << QT_TRANSLATE_NOOP("MainWindow", "Polish")
<< QT_TRANSLATE_NOOP("MainWindow", "Japanese"); << QT_TRANSLATE_NOOP("MainWindow", "Japanese")
<< QT_TRANSLATE_NOOP("MainWindow", "Serbian");
mFiles << "cppcheck_en" mFiles << "cppcheck_en"
<< "cppcheck_nl" << "cppcheck_nl"
@ -45,7 +46,8 @@ TranslationHandler::TranslationHandler(QObject *parent) :
<< "cppcheck_de" << "cppcheck_de"
<< "cppcheck_ru" << "cppcheck_ru"
<< "cppcheck_pl" << "cppcheck_pl"
<< "cppcheck_ja"; << "cppcheck_ja"
<< "cppcheck_sr";
//Load english as a fallback language //Load english as a fallback language
QTranslator *english = new QTranslator(); QTranslator *english = new QTranslator();
@ -153,3 +155,4 @@ int TranslationHandler::SuggestLanguage() const
return index; return index;
} }