Descriptions for translators
authorAlexander Sokolov <sokoloff.a@gmail.com>
Mon, 7 Oct 2013 14:22:20 +0000 (18:22 +0400)
committerAlexander Sokolov <sokoloff.a@gmail.com>
Mon, 7 Oct 2013 14:22:20 +0000 (18:22 +0400)
CMakeLists.txt
aboutdialog/lxqtaboutdialog.cpp
aboutdialog/lxqtaboutdialog.ui
lxqtlibtranslate.h
translations/source.ts

index 4cf5157..bfcc129 100644 (file)
@@ -162,7 +162,7 @@ configure_file(
 #************************************************
 include_directories(${LXQT_INCLUDE_DIR})
 
-set(APP_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/liblxqrt)
+set(APP_SHARE_DIR ${CMAKE_INSTALL_PREFIX}/share/liblxqt)
 add_definitions(-DTRANSLATIONS_DIR=\"${APP_SHARE_DIR}\")
 
 # create the portable headers *******************
index e33d5fe..484c4bb 100644 (file)
@@ -91,23 +91,25 @@ QString AboutDialogPrivate::titleText() const
 QString AboutDialogPrivate::aboutText() const
 {
     return  QString("<br>%1<br><br><br>%2<hr>%3<p>%4").arg(
-                tr("Advanced, easy-to-use, and fast desktop environment based on Qt technologies."),
-                tr("Copyright: %1-%2 %3").arg("2010", QDate::currentDate().toString("yyyy"), "LXDE-Qt team"),
-
-                tr("Homepage: %1").arg("<a href='https://github.com/lxde'>github.com/lxde</a>"),
-                tr("License: %1").arg("<a href='http://www.gnu.org/licenses/lgpl-2.1.html'>GNU Lesser General Public License version 2.1 or later</a> "
-                                      "and partly under the "
-                                      "<a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU General Public License version 2</a>"
-                                      )
+                tr("Advanced, easy-to-use, and fast desktop environment based on Qt technologies.", "About dialog, 'About' tab text"),
+                tr("Copyright: %1-%2 %3", "About dialog, 'About' tab text")
+                    .arg("2010", QDate::currentDate().toString("yyyy"), "LXDE-Qt team"),
+
+                tr("Homepage: %1", "About dialog, 'About' tab text").arg("<a href='https://github.com/lxde'>github.com/lxde</a>"),
+                tr("License: %1", "About dialog, 'About' tab text")
+                    .arg("<a href='http://www.gnu.org/licenses/lgpl-2.1.html'>GNU Lesser General Public License version 2.1 or later</a> "
+                         "and partly under the "
+                         "<a href='http://www.gnu.org/licenses/gpl-2.0.html'>GNU General Public License version 2</a>"
+                        )
                 );
 }
 
 QString AboutDialogPrivate::authorsText() const
 {
     return QString("%1<p>%2").arg(
-                tr("LXDE-Qt is developed by the <a %1>LXDE-Qt Team and contributors</a> on Github.")
+                tr("LXDE-Qt is developed by the <a %1>LXDE-Qt Team and contributors</a> on Github.", "About dialog, 'Authors' tab text")
                     .arg(" href='https://github.com/lxde'>github.com/lxde'"),
-                tr("If you are interested in working with our development team, <a %1>join us</a>.")
+                tr("If you are interested in working with our development team, <a %1>join us</a>.", "About dialog, 'Authors' tab text")
                     .arg(" href='https://github.com/lxde'>github.com/lxde'")
                 );
 }
@@ -125,14 +127,14 @@ QString AboutDialogPrivate::thanksText() const
                 "<li>Alexander Zakher (for the name)</li>"
                 "<li>Alexey Nosov (for the A-MeGo theme)</li>"
                 "<li>and KDE (http://www.kde.org)</li>"
-                ).arg(tr("Special thanks to:"));
+                ).arg(tr("Special thanks to:", "About dialog, 'Thanks' tab text"));
 }
 
 QString AboutDialogPrivate::translationsText() const
 {
     TranslatorsInfo translatorsInfo;
     return QString("%1<p><ul>%2</ul>").arg(
-                tr("LXDE-Qt is translated into many languages thanks to the work of the translation teams all over the world."),
+                tr("LXDE-Qt is translated into many languages thanks to the work of the translation teams all over the world.", "About dialog, 'Translations' tab text"),
                 translatorsInfo.asHtml()
                 );
 }
