Error types are now translated aswell.

This commit is contained in:
Vesa Pikki 2009-07-02 13:48:32 +03:00
parent 4206a9d218
commit 1daba9e913
7 changed files with 258 additions and 120 deletions

View File

@ -120,10 +120,10 @@ kate -l(line) (file)</source>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="242"/> <location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="449"/> <location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="547"/> <location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="565"/> <location filename="mainwindow.cpp" line="566"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -288,49 +288,49 @@ kate -l(line) (file)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="205"/> <location filename="mainwindow.cpp" line="206"/>
<source>Select files to check</source> <source>Select files to check</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="214"/> <location filename="mainwindow.cpp" line="215"/>
<source>Select directory to check</source> <source>Select directory to check</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="243"/> <location filename="mainwindow.cpp" line="244"/>
<source>No suitable files found to check!</source> <source>No suitable files found to check!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="445"/> <location filename="mainwindow.cpp" line="446"/>
<source>Cannot exit while checking. <source>Cannot exit while checking.
Stop the checking before exiting.</source> Stop the checking before exiting.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="506"/> <location filename="mainwindow.cpp" line="507"/>
<source>XML files (*.xml);;Text files (*.txt)</source> <source>XML files (*.xml);;Text files (*.txt)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="508"/> <location filename="mainwindow.cpp" line="509"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="516"/> <location filename="mainwindow.cpp" line="517"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="549"/> <location filename="mainwindow.cpp" line="550"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>Failed to change language: <source>Failed to change language:
%1</source> %1</source>
@ -379,55 +379,80 @@ Stop the checking before exiting.</source>
<name>ResultsTree</name> <name>ResultsTree</name>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>File</source> <source>File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Severity</source> <source>Severity</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Line</source> <source>Line</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Message</source> <source>Message</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="386"/> <location filename="resultstree.cpp" line="85"/>
<source>Undefined file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="388"/>
<source>Copy filename</source> <source>Copy filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="387"/> <location filename="resultstree.cpp" line="389"/>
<source>Copy full path</source> <source>Copy full path</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="423"/> <location filename="resultstree.cpp" line="425"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="424"/> <location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source> <source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="469"/> <location filename="resultstree.cpp" line="471"/>
<source>Could not start %1 <source>Could not start %1
Please check the application path and parameters are correct.</source> Please check the application path and parameters are correct.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="resultstree.cpp" line="612"/>
<source>all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="616"/>
<source>style</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="620"/>
<source>security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="624"/>
<source>error</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ResultsView</name> <name>ResultsView</name>

View File

