diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts
index 863c9fa02..b1af9a076 100644
--- a/gui/cppcheck_de.ts
+++ b/gui/cppcheck_de.ts
@@ -171,11 +171,11 @@ Parameter: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ Cppcheck
@@ -362,7 +362,8 @@ Parameter: -l(line) (file)
-
+
+ Information
@@ -611,68 +612,68 @@ Do you want to proceed checking without using any of these project files?
-
+ Datei nicht gefunden
-
+ Fehlerhaftes XML
-
-
- Unerwartetes Element
-
-
-
+ Fehlendes Attribut
-
-
- Fehlerhaftes Attribut
-
-
-
+ Falscher Attributwert
-
+
+
+ Platformtyp doppelt
+
+
+
+
+ Platformtyp neu definiert
+
+
+ Laden der ausgewählten Bibliothek '%1' schlug fehl. %2
-
+ Laden von %1 fehlgeschlagen. Ihre Cppcheck-Installation ist defekt. Sie können --data-dir=<Verzeichnis> als Kommandozeilenparameter verwenden, um anzugeben, wo die Datei sich befindet.
-
+ Lizenz
-
+ Autoren
-
+ XML-Dateien Version 2 (*.xml);;XML-Dateien Version 1 (*.xml);;Textdateien (*.txt);;CSV-Dateien (*.csv)
-
+ Speichert die Berichtdatei
-
+ XML-Dateien (*.xml)
@@ -696,17 +697,24 @@ Dies wurde vermutlich durch einen Wechsel der Cppcheck-Version hervorgerufen. Bi
Dateien zum Überprüfen auswählen
-
+
+
+ Die Bibliothek '%1' enthält unbekannte Elemente:
+%2
+
+
+ Nicht unterstütztes Format
-
+ Fehler
-
+
@@ -715,12 +723,12 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+ Berichtdatei öffnen
-
+
@@ -729,59 +737,59 @@ Do you want to stop the checking and exit Cppcheck?.
Möchten Sie die Prüfung abbrechen und Cppcheck beenden?
-
+ XML-Dateien Version 1 (*.xml)
-
+ XML-Dateien Version 2 (*.xml)
-
+ Textdateien (*.txt)
-
+ CSV-Dateien (*.csv)
-
+ Cppcheck - %1
-
-
+
+ Projektdateien (*.cppcheck);;Alle Dateien(*.*)
-
+ Projektdatei auswählen
-
-
+
+ Projekt:
-
+ Projektnamen auswählen
-
+ Keine Projektdatei geladen
-
+
-
-
-
-
-
+
+
+
+
+ Cppcheck
@@ -345,7 +345,8 @@ Parameters: -l(line) (file)
-
+
+ Información
@@ -589,63 +590,53 @@ This is probably because the settings were changed between the Cppcheck versions
Selecciona una carpeta para comprobar
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
+
-
+
-
+
-
+ Ficheros XML(*.xml)
-
+ Abrir informe
-
+
@@ -654,22 +645,22 @@ Do you want to stop the checking and exit Cppcheck?.
¿Quieres parar la comprobación y salir del Cppcheck?.
-
+ Licencia
-
+ Autores
-
+
-
+ Guardar informe
@@ -702,12 +693,28 @@ Do you want to proceed checking without using any of these project files?
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -716,59 +723,59 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+
-
+
-
+ Ficheros de texto (*.txt)
-
+ Ficheros CVS (*.cvs)
-
+ Cppcheck - %1
-
-
+
+ Ficheros de proyecto (*.cppcheck;;Todos los ficheros (*.*)
-
+ Selecciona proyecto
-
-
+
+ Proyecto:
-
+ Selecciona el nombre del proyecto
-
+ No hay ningún proyecto cargado
-
+
-
-
-
-
-
+
+
+
+
+ Cppcheck
@@ -354,7 +354,8 @@ Parameters: -l(line) (file)
-
+
+
@@ -599,69 +600,59 @@ Do you want to proceed checking without using any of these project files?
-
+
-
+
-
-
-
-
-
-
+
-
-
-
-
-
-
+
-
+
-
+
-
+ Lisenssi
-
+ Tekijät
-
+ XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)XML-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv)
-
+ Tallenna raportti
-
+ XML-tiedostot (*xml)
@@ -683,88 +674,104 @@ This is probably because the settings were changed between the Cppcheck versions
Valitse tarkistettavat tiedostot
-
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+ Tekstitiedostot (*.txt)
-
+
-
+ Cppcheck - %1
-
-
+
+
-
+
-
-
+
+
-
+
-
+
-
+
-
- Unexpected element
-
- Missing attribute
-
- Bad attribute
-
- Bad attribute value
@@ -679,6 +671,19 @@ Options:
Unsupported format
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+ Duplicate platform type
+
+
+
+ Platform type redefined
+
+ Platforms
diff --git a/gui/cppcheck_it.ts b/gui/cppcheck_it.ts
index c3c4a0e1f..859223c2e 100644
--- a/gui/cppcheck_it.ts
+++ b/gui/cppcheck_it.ts
@@ -172,11 +172,11 @@ Parametri: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -363,7 +363,8 @@ Parametri: -l(line) (file)
-
+
+ InformationInformazione
@@ -612,73 +613,63 @@ Do you want to proceed checking without using any of these project files?
-
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Unsupported format
-
+ Failed to load the selected library '%1'.
%2
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ LicenseLicenza
-
+ AuthorsAutori
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)File XML Versione 2 (*.xml);;File XML Versione 1 (*.xml);;File di testo (*.txt);;File CSV (*.csv)
-
+ Save the report fileSalva il file di rapporto
-
+ XML files (*.xml)File XML (*.xml)
@@ -702,12 +693,28 @@ Probabilmente ciò è avvenuto perché le impostazioni sono state modificate tra
Seleziona i file da scansionare
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Error
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
@@ -716,12 +723,12 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+ Open the report fileApri il file di rapporto
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
@@ -730,27 +737,27 @@ Do you want to stop the checking and exit Cppcheck?.
Vuoi fermare la scansione ed uscire da Cppcheck?
-
+ XML files version 1 (*.xml)Files XML versione 1 (*.xml)
-
+ XML files version 2 (*.xml)Files XML versione 2 (*.xml)
-
+ Text files (*.txt)File di testo (*.txt)
-
+ CSV files (*.csv)Files CSV (*.csv)
-
+ Cppcheck - %1Cppcheck - %1
@@ -767,34 +774,34 @@ The user interface language has been reset to English. Open the Preferences-dial
L'interfaccia utente è stata risettata in Inglese. Apri la finestra di dialogo Preferenze per selezionare una qualunque lingua a disposizione.
-
-
+
+ Project files (*.cppcheck);;All files(*.*)Files di progetto (*.cppcheck);;Tutti i files(*.*)
-
+ Select Project FileSeleziona il file di progetto
-
-
+
+ Project:Progetto:
-
+ Select Project FilenameSeleziona il nome del file di progetto
-
+ No project file loadedNessun file di progetto caricato
-
+ The project file
%1
diff --git a/gui/cppcheck_ja.ts b/gui/cppcheck_ja.ts
index 29be8e1cd..e6205dd44 100644
--- a/gui/cppcheck_ja.ts
+++ b/gui/cppcheck_ja.ts
@@ -160,11 +160,11 @@ Parameters: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -345,7 +345,8 @@ Parameters: -l(line) (file)
-
+
+ Information情報
@@ -613,75 +614,81 @@ Do you want to proceed checking without using any of these project files?
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Unsupported format
-
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Failed to load the selected library '%1'.
%2
-
+ Error
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
-
+ XML files (*.xml)XML ファイル (*.xml)
-
+ Open the report fileレポートを開く
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
@@ -690,80 +697,80 @@ Do you want to stop the checking and exit Cppcheck?.
解析を停止してCppcheckを終了しますか?.
-
+ Licenseライセンス
-
+ Authors作者
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)XML ファイル (*.xml);;テキストファイル (*.txt);;CSV形式ファイル (*.csv)
-
+ Save the report fileレポートを保存
-
+ XML files version 1 (*.xml)XMLファイルのバージョン1
-
+ XML files version 2 (*.xml)XMLファイルのバージョン2
-
+ Text files (*.txt)テキストファイル (*.txt)
-
+ CSV files (*.csv)CSV形式ファイル (*.csv)
-
+ Cppcheck - %1Cppcheck - %1
-
-
+
+ Project files (*.cppcheck);;All files(*.*)プロジェクトファイル (*.cppcheck);;すべてのファイル(*.*)
-
+ Select Project Fileプロジェクトファイルを選択
-
-
+
+ Project:プロジェクト:
-
+ Select Project Filenameプロジェクトファイル名を選択
-
+ No project file loadedプロジェクトファイルが読み込まれていません
-
+ The project file
%1
diff --git a/gui/cppcheck_ko.ts b/gui/cppcheck_ko.ts
index 9d67ce9e0..feb995344 100644
--- a/gui/cppcheck_ko.ts
+++ b/gui/cppcheck_ko.ts
@@ -702,18 +702,10 @@ Options:
Bad XML
-
- Unexpected element
-
- Missing attribute
-
- Bad attribute
-
- Bad attribute value
@@ -727,6 +719,19 @@ Options:
Unsupported format
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+ Duplicate platform type
+
+
+
+ Platform type redefined
+
+ Platforms
diff --git a/gui/cppcheck_nl.ts b/gui/cppcheck_nl.ts
index 9ea6f6fc8..e1da68206 100644
--- a/gui/cppcheck_nl.ts
+++ b/gui/cppcheck_nl.ts
@@ -173,11 +173,11 @@ Parameters: -l(lijn) (bestand)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -364,7 +364,8 @@ Parameters: -l(lijn) (bestand)
-
+
+ InformationInformatie
@@ -611,69 +612,59 @@ Do you want to proceed checking without using any of these project files?
-
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Failed to load the selected library '%1'.
%2
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ LicenseLicentie
-
+ AuthorsAuteurs
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)XML bestanden (*.xml);;Tekst bestanden (*.txt);;CSV bestanden (*.csv)
-
+ Save the report fileRapport opslaan
-
+ XML files (*.xml)XML bestanden (*.xml)
@@ -697,17 +688,33 @@ Dit is waarschijnlijk omdat de instellingen zijn gewijzigd tussen de versies van
Selecteer bestanden om te controleren
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+ Unsupported format
-
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Error
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
@@ -716,12 +723,12 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+ Open the report fileOpen het rapport bestand
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
@@ -730,59 +737,59 @@ Do you want to stop the checking and exit Cppcheck?.
Wil je het controleren stoppen en Cppcheck sluiten?.
-
+ XML files version 1 (*.xml)XML files version 1 (*.xml)
-
+ XML files version 2 (*.xml)XML files version 2 (*.xml)
-
+ Text files (*.txt)Tekst bestanden (*.txt)
-
+ CSV files (*.csv)CSV bestanden (*.csv)
-
+ Cppcheck - %1Cppcheck - %1
-
-
+
+ Project files (*.cppcheck);;All files(*.*)Project bestanden (*.cppcheck);;Alle bestanden(*.*)
-
+ Select Project FileSelecteer project bestand
-
-
+
+ Project:Project:
-
+ Select Project FilenameSelecteer project bestandsnaam
-
+ No project file loadedGeen project bestand geladen
-
+ The project file
%1
diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts
index a67377e31..0a438841b 100644
--- a/gui/cppcheck_ru.ts
+++ b/gui/cppcheck_ru.ts
@@ -173,11 +173,11 @@ Parameters: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -364,7 +364,8 @@ Parameters: -l(line) (file)
-
+
+ InformationИнформационные сообщения
@@ -612,74 +613,64 @@ Do you want to proceed checking without using any of these project files?
-
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Unsupported format
-
+ Failed to load the selected library '%1'.
%2
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ LicenseЛицензия
-
+ AuthorsАвторы
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)XML файлы версии 2 (*.xml);;XML файлы версии 1 (*.xml);;Текстовые файлы (*.txt);;CSV файлы (*.csv)
-
+ Save the report fileСохранить файл с отчетом
-
+ XML files (*.xml)XML-файлы (*.xml)
@@ -703,12 +694,28 @@ This is probably because the settings were changed between the Cppcheck versions
Выберите файлы для проверки
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Error
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
@@ -717,12 +724,12 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+ Open the report fileОткрыть файл с отчетом
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
@@ -731,27 +738,27 @@ Do you want to stop the checking and exit Cppcheck?.
Вы хотите завершить проверку и выйти?
-
+ XML files version 1 (*.xml)XML файлы версии 1 (*.xml)
-
+ XML files version 2 (*.xml)XML файлы версии 2 (*.xml)
-
+ Text files (*.txt)Текстовые файлы (*.txt)
-
+ CSV files (*.csv)CSV файлы(*.csv)
-
+ Cppcheck - %1Cppcheck - %1
@@ -768,34 +775,34 @@ The user interface language has been reset to English. Open the Preferences-dial
The user interface language has been reset to English. Open the Preferences-dialog to select any of the available languages.
-
-
+
+ Project files (*.cppcheck);;All files(*.*)Файлы проекта (*.cppcheck);;Все файлы(*.*)
-
+ Select Project FileВыберите файл проекта
-
-
+
+ Project:Проект:
-
+ Select Project FilenameВыберите имя файла для проекта
-
+ No project file loadedФайл с проектом не загружен
-
+ The project file
%1
diff --git a/gui/cppcheck_sr.ts b/gui/cppcheck_sr.ts
index 442fa3811..375eedd02 100644
--- a/gui/cppcheck_sr.ts
+++ b/gui/cppcheck_sr.ts
@@ -161,11 +161,11 @@ Parameters: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -352,7 +352,8 @@ Parameters: -l(line) (file)
-
+
+ Information
@@ -601,68 +602,58 @@ Do you want to proceed checking without using any of these project files?
-
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Failed to load the selected library '%1'.
%2
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ LicenseLicense
-
+ AuthorsAuthors
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)
-
+ Save the report fileSave the report file
-
+ XML files (*.xml)XML files (*.xml)
@@ -684,88 +675,104 @@ This is probably because the settings were changed between the Cppcheck versions
Select files to check
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+ Unsupported format
-
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Error
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
-
+ Open the report file
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
-
+ XML files version 1 (*.xml)
-
+ XML files version 2 (*.xml)
-
+ Text files (*.txt)Text files (*.txt)
-
+ CSV files (*.csv)
-
+ Cppcheck - %1Cppcheck - %1
-
-
+
+ Project files (*.cppcheck);;All files(*.*)
-
+ Select Project File
-
-
+
+ Project:
-
+ Select Project Filename
-
+ No project file loaded
-
+ The project file
%1
diff --git a/gui/cppcheck_sv.ts b/gui/cppcheck_sv.ts
index 7e8c11014..22cdbff60 100644
--- a/gui/cppcheck_sv.ts
+++ b/gui/cppcheck_sv.ts
@@ -185,11 +185,11 @@ Parametrar: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -376,7 +376,8 @@ Parametrar: -l(line) (file)
-
+
+ InformationInformation
@@ -626,74 +627,64 @@ Do you want to proceed checking without using any of these project files?
-
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Unsupported format
-
+ Failed to load the selected library '%1'.
%2
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ LicenseLicens
-
+ AuthorsUtvecklare
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)XML filer version 2 (*.xml);;XML filer version 1 (*.xml);;Text filer (*.txt);;CSV filer (*.csv)
-
+ Save the report fileSpara rapport
-
+ XML files (*.xml)XML filer (*.xml)
@@ -717,12 +708,28 @@ En trolig orsak är att inställningarna ändrats för olika Cppcheck versioner.
Välj filer att kontrollera
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Error
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
@@ -731,12 +738,12 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+ Open the report fileÖppna rapportfilen
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
@@ -745,27 +752,27 @@ Do you want to stop the checking and exit Cppcheck?.
Vill du stoppa analysen och avsluta Cppcheck?
-
+ XML files version 1 (*.xml)XML filer version 1 (*.xml)
-
+ XML files version 2 (*.xml)XML filer version 2 (*.xml)
-
+ Text files (*.txt)Text filer (*.txt)
-
+ CSV files (*.csv)CSV filer (*.csv)
-
+ Cppcheck - %1Cppcheck - %1
@@ -782,34 +789,34 @@ The user interface language has been reset to English. Open the Preferences-dial
Språket har nollställts till Engelska. Öppna Preferences och välj något av de tillgängliga språken.
-
-
+
+ Project files (*.cppcheck);;All files(*.*)Projektfiler (*.cppcheck);;Alla filer(*.*)
-
+ Select Project FileVälj projektfil
-
-
+
+ Project:Projekt:
-
+ Select Project FilenameVälj Projektfil
-
+ No project file loadedInget projekt laddat
-
+ The project file
%1
diff --git a/gui/cppcheck_zh_CN.ts b/gui/cppcheck_zh_CN.ts
index cf3f63f02..970d71307 100644
--- a/gui/cppcheck_zh_CN.ts
+++ b/gui/cppcheck_zh_CN.ts
@@ -170,11 +170,11 @@ Parameters: -l(line) (file)
-
-
-
-
-
+
+
+
+
+ CppcheckCppcheck
@@ -355,7 +355,8 @@ Parameters: -l(line) (file)
-
+
+ Information信息
@@ -629,58 +630,64 @@ Do you want to proceed checking without using any of these project files?
-
+
+ The library '%1' contains unknown elements:
+%2
+
+
+
+ File not found
-
+ Bad XML
-
- Unexpected element
-
-
-
-
+ Missing attribute
-
- Bad attribute
-
-
-
-
+ Bad attribute value
-
+ Unsupported format
-
+
+ Duplicate platform type
+
+
+
+
+ Platform type redefined
+
+
+
+ Failed to load the selected library '%1'.
%2
-
+ Error
-
+ Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir=<directory> at the command line to specify where this file is located.
-
+ Current results will be cleared.
Opening a new XML file will clear current results.Do you want to proceed?
@@ -689,17 +696,17 @@ Opening a new XML file will clear current results.Do you want to proceed?
-
+ XML files (*.xml)XML 文件(*.xml)
-
+ Open the report file打开报告文件
-
+ Checking is running.
Do you want to stop the checking and exit Cppcheck?.
@@ -708,48 +715,48 @@ Do you want to stop the checking and exit Cppcheck?.
你是否需要停止检查并退出 Cppcheck?
-
+ License许可证
-
+ Authors作者
-
+ XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv)XML files (*.xml);;Text files (*.txt);;CSV files (*.csv)XML 文件版本 2 (*.xml);;XML 文件版本 1 (*.xml);; 文本文件(*.txt);; CSV 文件(*.csv)
-
+ Save the report file保存报告文件
-
+ XML files version 1 (*.xml)XML 文件版本 1 (*.xml)
-
+ XML files version 2 (*.xml)XML 文件版本 2 (*.xml)
-
+ Text files (*.txt)文本文件(*.txt)
-
+ CSV files (*.csv)CSV 文件(*.csv)
-
+ Cppcheck - %1Cppcheck - %1
@@ -766,34 +773,34 @@ The user interface language has been reset to English. Open the Preferences-dial
用户界面语言已被重置为英语。打开“首选项”对话框,选择任何可用的语言。
-
-
+
+ Project files (*.cppcheck);;All files(*.*)项目文件(*.cppcheck);;所有文件(*.*)
-
+ Select Project File选择项目文件
-
-
+
+ Project:项目:
-
+ Select Project Filename选择项目文件名
-
+ No project file loaded项目文件未加载
-
+ The project file
%1
diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp
index fd9d99e23..be1a814df 100644
--- a/gui/mainwindow.cpp
+++ b/gui/mainwindow.cpp
@@ -548,6 +548,49 @@ Library::Error MainWindow::LoadLibrary(Library *library, QString filename)
return ret;
}
+bool MainWindow::TryLoadLibrary(Library *library, QString filename)
+{
+ const Library::Error error = LoadLibrary(library, filename);
+ if (error.errorcode != Library::ErrorCode::OK) {
+ if (error.errorcode == Library::UNKNOWN_ELEMENT) {
+ QMessageBox::information(this, tr("Information"), tr("The library '%1' contains unknown elements:\n%2").arg(filename).arg(error.reason.c_str()));
+ return true;
+ }
+
+ QString errmsg;
+ switch (error.errorcode) {
+ case Library::ErrorCode::OK:
+ break;
+ case Library::ErrorCode::FILE_NOT_FOUND:
+ errmsg = tr("File not found");
+ break;
+ case Library::ErrorCode::BAD_XML:
+ errmsg = tr("Bad XML");
+ break;
+ case Library::ErrorCode::MISSING_ATTRIBUTE:
+ errmsg = tr("Missing attribute");
+ break;
+ case Library::ErrorCode::BAD_ATTRIBUTE_VALUE:
+ errmsg = tr("Bad attribute value");
+ break;
+ case Library::ErrorCode::UNSUPPORTED_FORMAT:
+ errmsg = tr("Unsupported format");
+ break;
+ case Library::ErrorCode::DUPLICATE_PLATFORM_TYPE:
+ errmsg = tr("Duplicate platform type");
+ break;
+ case Library::ErrorCode::PLATFORM_TYPE_REDEFINED:
+ errmsg = tr("Platform type redefined");
+ break;
+ }
+ if (!error.reason.empty())
+ errmsg += " '" + QString::fromStdString(error.reason) + "'";
+ QMessageBox::information(this, tr("Information"), tr("Failed to load the selected library '%1'.\n%2").arg(filename).arg(errmsg));
+ return false;
+ }
+ return true;
+}
+
Settings MainWindow::GetCppcheckSettings()
{
Settings result;
@@ -569,44 +612,7 @@ Settings MainWindow::GetCppcheckSettings()
const QStringList libraries = pfile->GetLibraries();
foreach(QString library, libraries) {
const QString filename = library + ".cfg";
- const Library::Error error = LoadLibrary(&result.library, filename);
- if (error.errorcode != Library::ErrorCode::OK) {
- QString errmsg;
- switch (error.errorcode) {
- case Library::ErrorCode::OK:
- break;
- case Library::ErrorCode::FILE_NOT_FOUND:
- errmsg = tr("File not found");
- break;
- case Library::ErrorCode::BAD_XML:
- errmsg = tr("Bad XML");
- break;
- case Library::ErrorCode::BAD_ELEMENT:
- errmsg = tr("Unexpected element");
- break;
- case Library::ErrorCode::MISSING_ATTRIBUTE:
- errmsg = tr("Missing attribute");
- break;
- case Library::ErrorCode::BAD_ATTRIBUTE:
- errmsg = tr("Bad attribute");
- break;
- case Library::ErrorCode::BAD_ATTRIBUTE_VALUE:
- errmsg = tr("Bad attribute value");
- break;
- case Library::ErrorCode::UNSUPPORTED_FORMAT:
- errmsg = tr("Unsupported format");
- break;
- case Library::ErrorCode::DUPLICATE_PLATFORM_TYPE:
- errmsg = tr("Duplicate platform type");
- break;
- case Library::ErrorCode::PLATFORM_TYPE_REDEFINED:
- errmsg = tr("Platform type redefined");
- break;
- }
- if (!error.reason.empty())
- errmsg += " '" + QString::fromStdString(error.reason) + "'";
- QMessageBox::information(this, tr("Information"), tr("Failed to load the selected library '%1'.\n%2").arg(filename).arg(errmsg));
- }
+ TryLoadLibrary(&result.library, filename);
}
const QStringList suppressions = pfile->GetSuppressions();
@@ -648,13 +654,13 @@ Settings MainWindow::GetCppcheckSettings()
result.standards.c = mSettings->value(SETTINGS_STD_C99, true).toBool() ? Standards::C99 : (mSettings->value(SETTINGS_STD_C11, false).toBool() ? Standards::C11 : Standards::C89);
result.standards.posix = mSettings->value(SETTINGS_STD_POSIX, false).toBool();
- const bool std = (LoadLibrary(&result.library, "std.cfg").errorcode == Library::ErrorCode::OK);
+ const bool std = TryLoadLibrary(&result.library, "std.cfg");
bool posix = true;
if (result.standards.posix)
- posix = (LoadLibrary(&result.library, "posix.cfg").errorcode == Library::ErrorCode::OK);
+ posix = TryLoadLibrary(&result.library, "posix.cfg");
bool windows = true;
if (result.platformType == Settings::Win32A || result.platformType == Settings::Win32W || result.platformType == Settings::Win64)
- windows = (LoadLibrary(&result.library, "windows.cfg").errorcode == Library::ErrorCode::OK);
+ windows = TryLoadLibrary(&result.library, "windows.cfg");
if (!std || !posix || !windows)
QMessageBox::critical(this, tr("Error"), tr("Failed to load %1. Your Cppcheck installation is broken. You can use --data-dir= at the command line to specify where this file is located.").arg(!std ? "std.cfg" : !posix ? "posix.cfg" : "windows.cfg"));
diff --git a/gui/mainwindow.h b/gui/mainwindow.h
index 89bb8e6c0..b7036331a 100644
--- a/gui/mainwindow.h
+++ b/gui/mainwindow.h
@@ -428,10 +428,18 @@ private:
* @brief Load library file
* @param library library to use
* @param filename filename (no path)
- * @return True if successful
+ * @return error code
*/
Library::Error LoadLibrary(Library *library, QString filename);
+ /**
+ * @brief Tries to load library file, prints message on error
+ * @param library library to use
+ * @param filename filename (no path)
+ * @return True if no error
+ */
+ bool TryLoadLibrary(Library *library, QString filename);
+
/**
* @brief Update project MRU items in File-menu.
*/