[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kdevelop] analyzers/cppcheck: i18n fixes
From:       Pino Toscano <pino () kde ! org>
Date:       2016-12-07 7:47:23
Message-ID: E1cEWwl-000150-CT () code ! kde ! org
[Download RAW message or body]

Git commit c8bd4ee4649274508edb34d36147efd815373ed6 by Pino Toscano.
Committed on 07/12/2016 at 07:47.
Pushed by pino into branch 'master'.

i18n fixes

- remove unused/simplify extra markup from tooltips
- remove unused title from widget
- remove extra domain from string
- translate one more user-visible string
- style fixes

M  +1    -4    analyzers/cppcheck/config/globalconfigpage.ui
M  +17   -17   analyzers/cppcheck/config/projectconfigpage.ui
M  +1    -1    analyzers/cppcheck/job.cpp
M  +1    -1    analyzers/cppcheck/plugin.cpp

https://commits.kde.org/kdevelop/c8bd4ee4649274508edb34d36147efd815373ed6

diff --git a/analyzers/cppcheck/config/globalconfigpage.ui \
b/analyzers/cppcheck/config/globalconfigpage.ui index afb6361c31..5a1b5d65d5 100644
--- a/analyzers/cppcheck/config/globalconfigpage.ui
+++ b/analyzers/cppcheck/config/globalconfigpage.ui
@@ -10,9 +10,6 @@
     <height>397</height>
    </rect>
   </property>
-  <property name="windowTitle">
-   <string>Cppcheck Settings</string>
-  </property>
   <layout class="QVBoxLayout" name="verticalLayout_2">
    <item>
     <widget class="QGroupBox" name="pathsGroupBox">
@@ -23,7 +20,7 @@
       <item>
        <widget class="QLabel" name="cppcheckLabel">
         <property name="text">
-         <string>Cppchec&amp;k executable</string>
+         <string>Cppchec&amp;k executable:</string>
         </property>
         <property name="alignment">
          <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
diff --git a/analyzers/cppcheck/config/projectconfigpage.ui \
b/analyzers/cppcheck/config/projectconfigpage.ui index 3b6b588975..0021918350 100644
--- a/analyzers/cppcheck/config/projectconfigpage.ui
+++ b/analyzers/cppcheck/config/projectconfigpage.ui
@@ -32,7 +32,7 @@
          <item row="2" column="0">
           <widget class="QCheckBox" name="kcfg_checkUnusedFunction">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Check for unused \
functions. It is recommend to only enable this when the whole program is \
scanned&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Check for \
unused functions. It is recommend to only enable this when the whole program is \
scanned</string>  </property>
            <property name="text">
             <string>Unused function</string>
@@ -45,7 +45,7 @@
          <item row="3" column="0">
           <widget class="QCheckBox" name="kcfg_inconclusiveAnalysis">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Allow that \
Cppcheck reports even though the analysis is inconclusive. There are false positives \
with this option. Each result must be carefully investigated before you know if it is \
good or bad.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Allow \
that Cppcheck reports even though the analysis is inconclusive. There are false \
positives with this option. Each result must be carefully investigated before you \
know if it is good or bad.</string>  </property>
            <property name="text">
             <string>Inconclusive analysis</string>
@@ -55,7 +55,7 @@
          <item row="1" column="1">
           <widget class="QCheckBox" name="kcfg_checkInformation">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enable information \
messages&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Enable \
information messages</string>  </property>
            <property name="text">
             <string>Information</string>
@@ -68,7 +68,7 @@
          <item row="2" column="1">
           <widget class="QCheckBox" name="kcfg_checkMissingInclude">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Warn if there are \
missing includes. For detailed information use \
'check-config'&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Warn \
if there are missing includes. For detailed information use 'check-config'</string>  \
</property>  <property name="text">
             <string>Missing include</string>
@@ -81,7 +81,7 @@
          <item row="0" column="1">
           <widget class="QCheckBox" name="kcfg_checkPerformance">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enable performance \
messages&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Enable \
performance messages</string>  </property>
            <property name="text">
             <string>Performance</string>
@@ -94,7 +94,7 @@
          <item row="3" column="1">
           <widget class="QCheckBox" name="kcfg_forceCheck">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Force checking of \
files that have a lot of configurations. Error is printed if such a file is found so \
there is no reason to use this by default. If used together with '--max-configs=', \
the last option is the one that is effective.&lt;/p&gt;&lt;p&gt;Be careful with using \
this option - it can dramatically slow \
checking.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            \
<string>&lt;p&gt;Force checking of files that have a lot of configurations. Error is \
printed if such a file is found so there is no reason to use this by default. If used \
together with '--max-configs=', the last option is the one that is \
effective.&lt;br/&gt;&lt;br/&gt;Be careful with using this option - it can \
dramatically slow checking.&lt;/p&gt;</string>  </property>
            <property name="text">
             <string>Force checking</string>
