Skip to content

Commit b1b2b9b

Browse files
committed
Use standard Qt buttons in LogView. Recreate LogView when changing language (cppcheck-opensource#3647)
1 parent a1926a8 commit b1b2b9b

16 files changed

Lines changed: 403 additions & 479 deletions

gui/cppcheck_de.ts

Lines changed: 38 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -137,37 +137,27 @@ Parameter: -l(line) (file)
137137
<translation>Untersuchungs-Log</translation>
138138
</message>
139139
<message>
140-
<location filename="logview.ui" line="48"/>
141-
<source>&amp;Save</source>
142-
<translation>&amp;Speichern</translation>
143-
</message>
144-
<message>
145-
<location filename="logview.ui" line="55"/>
140+
<location filename="logview.cpp" line="34"/>
146141
<source>Clear</source>
147142
<translation>Löschen</translation>
148143
</message>
149144
<message>
150-
<location filename="logview.ui" line="62"/>
151-
<source>Close</source>
152-
<translation>Schließen</translation>
153-
</message>
154-
<message>
155-
<location filename="logview.cpp" line="66"/>
145+
<location filename="logview.cpp" line="68"/>
156146
<source>Save Log</source>
157147
<translation>Speichere Log</translation>
158148
</message>
159149
<message>
160-
<location filename="logview.cpp" line="67"/>
150+
<location filename="logview.cpp" line="69"/>
161151
<source>Text files (*.txt *.log);;All files (*.*)</source>
162152
<translation>Textdateien (*.txt *.log);;Alle Dateien(*.*)</translation>
163153
</message>
164154
<message>
165-
<location filename="logview.cpp" line="71"/>
155+
<location filename="logview.cpp" line="73"/>
166156
<source>Cppcheck</source>
167157
<translation>Cppcheck</translation>
168158
</message>
169159
<message>
170-
<location filename="logview.cpp" line="72"/>
160+
<location filename="logview.cpp" line="74"/>
171161
<source>Could not open file for writing: &quot;%1&quot;</source>
172162
<translation>Datei kann nicht zum Schreiben geöffnet werden: &quot;%1&quot;</translation>
173163
</message>
@@ -184,8 +174,8 @@ Parameter: -l(line) (file)
184174
<location filename="mainwindow.cpp" line="654"/>
185175
<location filename="mainwindow.cpp" line="759"/>
186176
<location filename="mainwindow.cpp" line="879"/>
187-
<location filename="mainwindow.cpp" line="1045"/>
188-
<location filename="mainwindow.cpp" line="1126"/>
177+
<location filename="mainwindow.cpp" line="1047"/>
178+
<location filename="mainwindow.cpp" line="1128"/>
189179
<source>Cppcheck</source>
190180
<translation>Cppcheck</translation>
191181
</message>
@@ -687,34 +677,34 @@ Möchten Sie die Prüfung abbrechen und Cppcheck beenden?</translation>
687677
<translation>Cppcheck - %1</translation>
688678
</message>
689679
<message>
690-
<location filename="mainwindow.cpp" line="924"/>
691-
<location filename="mainwindow.cpp" line="1007"/>
680+
<location filename="mainwindow.cpp" line="926"/>
681+
<location filename="mainwindow.cpp" line="1009"/>
692682
<source>Project files (*.cppcheck);;All files(*.*)</source>
693683
<translation>Projektdateien (*.cppcheck);;Alle Dateien(*.*)</translation>
694684
</message>
695685
<message>
696-
<location filename="mainwindow.cpp" line="926"/>
686+
<location filename="mainwindow.cpp" line="928"/>
697687
<source>Select Project File</source>
698688
<translation>Projektdatei auswählen</translation>
699689
</message>
700690
<message>
701-
<location filename="mainwindow.cpp" line="954"/>
702-
<location filename="mainwindow.cpp" line="1021"/>
691+
<location filename="mainwindow.cpp" line="956"/>
692+
<location filename="mainwindow.cpp" line="1023"/>
703693
<source>Project:</source>
704694
<translation>Projekt:</translation>
705695
</message>
706696
<message>
707-
<location filename="mainwindow.cpp" line="1009"/>
697+
<location filename="mainwindow.cpp" line="1011"/>
708698
<source>Select Project Filename</source>
709699
<translation>Projektnamen auswählen</translation>
710700
</message>
711701
<message>
712-
<location filename="mainwindow.cpp" line="1046"/>
702+
<location filename="mainwindow.cpp" line="1048"/>
713703
<source>No project file loaded</source>
714704
<translation>Keine Projektdatei geladen</translation>
715705
</message>
716706
<message>
717-
<location filename="mainwindow.cpp" line="1121"/>
707+
<location filename="mainwindow.cpp" line="1123"/>
718708
<source>The project file
719709

720710
%1
@@ -731,67 +721,67 @@ Do you want to remove the file from the recently used projects -list?</source>
731721
Möchten Sie die Datei von der Liste der zuletzt benutzten Projekte entfernen?</translation>
732722
</message>
733723
<message>
734-
<location filename="translationhandler.cpp" line="44"/>
724+
<location filename="translationhandler.cpp" line="45"/>
735725
<source>Finnish</source>
736726
<translation>Finnisch</translation>
737727
</message>
738728
<message>
739-
<location filename="translationhandler.cpp" line="43"/>
729+
<location filename="translationhandler.cpp" line="44"/>
740730
<source>English</source>
741731
<translation>Englisch</translation>
742732
</message>
743733
<message>
744-
<location filename="translationhandler.cpp" line="41"/>
734+
<location filename="translationhandler.cpp" line="42"/>
745735
<source>Chinese (Simplified)</source>
746736
<translation>Chinesisch (vereinfacht)</translation>
747737
</message>
748738
<message>
749-
<location filename="translationhandler.cpp" line="42"/>
739+
<location filename="translationhandler.cpp" line="43"/>
750740
<source>Dutch</source>
751741
<translation>Niederländisch</translation>
752742
</message>
753743
<message>
754-
<location filename="translationhandler.cpp" line="45"/>
744+
<location filename="translationhandler.cpp" line="46"/>
755745
<source>French</source>
756746
<translation>Französisch</translation>
757747
</message>
758748
<message>
759-
<location filename="translationhandler.cpp" line="47"/>
749+
<location filename="translationhandler.cpp" line="48"/>
760750
<source>Italian</source>
761751
<translation>Italienisch</translation>
762752
</message>
763753
<message>
764-
<location filename="translationhandler.cpp" line="49"/>
754+
<location filename="translationhandler.cpp" line="50"/>
765755
<source>Korean</source>
766756
<translation>Koreanisch</translation>
767757
</message>
768758
<message>
769-
<location filename="translationhandler.cpp" line="52"/>
759+
<location filename="translationhandler.cpp" line="53"/>
770760
<source>Spanish</source>
771761
<translation>Spanisch</translation>
772762
</message>
773763
<message>
774-
<location filename="translationhandler.cpp" line="53"/>
764+
<location filename="translationhandler.cpp" line="54"/>
775765
<source>Swedish</source>
776766
<translation>Schwedisch</translation>
777767
</message>
778768
<message>
779-
<location filename="translationhandler.cpp" line="46"/>
769+
<location filename="translationhandler.cpp" line="47"/>
780770
<source>German</source>
781771
<translation>Deutsch</translation>
782772
</message>
783773
<message>
784-
<location filename="translationhandler.cpp" line="50"/>
774+
<location filename="translationhandler.cpp" line="51"/>
785775
<source>Russian</source>
786776
<translation>Russisch</translation>
787777
</message>
788778
<message>
789-
<location filename="translationhandler.cpp" line="48"/>
779+
<location filename="translationhandler.cpp" line="49"/>
790780
<source>Japanese</source>
791781
<translation>Japanisch</translation>
792782
</message>
793783
<message>
794-
<location filename="translationhandler.cpp" line="51"/>
784+
<location filename="translationhandler.cpp" line="52"/>
795785
<source>Serbian</source>
796786
<translation>Serbisch</translation>
797787
</message>
@@ -993,21 +983,26 @@ Optionen:
993983
<source>Close</source>
994984
<translation>Schließen</translation>
995985
</message>
986+
<message>
987+
<location filename="translationhandler.cpp" line="32"/>
988+
<source>Save</source>
989+
<translation>Speichern</translation>
990+
</message>
996991
</context>
997992
<context>
998993
<name>QObject</name>
999994
<message>
1000-
<location filename="translationhandler.cpp" line="90"/>
995+
<location filename="translationhandler.cpp" line="91"/>
1001996
<source>Unknown language specified!</source>
1002997
<translation>Unbekannte Sprache angegeben!</translation>
1003998
</message>
1004999
<message>
1005-
<location filename="translationhandler.cpp" line="102"/>
1000+
<location filename="translationhandler.cpp" line="103"/>
10061001
<source>Language file %1 not found!</source>
10071002
<translation>Sprachdatei %1 nicht gefunden!</translation>
10081003
</message>
10091004
<message>
1010-
<location filename="translationhandler.cpp" line="108"/>
1005+
<location filename="translationhandler.cpp" line="109"/>
10111006
<source>Failed to load translation for language %1 from file %2</source>
10121007
<translation>Die Übersetzungen der Sprache %1 konnten nicht aus der Datei %2 geladen werden</translation>
10131008
</message>
@@ -1621,7 +1616,7 @@ Legen Sie unter dem Menü Ansicht fest, welche Arten von Fehlern angezeigt werde
16211616
<context>
16221617
<name>TranslationHandler</name>
16231618
<message>
1624-
<location filename="translationhandler.cpp" line="114"/>
1619+
<location filename="translationhandler.cpp" line="115"/>
16251620
<source>Failed to change the user interface language:
16261621

16271622
%1
@@ -1634,7 +1629,7 @@ The user interface language has been reset to English. Open the Preferences-dial
16341629
Die Sprache wurde auf Englisch zurückgesetzt. Öffnen Sie den Einstellungen-Dialog um eine verfügbare Sprache auszuwählen.</translation>
16351630
</message>
16361631
<message>
1637-
<location filename="translationhandler.cpp" line="120"/>
1632+
<location filename="translationhandler.cpp" line="121"/>
16381633
<source>Cppcheck</source>
16391634
<translation>Cppcheck</translation>
16401635
</message>

0 commit comments

Comments
 (0)