diff --git a/gui/cppcheck_de.ts b/gui/cppcheck_de.ts
index 2582450cc..3a470d305 100644
--- a/gui/cppcheck_de.ts
+++ b/gui/cppcheck_de.ts
@@ -731,67 +731,67 @@ Do you want to remove the file from the recently used projects -list?
Möchten Sie die Datei von der Liste der zuletzt benutzten Projekte entfernen?
-
+
Finnisch
-
+
Englisch
-
+
Chinesisch (vereinfacht)
-
+
Niederländisch
-
+
Französisch
-
+
Italienisch
-
+
Koreanisch
-
+
Spanisch
-
+
Schwedisch
-
+
Deutsch
-
+
Russisch
-
+
Japanisch
-
+
Serbisch
@@ -976,20 +976,38 @@ Optionen:
Wähle zu ignorierendes Verzeichnis
+
+ QDialogButtonBox
+
+
+
+ OK
+
+
+
+
+ Abbrechen
+
+
+
+
+ Schließen
+
+
QObject
-
+
Unbekannte Sprache angegeben!
-
+
Sprachdatei %1 nicht gefunden!
-
+
Die Übersetzungen der Sprache %1 konnten nicht aus der Datei %2 geladen werden
@@ -1603,7 +1621,7 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_es.ts b/gui/cppcheck_es.ts
index 0de073e52..352107416 100644
--- a/gui/cppcheck_es.ts
+++ b/gui/cppcheck_es.ts
@@ -706,67 +706,67 @@ Do you want to remove the file from the recently used projects -list?
-
+
English
-
+
Holandés
-
+
-
+
Finés
-
+
-
+
-
+
-
+
-
+
Sueco
-
+
Alemán
-
+
Ruso
-
+
Japonés
-
+
Servio
@@ -941,20 +941,38 @@ Options:
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Cerrar
+
+
QObject
-
+
-
+
¡Fichero de idioma %1 no encontrado!
-
+
Fallo al cargar la traducción para el idioma %1 desde el fichero %2
@@ -1565,7 +1583,7 @@ Para cambiar el tipo de comportamiento, abrir el menú vista.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_fi.ts b/gui/cppcheck_fi.ts
index 8cd812944..ceeca7fa7 100644
--- a/gui/cppcheck_fi.ts
+++ b/gui/cppcheck_fi.ts
@@ -708,68 +708,68 @@ Do you want to remove the file from the recently used projects -list?
-
+
Suomi
-
+
Englanti
-
+
-
+
-
+
-
+
-
+
-
+
-
+
Ruotsi
-
+
Saksa
-
+
Venäjä
-
+
Japanease
-
+
@@ -944,21 +944,39 @@ Options:
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
QObject
-
+
-
+
Language file %1.qm not found!
Käännöstiedostoa %1 ei löytynyt!
-
+
Failed to load translation for language %1 from file %2.qm
Käänöksen lataaminen kielelle %1 tiedostosta %2 epäonnistui
@@ -1569,7 +1587,7 @@ Määrittääksesi minkä tyyppisiä virheitä näytetään, avaa näkymä valik
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_fr.ts b/gui/cppcheck_fr.ts
index 0dd73ac21..444ab27a7 100644
--- a/gui/cppcheck_fr.ts
+++ b/gui/cppcheck_fr.ts
@@ -742,6 +742,21 @@ Options:
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
QObject
diff --git a/gui/cppcheck_it.ts b/gui/cppcheck_it.ts
index d9984ec77..7e25f5d93 100644
--- a/gui/cppcheck_it.ts
+++ b/gui/cppcheck_it.ts
@@ -744,67 +744,67 @@ Do you want to remove the file from the recently used projects -list?
Vuoi rimuovere il file dalla lista dei progetti recentemente usati?
-
+
Finnish
-
+
English
-
+
-
+
Dutch
-
+
French
-
+
Italian
-
+
Korean
-
+
Spanish
-
+
Swedish
-
+
German
-
+
Russian
-
+
Japanese
-
+
Serbian
@@ -979,20 +979,38 @@ Options:
Seleziona la cartella da ignorare
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Chiudi
+
+
QObject
-
+
Lingua specificata sconosciuta!
-
+
Il file di lingua %1 non trovato!
-
+
Fallito il tentativo di aprire la traduzione per la lingua %1 dal file %2
@@ -1606,7 +1624,7 @@ Per vedere il tipo di errori che sono mostrati, apri il menu Visualizza.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_ja.ts b/gui/cppcheck_ja.ts
index f041a64b1..3185e0396 100644
--- a/gui/cppcheck_ja.ts
+++ b/gui/cppcheck_ja.ts
@@ -707,68 +707,68 @@ Do you want to remove the file from the recently used projects -list?
-
+
英語
-
+
オランダ語
-
+
-
+
フィンランド語
-
+
フランス語
-
+
-
+
-
+
スペイン語
-
+
スウェーデン語
-
+
ドイツ語
-
+
ロシア語
-
+
Japanease
日本語
-
+
セルビア語
@@ -943,20 +943,38 @@ Options:
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 閉じる
+
+
QObject
-
+
指定された未知の言語
-
+
言語ファイル %1 が見つかりません!
-
+
@@ -1567,7 +1585,7 @@ To toggle what kind of errors are shown, open view menu.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_ko.ts b/gui/cppcheck_ko.ts
index d4ac3f863..9a3219a0f 100644
--- a/gui/cppcheck_ko.ts
+++ b/gui/cppcheck_ko.ts
@@ -786,6 +786,21 @@ Options:
무시할 디렉토리 선택
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+ 닫기
+
+
QObject
diff --git a/gui/cppcheck_nl.ts b/gui/cppcheck_nl.ts
index 6ad22d5bd..1d2ad8bf8 100644
--- a/gui/cppcheck_nl.ts
+++ b/gui/cppcheck_nl.ts
@@ -708,68 +708,68 @@ Do you want to remove the file from the recently used projects -list?
-
+
Fins
-
+
Engels
-
+
-
+
Nederlands
-
+
-
+
-
+
-
+
-
+
Zweeds
-
+
Duits
-
+
Russisch
-
+
Japanease
-
+
@@ -944,21 +944,39 @@ Options:
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
QObject
-
+
-
+
Language file %1.qm not found!
Kon het taalbestand niet vinden: %1!
-
+
Failed to load translation for language %1 from file %2.qm
Kon de vertaling voor taal %1 in bestand %2 niet laden
@@ -1569,7 +1587,7 @@ Gebruik het uitzicht menu om te selecteren welke fouten getoond worden.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_ru.ts b/gui/cppcheck_ru.ts
index 59c775d56..27bf3c2a5 100644
--- a/gui/cppcheck_ru.ts
+++ b/gui/cppcheck_ru.ts
@@ -743,68 +743,68 @@ Do you want to remove the file from the recently used projects -list?
Хотите удалить его из списка проектов?
-
+
Финский
-
+
Английский
-
+
Китайский (упрощенный)
-
+
Голландский
-
+
Французский
-
+
Итальянский
-
+
Корейский
-
+
Испанский
-
+
Шведский
-
+
Немецкий
-
+
Русский
-
+
Japanease
Японский
-
+
Сербский
@@ -979,21 +979,39 @@ Options:
Выберите директорию, которую надо проигнорировать
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Закрыть
+
+
QObject
-
+
Неизвестный язык!
-
+
Language file %1.qm not found!
Языковой файл %1 не найден!
-
+
Failed to load translation for language %1 from file %2.qm
Ошибка загрузки переводов для языка %1 из файла %2
@@ -1601,7 +1619,7 @@ To toggle what kind of errors are shown, open view menu.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_sr.ts b/gui/cppcheck_sr.ts
index 268fc5a00..eedc40427 100644
--- a/gui/cppcheck_sr.ts
+++ b/gui/cppcheck_sr.ts
@@ -705,67 +705,67 @@ Do you want to remove the file from the recently used projects -list?
-
+
Finski
-
+
Engleski
-
+
-
+
Holandski
-
+
Francuski
-
+
-
+
-
+
Španski
-
+
Švedski
-
+
Nemački
-
+
Ruski
-
+
Japanski
-
+
Srpski
@@ -940,20 +940,38 @@ Options:
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
QObject
-
+
-
+
Could not find the file: %1!
-
+
Failed to load translation for language %1 from file %2
@@ -1561,7 +1579,7 @@ To toggle what kind of errors are shown, open view menu.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_sv.ts b/gui/cppcheck_sv.ts
index f1c4471b3..ecf19dccd 100644
--- a/gui/cppcheck_sv.ts
+++ b/gui/cppcheck_sv.ts
@@ -739,68 +739,68 @@ Do you want to remove the file from the recently used projects -list?
-
+
Finska
-
+
Engelska
-
+
-
+
Nederländska
-
+
Franska
-
+
-
+
-
+
-
+
Svenska
-
+
Tyska
-
+
Ryska
-
+
Japanease
Japanska
-
+
Serbiska
@@ -975,21 +975,39 @@ Options:
Välj sökväg att ignorera
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Stäng
+
+
QObject
-
+
Okänt språk valt!
-
+
Language file %1.qm not found!
Språk filen %1 hittades ej!
-
+
Failed to load translation for language %1 from file %2.qm
Misslyckades med att ladda översättningen för %1 från filen %2
@@ -1602,7 +1620,7 @@ För att ställa in vilka fel som skall visas använd visa menyn.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/cppcheck_zh_CN.ts b/gui/cppcheck_zh_CN.ts
index 0a29864f8..9473eeed5 100644
--- a/gui/cppcheck_zh_CN.ts
+++ b/gui/cppcheck_zh_CN.ts
@@ -743,68 +743,68 @@ Do you want to remove the file from the recently used projects -list?
你要从最近使用的项目列表中删除此文件吗?
-
+
英語
-
+
荷兰语
-
+
-
+
芬兰语
-
+
法语
-
+
意大利语
-
+
韩文
-
+
西班牙语
-
+
瑞典语
-
+
德语
-
+
俄语
-
+
Japanease
日语
-
+
塞尔维亚语
@@ -979,20 +979,38 @@ Options:
选择忽略的目录
+
+ QDialogButtonBox
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 关闭
+
+
QObject
-
+
指定了未知语言!
-
+
语言文件 %1 不存在!
-
+
无法从文件 %2 中为语言 %1 加载翻译文件
@@ -1608,7 +1626,7 @@ To toggle what kind of errors are shown, open view menu.
TranslationHandler
-
+
-
+
Cppcheck
diff --git a/gui/translationhandler.cpp b/gui/translationhandler.cpp
index 42dc152a6..a18ac76d3 100644
--- a/gui/translationhandler.cpp
+++ b/gui/translationhandler.cpp
@@ -23,6 +23,14 @@
#include
#include "translationhandler.h"
+// Provide own translations for standard buttons. This (garbage) code is needed to enforce them to appear in .ts files even after "lupdate gui.pro"
+static void unused()
+{
+ QT_TRANSLATE_NOOP("QDialogButtonBox", "OK");
+ QT_TRANSLATE_NOOP("QDialogButtonBox", "Cancel");
+ QT_TRANSLATE_NOOP("QDialogButtonBox", "Close");
+}
+
TranslationHandler::TranslationHandler(QObject *parent) :
QObject(parent),
mCurrentLanguage("en"),