From 0db35229cbf434446ce43bebe6714cd1179b1b81 Mon Sep 17 00:00:00 2001 From: Vesa Pikki Date: Sun, 9 Aug 2009 23:11:13 +0300 Subject: [PATCH] Added a Polish translation file. Also added some missing Finnish and English translations. --- gui/cppcheck_de.ts | 13 +- gui/cppcheck_en.ts | 29 +- gui/cppcheck_fi.ts | 29 +- gui/cppcheck_pl.ts | 607 +++++++++++++++++++++++++++++++++++++ gui/cppcheck_ru.ts | 13 +- gui/cppcheck_se.ts | 13 +- gui/gui.pro | 1 + gui/translationhandler.cpp | 6 +- 8 files changed, 673 insertions(+), 38 deletions(-) create mode 100644 gui/cppcheck_pl.ts diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts index 302f33431..2bddbd519 100644 --- a/gui/cppcheck_de.ts +++ b/gui/cppcheck_de.ts @@ -18,7 +18,7 @@ Cppcheck - A tool for static C/C++ code analysis. - + Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. @@ -382,22 +382,27 @@ Stop the checking before exiting. Russian + + + Polish + + QObject - + Incorrect language specified! - + Language file %1 not found! Language file %1.qm not found! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm diff --git a/gui/cppcheck_en.ts b/gui/cppcheck_en.ts index 05b11fe8f..3b7e585b3 100644 --- a/gui/cppcheck_en.ts +++ b/gui/cppcheck_en.ts @@ -18,7 +18,7 @@ Cppcheck - A tool for static C/C++ code analysis. Cppcheck - A tool for static C/C++ code analysis. - + Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. @@ -259,7 +259,7 @@ kate -l(line) (file) Show possible style errors - + Show possible style errors @@ -338,7 +338,7 @@ Stop the checking before exiting. XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) @@ -353,7 +353,7 @@ Stop the checking before exiting. Text files (*.txt) - + Text files (*.txt) @@ -399,22 +399,27 @@ Stop the checking before exiting. Russian Russian + + + Polish + Polish + QObject - + Incorrect language specified! Incorrect language specified! - + Language file %1 not found! Language file %1.qm not found! Could not find the file: %1! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Failed to load translation for language %1 from file %2 @@ -484,7 +489,7 @@ Please check the application path and parameters are correct. possible error - + possible error @@ -494,7 +499,7 @@ Please check the application path and parameters are correct. possible style - + possible style @@ -525,13 +530,13 @@ To toggle what kind of errors are shown, open view menu. No errors found, nothing to save. - + No errors found, nothing to save. Failed to save the report. - + Failed to save the report. @@ -544,7 +549,7 @@ To toggle what kind of errors are shown, open view menu. Preferences - + Preferences diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index 0fb113622..ea9d12f55 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -18,7 +18,7 @@ Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Työkalu C/C++ koodin staattiseen analysointiin. - + Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. Copyright (C) 2007-2009 Daniel Marjamäki ja cppcheck tiimi. @@ -261,7 +261,7 @@ kate -l(line) (file) Show possible style errors - + Näytä mahdolliset tyylivirheet @@ -340,7 +340,7 @@ Lopeta tarkistus ennen ohjelman sammuttamista. XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) - + XML-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv) @@ -355,7 +355,7 @@ Lopeta tarkistus ennen ohjelman sammuttamista. Text files (*.txt) - + Tekstitiedostot (*.txt) @@ -403,22 +403,27 @@ Lopeta tarkistus ennen ohjelman sammuttamista. Russian Venäjä + + + Polish + Puola + QObject - + Incorrect language specified! Virheellinen kieli valittu! - + Language file %1 not found! Language file %1.qm not found! Käännöstiedostoa %1 ei löytynyt! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Käänöksen lataaminen kielelle %1 tiedostosta %2 epäonnistui @@ -488,7 +493,7 @@ Tarkista että ohjelman polku ja parametrit ovat oikeat. possible error - + mahdollinen virhe @@ -498,7 +503,7 @@ Tarkista että ohjelman polku ja parametrit ovat oikeat. possible style - + tyylivirhe @@ -529,13 +534,13 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik No errors found, nothing to save. - + Virheitä ei löytynyt, ei mitään tallennettavaa. Failed to save the report. - + Raportin tallentaminen epäonnistui. @@ -548,7 +553,7 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik Preferences - + Asetukset diff --git a/gui/cppcheck_pl.ts b/gui/cppcheck_pl.ts new file mode 100644 index 000000000..bea3b8a03 --- /dev/null +++ b/gui/cppcheck_pl.ts @@ -0,0 +1,607 @@ + + + + + About + + + About Cppcheck + + + + + Version %1 + + + + + Cppcheck - A tool for static C/C++ code analysis. + + + + + Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. + + + + + This program is licensed under the terms +of the GNU General Public License version 3 + + + + + Visit Cppcheck homepage at %1 + + + + + ApplicationDialog + + + Add an application + + + + + Here you can add applications that can open error files. +Specify a name for the application and the application to execute. + +The following texts are replaced with appriproate values when application is executed: +(file) - Filename containing the error +(line) - Line number containing the error +(message) - Error message +(severity) - Error severity + +Example opening a file with Kate and make Kate scroll to the correct line: +kate -l(line) (file) + + + + + Application's name + + + + + Application to execute + + + + + Browse + + + + + Executable files (*.exe);;All files(*.*) + + + + + Select viewer application + + + + + Cppcheck + + + + + You must specify a name and a path for the application! + + + + + FileViewDialog + + + Could not find the file: %1 + + + + + + Cppcheck + + + + + Could not read the file: %1 + + + + + MainWindow + + + + + + + Cppcheck + + + + + &File + + + + + &View + + + + + &Language + + + + + &Help + + + + + &Check + + + + + &Edit + + + + + Standard + + + + + &License... + + + + + A&uthors... + + + + + &About... + + + + + &Files... + + + + + Ctrl+F + + + + + &Directory... + + + + + Ctrl+D + + + + + &Recheck files + + + + + Ctrl+R + + + + + &Stop + + + + + Esc + + + + + &Save results to file... + + + + + Ctrl+S + + + + + &Quit + + + + + &Clear results + + + + + &Preferences + + + + + Show possible false positives + + + + + Show security errors + + + + + Show style errors + + + + + Show possible style errors + + + + + Show common errors + + + + + &Check all + + + + + &Uncheck all + + + + + Collapse &all + + + + + &Expand all + + + + + &Toolbar + + + + + No suitable files found to check! + + + + + Select files to check + + + + + Select directory to check + + + + + Cannot exit while checking. + +Stop the checking before exiting. + + + + + License + + + + + Authors + + + + + XML files (*.xml);;Text files (*.txt);;CSV files (*.csv) + + + + + Save the report file + + + + + XML files (*.xml) + + + + + Text files (*.txt) + + + + + Cppcheck - %1 + + + + + Failed to change the language: + +%1 + + + + + + + English + + + + + Finnish + + + + + Swedish + + + + + German + + + + + Russian + + + + + Polish + + + + + QObject + + + Incorrect language specified! + + + + + Language file %1 not found! + + + + + Failed to load translation for language %1 from file %2 + + + + + ResultsTree + + + + File + + + + + + Severity + + + + + + Line + + + + + + Message + + + + + Undefined file + + + + + Copy filename + + + + + Copy full path + + + + + Cppcheck + + + + + Configure the text file viewer program in Cppcheck preferences/Applications. + + + + + Could not start %1 + +Please check the application path and parameters are correct. + + + + + possible error + + + + + style + + + + + possible style + + + + + error + + + + + ResultsView + + + + Cppcheck + + + + + No errors found. + + + + + Errors were found, but they are configured to be hidden. +To toggle what kind of errors are shown, open view menu. + + + + + No errors found, nothing to save. + + + + + + Failed to save the report. + + + + + Results + + + + + Settings + + + Preferences + + + + + General + + + + + Number of threads: + + + + + Check all #ifdef configurations + + + + + Show full path of files + + + + + Show "No errors found" message when no errors found + + + + + Applications + + + + + Add application + + + + + Delete application + + + + + Modify application + + + + + Set as default application + + + + + Reports + + + + + Save all errors when creating report + + + + + Save full path to files in reports + + + + + SettingsDialog + + + Add a new application + + + + + Modify an application + + + + diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts index 2c8bcdde3..c30d442d4 100644 --- a/gui/cppcheck_ru.ts +++ b/gui/cppcheck_ru.ts @@ -18,7 +18,7 @@ Cppcheck - A tool for static C/C++ code analysis. Cppcheck - программа для статического анализа кода на языках С/С++ - + Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. Copyright (C) 2007-2009 Daniel Marjam??ki and cppcheck team. @@ -390,22 +390,27 @@ Stop the checking before exiting. Russian Русский + + + Polish + + QObject - + Incorrect language specified! Выбран неверный язык! - + Language file %1 not found! Language file %1.qm not found! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Ошибка загрузки переводов для языка %1 из файла %2 diff --git a/gui/cppcheck_se.ts b/gui/cppcheck_se.ts index 15057beaa..41fa6bfa4 100644 --- a/gui/cppcheck_se.ts +++ b/gui/cppcheck_se.ts @@ -18,7 +18,7 @@ Cppcheck - A tool for static C/C++ code analysis. Cppcheck - Ett verktyg för statisk analys av C/C++ kod. - + Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. Copyright (C) 2007-2009 Daniel Marjamäki and cppcheck team. @@ -400,22 +400,27 @@ Stop the checking before exiting. Russian Ryska + + + Polish + + QObject - + Incorrect language specified! valt språk är ej korrekt! - + Language file %1 not found! Language file %1.qm not found! Språk filen %1 hittades ej! - + Failed to load translation for language %1 from file %2 Failed to load translation for language %1 from file %2.qm Misslyckades med att ladda översättningen för %1 från filen %2 diff --git a/gui/gui.pro b/gui/gui.pro index 05fa52bb4..c8d297ec0 100644 --- a/gui/gui.pro +++ b/gui/gui.pro @@ -23,6 +23,7 @@ TRANSLATIONS = cppcheck_fi.ts \ cppcheck_en.ts \ cppcheck_se.ts \ cppcheck_de.ts \ + cppcheck_pl.ts \ cppcheck_ru.ts # Windows-specific options diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp index 7a55c1e07..f91fe9132 100644 --- a/gui/translationhandler.cpp +++ b/gui/translationhandler.cpp @@ -32,13 +32,15 @@ TranslationHandler::TranslationHandler(QObject *parent) : << QT_TRANSLATE_NOOP("MainWindow", "Finnish") << QT_TRANSLATE_NOOP("MainWindow", "Swedish") << QT_TRANSLATE_NOOP("MainWindow", "German") - << QT_TRANSLATE_NOOP("MainWindow", "Russian"); + << QT_TRANSLATE_NOOP("MainWindow", "Russian") + << QT_TRANSLATE_NOOP("MainWindow", "Polish"); mFiles << "cppcheck_en" << "cppcheck_fi" << "cppcheck_se" << "cppcheck_de" - << "cppcheck_ru"; + << "cppcheck_ru" + << "cppcheck_pl"; //Load english as a fallback language QTranslator *english = new QTranslator();