@ -132,10 +132,10 @@ kate -l(line) (file)</translation>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="242"/> <location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="449"/> <location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="547"/> <location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="565"/> <location filename="mainwindow.cpp" line="566"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -300,22 +300,22 @@ kate -l(line) (file)</translation>
<translation>&amp;Help</translation> <translation>&amp;Help</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="205"/> <location filename="mainwindow.cpp" line="206"/>
<source>Select files to check</source> <source>Select files to check</source>
<translation>Select files to check</translation> <translation>Select files to check</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="214"/> <location filename="mainwindow.cpp" line="215"/>
<source>Select directory to check</source> <source>Select directory to check</source>
<translation>Select directory to check</translation> <translation>Select directory to check</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="243"/> <location filename="mainwindow.cpp" line="244"/>
<source>No suitable files found to check!</source> <source>No suitable files found to check!</source>
<translation>No suitable files found to check!</translation> <translation>No suitable files found to check!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="445"/> <location filename="mainwindow.cpp" line="446"/>
<source>Cannot exit while checking. <source>Cannot exit while checking.
Stop the checking before exiting.</source> Stop the checking before exiting.</source>
@ -324,27 +324,27 @@ Stop the checking before exiting.</source>
Stop the checking before exiting.</translation> Stop the checking before exiting.</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="506"/> <location filename="mainwindow.cpp" line="507"/>
<source>XML files (*.xml);;Text files (*.txt)</source> <source>XML files (*.xml);;Text files (*.txt)</source>
<translation>XML files (*.xml);;Text files (*.txt)</translation> <translation>XML files (*.xml);;Text files (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="508"/> <location filename="mainwindow.cpp" line="509"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Save the report file</translation> <translation>Save the report file</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="516"/> <location filename="mainwindow.cpp" line="517"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML files (*.xml)</translation> <translation>XML files (*.xml)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="549"/> <location filename="mainwindow.cpp" line="550"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>Failed to change language: <source>Failed to change language:
%1</source> %1</source>
@ -395,50 +395,55 @@ Stop the checking before exiting.</translation>
<name>ResultsTree</name> <name>ResultsTree</name>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>File</source> <source>File</source>
<translation>File</translation> <translation>File</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Severity</source> <source>Severity</source>
<translation>Severity</translation> <translation>Severity</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Line</source> <source>Line</source>
<translation>Line</translation> <translation>Line</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Message</source> <source>Message</source>
<translation>Message</translation> <translation>Message</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="386"/> <location filename="resultstree.cpp" line="85"/>
<source>Undefined file</source>
<translation>Undefined file</translation>
</message>
<message>
<location filename="resultstree.cpp" line="388"/>
<source>Copy filename</source> <source>Copy filename</source>
<translation>Copy filename</translation> <translation>Copy filename</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="387"/> <location filename="resultstree.cpp" line="389"/>
<source>Copy full path</source> <source>Copy full path</source>
<translation>Copy full path</translation> <translation>Copy full path</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="423"/> <location filename="resultstree.cpp" line="425"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="424"/> <location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source> <source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation>You can open this error by specifying applications in program&apos;s settings.</translation> <translation>You can open this error by specifying applications in program&apos;s settings.</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="469"/> <location filename="resultstree.cpp" line="471"/>
<source>Could not start %1 <source>Could not start %1
Please check the application path and parameters are correct.</source> Please check the application path and parameters are correct.</source>
@ -446,6 +451,26 @@ Please check the application path and parameters are correct.</source>
Please check the application path and parameters are correct.</translation> Please check the application path and parameters are correct.</translation>
</message> </message>
<message>
<location filename="resultstree.cpp" line="612"/>
<source>all</source>
<translation>All</translation>
</message>
<message>
<location filename="resultstree.cpp" line="616"/>
<source>style</source>
<translation>Style</translation>
</message>
<message>
<location filename="resultstree.cpp" line="620"/>
<source>security</source>
<translation>Security</translation>
</message>
<message>
<location filename="resultstree.cpp" line="624"/>
<source>error</source>
<translation>Error</translation>
</message>
</context> </context>
<context> <context>
<name>ResultsView</name> <name>ResultsView</name>

View File

@ -134,10 +134,10 @@ kate -l(line) (file)
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="242"/> <location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="449"/> <location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="547"/> <location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="565"/> <location filename="mainwindow.cpp" line="566"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
@ -302,22 +302,22 @@ kate -l(line) (file)
<translation>&amp;Ohje</translation> <translation>&amp;Ohje</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="205"/> <location filename="mainwindow.cpp" line="206"/>
<source>Select files to check</source> <source>Select files to check</source>
<translation>Valitse tarkistettavat tiedostot</translation> <translation>Valitse tarkistettavat tiedostot</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="214"/> <location filename="mainwindow.cpp" line="215"/>
<source>Select directory to check</source> <source>Select directory to check</source>
<translation>Valitse tarkistettava hakemisto</translation> <translation>Valitse tarkistettava hakemisto</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="243"/> <location filename="mainwindow.cpp" line="244"/>
<source>No suitable files found to check!</source> <source>No suitable files found to check!</source>
<translation>Tarkistettavaksi sopivia tiedostoja ei löytynyt!</translation> <translation>Tarkistettavaksi sopivia tiedostoja ei löytynyt!</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="445"/> <location filename="mainwindow.cpp" line="446"/>
<source>Cannot exit while checking. <source>Cannot exit while checking.
Stop the checking before exiting.</source> Stop the checking before exiting.</source>
@ -326,27 +326,27 @@ Stop the checking before exiting.</source>
Lopeta tarkistus ennen ohjelman sammuttamista.</translation> Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="506"/> <location filename="mainwindow.cpp" line="507"/>
<source>XML files (*.xml);;Text files (*.txt)</source> <source>XML files (*.xml);;Text files (*.txt)</source>
<translation>XML-tiedostot (*.xml);;Tekstitiedostot (*.txt)</translation> <translation>XML-tiedostot (*.xml);;Tekstitiedostot (*.txt)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="508"/> <location filename="mainwindow.cpp" line="509"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation>Tallenna raportti</translation> <translation>Tallenna raportti</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="516"/> <location filename="mainwindow.cpp" line="517"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation>XML-tiedostot (*xml)</translation> <translation>XML-tiedostot (*xml)</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="549"/> <location filename="mainwindow.cpp" line="550"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation>Cppcheck - %1</translation> <translation>Cppcheck - %1</translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>Failed to change language: <source>Failed to change language:
%1</source> %1</source>
@ -395,50 +395,55 @@ Lopeta tarkistus ennen ohjelman sammuttamista.</translation>
<name>ResultsTree</name> <name>ResultsTree</name>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>File</source> <source>File</source>
<translation>Tiedosto</translation> <translation>Tiedosto</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Severity</source> <source>Severity</source>
<translation>Tyyppi</translation> <translation>Tyyppi</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Line</source> <source>Line</source>
<translation>Rivi</translation> <translation>Rivi</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Message</source> <source>Message</source>
<translation>Virhe</translation> <translation>Virhe</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="386"/> <location filename="resultstree.cpp" line="85"/>
<source>Undefined file</source>
<translation>Määrittelemätön tiedosto</translation>
</message>
<message>
<location filename="resultstree.cpp" line="388"/>
<source>Copy filename</source> <source>Copy filename</source>
<translation>Kopioi tiedostonimi</translation> <translation>Kopioi tiedostonimi</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="387"/> <location filename="resultstree.cpp" line="389"/>
<source>Copy full path</source> <source>Copy full path</source>
<translation>Kopioi tiedoston koko polku</translation> <translation>Kopioi tiedoston koko polku</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="423"/> <location filename="resultstree.cpp" line="425"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation>Cppcheck</translation> <translation>Cppcheck</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="424"/> <location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source> <source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation>Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston.</translation> <translation>Voit asetuksista määritellä muita ohjelmia joilla avata tämän virheen sisältävän tiedoston.</translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="469"/> <location filename="resultstree.cpp" line="471"/>
<source>Could not start %1 <source>Could not start %1
Please check the application path and parameters are correct.</source> Please check the application path and parameters are correct.</source>
@ -446,6 +451,26 @@ Please check the application path and parameters are correct.</source>
Tarkista että ohjelman polku ja parametrit ovat oikeat.</translation> Tarkista että ohjelman polku ja parametrit ovat oikeat.</translation>
</message> </message>
<message>
<location filename="resultstree.cpp" line="612"/>
<source>all</source>
<translation>Epävarmat</translation>
</message>
<message>
<location filename="resultstree.cpp" line="616"/>
<source>style</source>
<translation>Tyyli</translation>
</message>
<message>
<location filename="resultstree.cpp" line="620"/>
<source>security</source>
<translation>Tietoturva</translation>
</message>
<message>
<location filename="resultstree.cpp" line="624"/>
<source>error</source>
<translation>Yleinen</translation>
</message>
</context> </context>
<context> <context>
<name>ResultsView</name> <name>ResultsView</name>

View File

@ -122,10 +122,10 @@ kate -l(line) (file)</source>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="242"/> <location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="449"/> <location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="547"/> <location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="565"/> <location filename="mainwindow.cpp" line="566"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -290,49 +290,49 @@ kate -l(line) (file)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="205"/> <location filename="mainwindow.cpp" line="206"/>
<source>Select files to check</source> <source>Select files to check</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="214"/> <location filename="mainwindow.cpp" line="215"/>
<source>Select directory to check</source> <source>Select directory to check</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="243"/> <location filename="mainwindow.cpp" line="244"/>
<source>No suitable files found to check!</source> <source>No suitable files found to check!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="445"/> <location filename="mainwindow.cpp" line="446"/>
<source>Cannot exit while checking. <source>Cannot exit while checking.
Stop the checking before exiting.</source> Stop the checking before exiting.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="506"/> <location filename="mainwindow.cpp" line="507"/>
<source>XML files (*.xml);;Text files (*.txt)</source> <source>XML files (*.xml);;Text files (*.txt)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="508"/> <location filename="mainwindow.cpp" line="509"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="516"/> <location filename="mainwindow.cpp" line="517"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="549"/> <location filename="mainwindow.cpp" line="550"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>Failed to change language: <source>Failed to change language:
%1</source> %1</source>
@ -381,55 +381,80 @@ Stop the checking before exiting.</source>
<name>ResultsTree</name> <name>ResultsTree</name>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>File</source> <source>File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Severity</source> <source>Severity</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Line</source> <source>Line</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Message</source> <source>Message</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="386"/> <location filename="resultstree.cpp" line="85"/>
<source>Undefined file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="388"/>
<source>Copy filename</source> <source>Copy filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="387"/> <location filename="resultstree.cpp" line="389"/>
<source>Copy full path</source> <source>Copy full path</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="423"/> <location filename="resultstree.cpp" line="425"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="424"/> <location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source> <source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="469"/> <location filename="resultstree.cpp" line="471"/>
<source>Could not start %1 <source>Could not start %1
Please check the application path and parameters are correct.</source> Please check the application path and parameters are correct.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="resultstree.cpp" line="612"/>
<source>all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="616"/>
<source>style</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="620"/>
<source>security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="624"/>
<source>error</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ResultsView</name> <name>ResultsView</name>

View File

@ -122,10 +122,10 @@ kate -l(line) (file)</source>
<name>MainWindow</name> <name>MainWindow</name>
<message> <message>
<location filename="main.ui" line="26"/> <location filename="main.ui" line="26"/>
<location filename="mainwindow.cpp" line="242"/> <location filename="mainwindow.cpp" line="243"/>
<location filename="mainwindow.cpp" line="449"/> <location filename="mainwindow.cpp" line="450"/>
<location filename="mainwindow.cpp" line="547"/> <location filename="mainwindow.cpp" line="548"/>
<location filename="mainwindow.cpp" line="565"/> <location filename="mainwindow.cpp" line="566"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
@ -290,49 +290,49 @@ kate -l(line) (file)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="205"/> <location filename="mainwindow.cpp" line="206"/>
<source>Select files to check</source> <source>Select files to check</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="214"/> <location filename="mainwindow.cpp" line="215"/>
<source>Select directory to check</source> <source>Select directory to check</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="243"/> <location filename="mainwindow.cpp" line="244"/>
<source>No suitable files found to check!</source> <source>No suitable files found to check!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="445"/> <location filename="mainwindow.cpp" line="446"/>
<source>Cannot exit while checking. <source>Cannot exit while checking.
Stop the checking before exiting.</source> Stop the checking before exiting.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="506"/> <location filename="mainwindow.cpp" line="507"/>
<source>XML files (*.xml);;Text files (*.txt)</source> <source>XML files (*.xml);;Text files (*.txt)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="508"/> <location filename="mainwindow.cpp" line="509"/>
<source>Save the report file</source> <source>Save the report file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="516"/> <location filename="mainwindow.cpp" line="517"/>
<source>XML files (*.xml)</source> <source>XML files (*.xml)</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="549"/> <location filename="mainwindow.cpp" line="550"/>
<source>Cppcheck - %1</source> <source>Cppcheck - %1</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="mainwindow.cpp" line="566"/> <location filename="mainwindow.cpp" line="567"/>
<source>Failed to change language: <source>Failed to change language:
%1</source> %1</source>
@ -381,55 +381,80 @@ Stop the checking before exiting.</source>
<name>ResultsTree</name> <name>ResultsTree</name>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>File</source> <source>File</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Severity</source> <source>Severity</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Line</source> <source>Line</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="39"/> <location filename="resultstree.cpp" line="39"/>
<location filename="resultstree.cpp" line="752"/> <location filename="resultstree.cpp" line="754"/>
<source>Message</source> <source>Message</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="386"/> <location filename="resultstree.cpp" line="85"/>
<source>Undefined file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="388"/>
<source>Copy filename</source> <source>Copy filename</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="387"/> <location filename="resultstree.cpp" line="389"/>
<source>Copy full path</source> <source>Copy full path</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="423"/> <location filename="resultstree.cpp" line="425"/>
<source>Cppcheck</source> <source>Cppcheck</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="424"/> <location filename="resultstree.cpp" line="426"/>
<source>You can open this error by specifying applications in program&apos;s settings.</source> <source>You can open this error by specifying applications in program&apos;s settings.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="resultstree.cpp" line="469"/> <location filename="resultstree.cpp" line="471"/>
<source>Could not start %1 <source>Could not start %1
Please check the application path and parameters are correct.</source> Please check the application path and parameters are correct.</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="resultstree.cpp" line="612"/>
<source>all</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="616"/>
<source>style</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="620"/>
<source>security</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="resultstree.cpp" line="624"/>
<source>error</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>ResultsView</name> <name>ResultsView</name>

View File

@ -78,7 +78,7 @@ MainWindow::MainWindow() :
CreateLanguageMenuItems();
LoadSettings(); LoadSettings();
mThread->Initialize(mUI.mResults); mThread->Initialize(mUI.mResults);
@ -90,7 +90,7 @@ MainWindow::MainWindow() :
mUI.mActionSave->setEnabled(false); mUI.mActionSave->setEnabled(false);
CreateLanguageMenuItems();
} }
@ -572,8 +572,19 @@ void MainWindow::SetLanguage(int index)
} }
else else
{ {
//Translate everything that is visible here
mUI.retranslateUi(this); mUI.retranslateUi(this);
mUI.mResults->Translate(); mUI.mResults->Translate();
QStringList languages = mTranslation->GetNames();
QList<QAction *> actions = mLanguages->actions();
if (languages.size() <= actions.size())
{
for (int i=0;i<languages.size();i++)
{
actions[i]->setText(tr(languages[i].toLatin1()));
}
}
} }
} }