index dabebdd..6958bf3 100644 (file)
@@ -63,7 +63,7 @@
      </property>
      <widget class="QWidget" name="tab">
       <attribute name="title">
-       <string>About</string>
+       <string comment="About dialog, Tab title ">About</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout_2">
        <item>
@@ -80,7 +80,7 @@
      </widget>
      <widget class="QWidget" name="tab_3">
       <attribute name="title">
-       <string>Authors</string>
+       <string comment="About dialog, Tab title">Authors</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout_4">
        <item>
@@ -97,7 +97,7 @@
      </widget>
      <widget class="QWidget" name="tab_4">
       <attribute name="title">
-       <string>Thanks</string>
+       <string comment="About dialog, Tab title">Thanks</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout_5">
        <item>
      </widget>
      <widget class="QWidget" name="translationsTab">
       <attribute name="title">
-       <string>Translations</string>
+       <string comment="About dialog, Tab title">Translations</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout">
        <item>
      </widget>
      <widget class="QWidget" name="tab_2">
       <attribute name="title">
-       <string>Technical Info</string>
+       <string comment="About dialog, Tab title">Technical Info</string>
       </attribute>
       <layout class="QVBoxLayout" name="verticalLayout_6">
        <item>
index c568879..f51fc77 100644 (file)
 #ifndef LIBTRANSLATE_H
 #define LIBTRANSLATE_H
 
-#include <QtCore/QTranslator>
-#include <QtCore/QCoreApplication>
-#include <QtCore/QLocale>
-#include <QtCore/QSet>
+#include <QTranslator>
+#include <QCoreApplication>
+#include <QLocale>
+#include <QSet>
+#include <QDebug>
+
 namespace LxQt
 {
 
index 2f37a12..8fdabf9 100644 (file)
     </message>
     <message>
         <source>Advanced, easy-to-use, and fast desktop environment based on Qt technologies.</source>
+        <comment>About dialog, &apos;About&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>Copyright: %1-%2 %3</source>
+        <comment>About dialog, &apos;About&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>Homepage: %1</source>
+        <comment>About dialog, &apos;About&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>License: %1</source>
+        <comment>About dialog, &apos;About&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>Razor-qt is developed by the &lt;a %1&gt;Razor-qt Team and contributors&lt;/a&gt; on Github.</source>
+        <source>LXDE-Qt is developed by the &lt;a %1&gt;LXDE-Qt Team and contributors&lt;/a&gt; on Github.</source>
+        <comment>About dialog, &apos;Authors&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>If you are interested in working with our development team, &lt;a %1&gt;join us&lt;/a&gt;.</source>
+        <comment>About dialog, &apos;Authors&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
         <source>Special thanks to:</source>
+        <comment>About dialog, &apos;Thanks&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
     <message>
-        <source>Razor-qt is translated into many languages thanks to the work of the translation teams all over the world.</source>
+        <source>LXDE-Qt is translated into many languages thanks to the work of the translation teams all over the world.</source>
+        <comment>About dialog, &apos;Translations&apos; tab text</comment>
         <translation type="unfinished"></translation>
     </message>
 </context>
 <context>
     <name>about</name>
     <message>
-        <source> About Razor</source>
-        <translation type="unfinished"></translation>
-    </message>
-    <message>
         <source>About</source>
         <translation type="unfinished"></translation>
     </message>
         <source>Copy to clipboard</source>
         <translation type="unfinished"></translation>
     </message>
+    <message>
+        <source> About LXDE-Qt</source>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>About</source>
+        <comment>About dialog, Tab title </comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Authors</source>
+        <comment>About dialog, Tab title</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Thanks</source>
+        <comment>About dialog, Tab title</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Translations</source>
+        <comment>About dialog, Tab title</comment>
+        <translation type="unfinished"></translation>
+    </message>
+    <message>
+        <source>Technical Info</source>
+        <comment>About dialog, Tab title</comment>
+        <translation type="unfinished"></translation>
+    </message>
 </context>
 </TS>