@@ -104,7 +104,7 @@
          <item row="1" column="0">
           <widget class="QCheckBox" name="kcfg_checkPortability">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enable portability \
messages&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Enable \
portability messages</string>  </property>
            <property name="text">
             <string>Portability</string>
@@ -117,7 +117,7 @@
          <item row="0" column="0">
           <widget class="QCheckBox" name="kcfg_checkStyle">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Enable all coding \
style checks. All messages with the severities 'style', 'performance' and \
'portability' are enabled.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            \
<string>Enable all coding style checks. All messages with the severities 'style', \
'performance' and 'portability' are enabled.</string>  </property>
            <property name="text">
             <string>Style</string>
@@ -130,7 +130,7 @@
          <item row="4" column="0">
           <widget class="QCheckBox" name="kcfg_checkConfig">
            <property name="toolTip">
-            <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Check Cppcheck \
configuration. The normal code analysis is disabled by this \
flag.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +            <string>Check \
Cppcheck configuration. The normal code analysis is disabled by this flag.</string>  \
</property>  <property name="text">
             <string>Check config</string>
@@ -149,7 +149,7 @@
        <item>
         <widget class="QCheckBox" name="kcfg_useProjectIncludes">
          <property name="toolTip">
-          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Add 'project' \
include directories to cppcheck arguments. This option adds only paths related with \
project's root and build directories.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +  \
<string>Add 'project' include directories to cppcheck arguments. This option adds \
only paths related with project's root and build directories.</string>  </property>
          <property name="text">
           <string>Use 'project' include dirs</string>
@@ -165,7 +165,7 @@
           <bool>false</bool>
          </property>
          <property name="toolTip">
-          <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Add other, 'system' \
include directories to cppcheck arguments. &lt;/p&gt;&lt;p&gt;Be careful with using \
this option - it can dramatically slow \
checking.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string> +          \
<string>&lt;p&gt;Add other, 'system' include directories to cppcheck \
arguments.&lt;br/&gt;&lt;br/&gt;Be careful with using this option - it can \
dramatically slow checking.&lt;/p&gt;</string>  </property>
          <property name="text">
           <string>Use 'system' include dirs</string>
@@ -239,7 +239,7 @@
            <item>
             <widget class="QLabel" name="extraLabel">
              <property name="text">
-              <string>&amp;Extra parameters:</string>
+              <string>Ex&amp;tra parameters:</string>
              </property>
              <property name="buddy">
               <cstring>kcfg_extraParameters</cstring>
@@ -349,15 +349,15 @@
  </widget>
  <customwidgets>
   <customwidget>
-   <class>KMessageWidget</class>
-   <extends>QFrame</extends>
-   <header>kmessagewidget.h</header>
-  </customwidget>
-  <customwidget>
    <class>KFilterProxySearchLine</class>
    <extends>QWidget</extends>
    <header>kfilterproxysearchline.h</header>
   </customwidget>
+  <customwidget>
+   <class>KMessageWidget</class>
+   <extends>QFrame</extends>
+   <header>kmessagewidget.h</header>
+  </customwidget>
  </customwidgets>
  <tabstops>
   <tabstop>tabWidget</tabstop>
diff --git a/analyzers/cppcheck/job.cpp b/analyzers/cppcheck/job.cpp
index 29f816c72f..18524ceb72 100644
--- a/analyzers/cppcheck/job.cpp
+++ b/analyzers/cppcheck/job.cpp
@@ -53,7 +53,7 @@ Job::Job(const Parameters& params, QObject* parent)
     QString prettyName = \
KDevelop::ICore::self()->projectController()->prettyFileName(  \
QUrl::fromLocalFile(params.checkPath),  KDevelop::IProjectController::FormatPlain);
-    setJobName(QString("Cppcheck (%1)").arg(prettyName));
+    setJobName(i18n("Cppcheck (%1)", prettyName));
 
     setCapabilities(KJob::Killable);
     setStandardToolView(KDevelop::IOutputView::TestView);
diff --git a/analyzers/cppcheck/plugin.cpp b/analyzers/cppcheck/plugin.cpp
index f8f32dbe11..e986dddbef 100644
--- a/analyzers/cppcheck/plugin.cpp
+++ b/analyzers/cppcheck/plugin.cpp
@@ -124,7 +124,7 @@ void Plugin::raiseProblemsView()
 void Plugin::raiseOutputView()
 {
     core()->uiController()->findToolView(
-        i18ndc("kdevstandardoutputview", "@title:window", "Test"),
+        i18nc("@title:window", "Test"),
         nullptr,
         KDevelop::IUiController::FindFlags::Raise);
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic