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 Cppcheck @@ -362,7 +362,8 @@ Parameter: -l(line) (file) - + + Information Information @@ -611,68 +612,68 @@ Do you want to proceed checking without using any of these project files? - + File not found Datei nicht gefunden - + Bad XML Fehlerhaftes XML - - Unexpected element - Unerwartetes Element - - - + Missing attribute Fehlendes Attribut - - Bad attribute - Fehlerhaftes Attribut - - - + Bad attribute value Falscher Attributwert - + + Duplicate platform type + Platformtyp doppelt + + + + Platform type redefined + Platformtyp neu definiert + + + Failed to load the selected library '%1'. %2 Laden der ausgewählten Bibliothek '%1' schlug fehl. %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. 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. - + License Lizenz - + Authors Autoren - + XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv) XML-Dateien Version 2 (*.xml);;XML-Dateien Version 1 (*.xml);;Textdateien (*.txt);;CSV-Dateien (*.csv) - + Save the report file Speichert die Berichtdatei - + XML files (*.xml) XML-Dateien (*.xml) @@ -696,17 +697,24 @@ Dies wurde vermutlich durch einen Wechsel der Cppcheck-Version hervorgerufen. Bi Dateien zum Überprüfen auswählen - + + The library '%1' contains unknown elements: +%2 + Die Bibliothek '%1' enthält unbekannte Elemente: +%2 + + + Unsupported format Nicht unterstütztes Format - + Error Fehler - + Current results will be cleared. Opening a new XML file will clear current results.Do you want to proceed? @@ -715,12 +723,12 @@ Opening a new XML file will clear current results.Do you want to proceed? - + Open the report file Berichtdatei öffnen - + Checking is running. Do you want to stop the checking and exit Cppcheck?. @@ -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 files version 1 (*.xml) XML-Dateien Version 1 (*.xml) - + XML files version 2 (*.xml) XML-Dateien Version 2 (*.xml) - + Text files (*.txt) Textdateien (*.txt) - + CSV files (*.csv) CSV-Dateien (*.csv) - + Cppcheck - %1 Cppcheck - %1 - - + + Project files (*.cppcheck);;All files(*.*) Projektdateien (*.cppcheck);;Alle Dateien(*.*) - + Select Project File Projektdatei auswählen - - + + Project: Projekt: - + Select Project Filename Projektnamen auswählen - + No project file loaded Keine Projektdatei geladen - + The project file %1 diff --git a/gui/cppcheck_es.ts b/gui/cppcheck_es.ts index 88053385d..072d8ff57 100644 --- a/gui/cppcheck_es.ts +++ b/gui/cppcheck_es.ts @@ -160,11 +160,11 @@ Parameters: -l(line) (file) - - - - - + + + + + Cppcheck Cppcheck @@ -345,7 +345,8 @@ Parameters: -l(line) (file) - + + Information Información @@ -589,63 +590,53 @@ This is probably because the settings were changed between the Cppcheck versions Selecciona una carpeta para comprobar - + 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. - + XML files (*.xml) Ficheros XML(*.xml) - + Open the report file Abrir informe - + Checking is running. Do you want to stop the checking and exit Cppcheck?. @@ -654,22 +645,22 @@ Do you want to stop the checking and exit Cppcheck?. ¿Quieres parar la comprobación y salir del Cppcheck?. - + License Licencia - + Authors Autores - + XML files version 2 (*.xml);;XML files version 1 (*.xml);;Text files (*.txt);;CSV files (*.csv) - + Save the report file Guardar informe @@ -702,12 +693,28 @@ Do you want to proceed checking without using any of these project files? - + + 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,59 +723,59 @@ Opening a new XML file will clear current results.Do you want to proceed? - + XML files version 1 (*.xml) - + XML files version 2 (*.xml) - + Text files (*.txt) Ficheros de texto (*.txt) - + CSV files (*.csv) Ficheros CVS (*.cvs) - + Cppcheck - %1 Cppcheck - %1 - - + + Project files (*.cppcheck);;All files(*.*) Ficheros de proyecto (*.cppcheck;;Todos los ficheros (*.*) - + Select Project File Selecciona proyecto - - + + Project: Proyecto: - + Select Project Filename Selecciona el nombre del proyecto - + No project file loaded No hay ningún proyecto cargado - + The project file %1 diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts index 8478a29aa..551864ba9 100644 --- a/gui/cppcheck_fi.ts +++ b/gui/cppcheck_fi.ts @@ -163,11 +163,11 @@ Parameters: -l(line) (file) - - - - - + + + + + Cppcheck Cppcheck @@ -354,7 +354,8 @@ Parameters: -l(line) (file) - + + Information @@ -599,69 +600,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. - + License Lisenssi - + Authors Tekijät - + 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-tiedostot (*.xml);;Tekstitiedostot (*.txt);;CSV-tiedostot (*.csv) - + Save the report file Tallenna raportti - + XML files (*.xml) XML-tiedostot (*xml) @@ -683,88 +674,104 @@ This is probably because the settings were changed between the Cppcheck versions Valitse tarkistettavat tiedostot - + + 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) Tekstitiedostot (*.txt) - + CSV files (*.csv) - + Cppcheck - %1 Cppcheck - %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_fr.ts b/gui/cppcheck_fr.ts index e53002375..dba7e01c3 100644 --- a/gui/cppcheck_fr.ts +++ b/gui/cppcheck_fr.ts @@ -654,18 +654,10 @@ Options: Bad XML - - 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) - - - - - + + + + + Cppcheck Cppcheck @@ -363,7 +363,8 @@ Parametri: -l(line) (file) - + + Information Informazione @@ -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. - + License Licenza - + Authors Autori - + 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 file Salva 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 file Apri 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 - %1 Cppcheck - %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 File Seleziona il file di progetto - - + + Project: Progetto: - + Select Project Filename Seleziona il nome del file di progetto - + No project file loaded Nessun 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) - - - - - + + + + + Cppcheck Cppcheck @@ -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 - %1 Cppcheck - %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) - - - - - + + + + + Cppcheck Cppcheck @@ -364,7 +364,8 @@ Parameters: -l(lijn) (bestand) - + + Information Informatie @@ -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. - + License Licentie - + Authors Auteurs - + 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 file Rapport 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 file Open 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 - %1 Cppcheck - %1 - - + + Project files (*.cppcheck);;All files(*.*) Project bestanden (*.cppcheck);;Alle bestanden(*.*) - + Select Project File Selecteer project bestand - - + + Project: Project: - + Select Project Filename Selecteer project bestandsnaam - + No project file loaded Geen 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) - - - - - + + + + + Cppcheck Cppcheck @@ -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 - %1 Cppcheck - %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) - - - - - + + + + + Cppcheck Cppcheck @@ -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. - + License License - + Authors 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) - + Save the report file Save 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 - %1 Cppcheck - %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) - - - - - + + + + + Cppcheck Cppcheck @@ -376,7 +376,8 @@ Parametrar: -l(line) (file) - + + Information Information @@ -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. - + License Licens - + Authors Utvecklare - + 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 file Spara 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 - %1 Cppcheck - %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 File Välj projektfil - - + + Project: Projekt: - + Select Project Filename Välj Projektfil - + No project file loaded Inget 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) - - - - - + + + + + Cppcheck Cppcheck @@ -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 - %1 Cppcheck - %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. */