Merge pull request #125 from heyuqi/zhcn-trans

GUI add translation for Simplified Chinese.
This commit is contained in:
Daniel Marjamäki 2012-12-21 01:02:10 -08:00
commit 3bd08552ab
3 changed files with 1599 additions and 1 deletions

1596
gui/cppcheck_zh_CN.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@ -57,7 +57,8 @@ TRANSLATIONS = cppcheck_de.ts \
cppcheck_nl.ts \ cppcheck_nl.ts \
cppcheck_ru.ts \ cppcheck_ru.ts \
cppcheck_sr.ts \ cppcheck_sr.ts \
cppcheck_sv.ts cppcheck_sv.ts \
cppcheck_zh_CN.ts
# Windows-specific options # Windows-specific options
CONFIG += embed_manifest_exe CONFIG += embed_manifest_exe

View File

@ -29,6 +29,7 @@ TranslationHandler::TranslationHandler(QObject *parent) :
{ {
// Add our available languages // Add our available languages
// Keep this list sorted // Keep this list sorted
AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Chinese (Simplified)"), "cppcheck_zh_CN");
AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Dutch"), "cppcheck_nl"); AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Dutch"), "cppcheck_nl");
AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "English"), "cppcheck_en"); AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "English"), "cppcheck_en");
AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Finnish"), "cppcheck_fi"); AddTranslation(QT_TRANSLATE_NOOP("MainWindow", "Finnish"), "cppcheck_fi");