View File

@ -82,7 +82,7 @@ void ResultsTree::AddErrorItem(const QString &file,
if (realfile.isEmpty()) if (realfile.isEmpty())
{ {
realfile = "Undefined file"; realfile = tr("Undefined file");
} }
bool hide = !mShowTypes[SeverityToShowType(severity)]; bool hide = !mShowTypes[SeverityToShowType(severity)];
@ -149,9 +149,11 @@ QStandardItem *ResultsTree::AddBacktraceFiles(QStandardItem *parent,
QList<QStandardItem*> list; QList<QStandardItem*> list;
list << CreateItem(file); list << CreateItem(file);
list << CreateItem(severity); list << CreateItem(tr(severity.toLatin1()));
list << CreateItem(QString("%1").arg(line)); list << CreateItem(QString("%1").arg(line));
list << CreateItem(message); //TODO message has parameter names so we'll need changes to the core
//cppcheck so we can get proper translations
list << CreateItem(tr(message.toLatin1()));
QModelIndex index = QModelIndex(); QModelIndex index = QModelIndex();
@ -607,19 +609,19 @@ QString ResultsTree::ShowTypeToString(ShowTypes type)
switch (type) switch (type)
{ {
case SHOW_ALL: case SHOW_ALL:
return "all"; return tr("all");
break; break;
case SHOW_STYLE: case SHOW_STYLE:
return "style"; return tr("style");
break; break;
case SHOW_SECURITY: case SHOW_SECURITY:
return "security"; return tr("security");
break; break;
case SHOW_ERRORS: case SHOW_ERRORS:
return "error"; return tr("error");
break; break;
case SHOW_NONE: case SHOW_NONE:
@ -751,6 +753,6 @@ void ResultsTree::Translate()
QStringList labels; QStringList labels;
labels << tr("File") << tr("Severity") << tr("Line") << tr("Message"); labels << tr("File") << tr("Severity") << tr("Line") << tr("Message");
mModel.setHorizontalHeaderLabels(labels); mModel.setHorizontalHeaderLabels(labels);
//TODO go through all the errors in the tree and translate severity and message
} }