r21459 by jghali - #14109: Simplify Guide Manager strings translation <FirasH>

scribus-commit scribus-commit at lists.scribus.net
Thu Oct 6 21:58:06 UTC 2016


Author: jghali
Date: Thu Oct  6 21:58:05 2016
New Revision: 21459

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21459
Log:
#14109: Simplify Guide Manager strings translation <FirasH>

Modified:
    trunk/Scribus/scribus/ui/guidemanager.cpp
    trunk/Scribus/scribus/ui/guidemanager.ui

Modified: trunk/Scribus/scribus/ui/guidemanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21459&path=/trunk/Scribus/scribus/ui/guidemanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/guidemanager.cpp	(original)
+++ trunk/Scribus/scribus/ui/guidemanager.cpp	Thu Oct  6 21:58:05 2016
@@ -224,55 +224,7 @@
 
 void GuideManager::languageChange()
 {
-	setWindowTitle( tr("Guide Manager") );
-	tabWidget->setTabText(0, tr( "&Single") );
-	tabWidget->setTabText(1, tr( "&Column/Row") );
-	tabWidget->setTabText(2, tr( "&Misc") );
-	horizontalGroupBox->setTitle( tr("Horizontals") );
-	verticalGroupBox->setTitle( tr("Verticals") );
-	addHorButton->setText( tr("&Add") );
-	delHorButton->setText( tr("D&elete") );
-	addVerButton->setText( tr("A&dd") );
-	delVerButton->setText( tr("De&lete") );
-	lockCheck->setText( tr("&Lock Guides") );
-	applyToAllStdButton->setText( tr("Appl&y to All Pages") );
-	horizontalAutoGroup->setTitle( tr("Horizontals") );
-	verticalAutoGroup->setTitle( tr("Verticals") );
-	textLabel1->setText( tr("&Number:") );
-	textLabel1_2->setText( tr("Nu&mber:") );
-	horizontalAutoGapCheck->setText( tr("U&se Gap:") );
-	verticalAutoGapCheck->setText( tr("Use &Gap:") );
-	groupBox->setTitle( tr("Refer to") );
-	groupBox_2->setTitle( tr("Refer to") );
-	horizontalPageAutoButton->setText( tr("&Page") );
-	horizontalMarginsAutoButton->setText( tr("M&argins") );
-	horizontalSelectionAutoButton->setText( tr("S&election") );
-	verticalPageAutoButton->setText( tr("&Page") );
-	verticalMarginsAutoButton->setText( tr("M&argins") );
-	verticalSelectionAutoButton->setText( tr("S&election") );
-	applyToAllAutoButton->setText( tr("Appl&y to All Pages") );
-	deletePageButton->setText( tr("Delete Guides from Current &Page") );
-	deleteAllGuides->setText( tr("Delete Guides from &All Pages") );
-	//tooltips
-	addHorButton->setToolTip( tr("Add a new horizontal guide") );
-	delHorButton->setToolTip( tr("Delete the selected horizontal guide") );
-	addVerButton->setToolTip( tr("Add a new vertical guide") );
-	delVerButton->setToolTip( tr("Delete the selected vertical guide") );
-	lockCheck->setToolTip( tr("Lock the guides") );
-	applyToAllStdButton->setToolTip( tr("Apply to all pages") );
-	horizontalAutoCountSpin->setToolTip( tr("Number of horizontal guides to create") );
-	verticalAutoCountSpin->setToolTip( tr("Number of vertical guides to create") );
-	horizontalAutoGapCheck->setToolTip( tr("Create rows with guides, with an additional gap between the rows") );
-	verticalAutoGapCheck->setToolTip( tr("Create columns with guides, with an additional gap between the columns") );
-	horizontalPageAutoButton->setToolTip( tr("Create the selected number of horizontal guides relative to the current page") );
-	horizontalMarginsAutoButton->setToolTip( tr("Create the selected number of horizontal guides relative to the current page's margins") );
-	horizontalSelectionAutoButton->setToolTip( tr("Create the selected number of horizontal guides relative to the current selection of items") );
-	verticalPageAutoButton->setToolTip( tr("Create the selected number of vertical guides relative to the current page") );
-	verticalMarginsAutoButton->setToolTip( tr("Create the selected number of vertical guides relative to the current page's margins") );
-	verticalSelectionAutoButton->setToolTip( tr("Create the selected number of vertical guides relative to the current selection of items") );
-	applyToAllAutoButton->setToolTip( tr("Apply the shown guides to all pages in the document") );
-	deletePageButton->setToolTip( tr("Delete all guides shown on the current page") );
-	deleteAllGuides->setToolTip( tr("Delete all guides from all pages") );
+	retranslateUi(this);
 }
 
 void GuideManager::unitChange()

Modified: trunk/Scribus/scribus/ui/guidemanager.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21459&path=/trunk/Scribus/scribus/ui/guidemanager.ui
==============================================================================
--- trunk/Scribus/scribus/ui/guidemanager.ui	(original)
+++ trunk/Scribus/scribus/ui/guidemanager.ui	Thu Oct  6 21:58:05 2016
@@ -8,7 +8,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>421</width>
+    <width>432</width>
     <height>389</height>
    </rect>
   </property>
@@ -16,7 +16,16 @@
    <string>Guide Manager</string>
   </property>
   <layout class="QGridLayout">
-   <property name="margin">
+   <property name="leftMargin">
+    <number>11</number>
+   </property>
+   <property name="topMargin">
+    <number>11</number>
+   </property>
+   <property name="rightMargin">
+    <number>11</number>
+   </property>
+   <property name="bottomMargin">
     <number>11</number>
    </property>
    <property name="spacing">
@@ -52,6 +61,9 @@
             </item>
             <item row="1" column="0">
              <widget class="QPushButton" name="addHorButton">
+              <property name="toolTip">
+               <string>Add a new horizontal guide</string>
+              </property>
               <property name="text">
                <string>&Add</string>
               </property>
@@ -62,6 +74,9 @@
             </item>
             <item row="1" column="1">
              <widget class="QPushButton" name="delHorButton">
+              <property name="toolTip">
+               <string>Delete the selected horizontal guide</string>
+              </property>
               <property name="text">
                <string>D&elete</string>
               </property>
@@ -91,6 +106,9 @@
             </item>
             <item row="1" column="0">
              <widget class="QPushButton" name="addVerButton">
+              <property name="toolTip">
+               <string>Add a new vertical guide</string>
+              </property>
               <property name="text">
                <string>A&dd</string>
               </property>
@@ -101,6 +119,9 @@
             </item>
             <item row="1" column="1">
              <widget class="QPushButton" name="delVerButton">
+              <property name="toolTip">
+               <string>Delete the selected vertical guide</string>
+              </property>
               <property name="text">
                <string>De&lete</string>
               </property>
@@ -116,6 +137,9 @@
        </item>
        <item row="1" column="0">
         <widget class="QCheckBox" name="lockCheck">
+         <property name="toolTip">
+          <string>Lock the guides</string>
+         </property>
          <property name="text">
           <string>&Lock Guides</string>
          </property>
@@ -126,6 +150,9 @@
        </item>
        <item row="1" column="1">
         <widget class="QPushButton" name="applyToAllStdButton">
+         <property name="toolTip">
+          <string>Apply to all pages</string>
+         </property>
          <property name="text">
           <string>Appl&y to All Pages</string>
          </property>
@@ -162,6 +189,9 @@
           </item>
           <item row="0" column="1">
            <widget class="ScrSpinBox" name="horizontalAutoCountSpin">
+            <property name="toolTip">
+             <string>Number of horizontal guides to create</string>
+            </property>
             <property name="suffix">
              <string/>
             </property>
@@ -175,6 +205,9 @@
           </item>
           <item row="1" column="0" colspan="2">
            <widget class="QCheckBox" name="horizontalAutoGapCheck">
+            <property name="toolTip">
+             <string>Create rows with guides, with an additional gap between the rows</string>
+            </property>
             <property name="text">
              <string>U&se Gap:</string>
             </property>
@@ -194,6 +227,9 @@
             <layout class="QGridLayout">
              <item row="0" column="0">
               <widget class="QRadioButton" name="horizontalPageAutoButton">
+               <property name="toolTip">
+                <string>Create the selected number of horizontal guides relative to the current page</string>
+               </property>
                <property name="text">
                 <string>&Page</string>
                </property>
@@ -207,6 +243,9 @@
              </item>
              <item row="1" column="0">
               <widget class="QRadioButton" name="horizontalMarginsAutoButton">
+               <property name="toolTip">
+                <string>Create the selected number of horizontal guides relative to the current page's margins</string>
+               </property>
                <property name="text">
                 <string>M&argins</string>
                </property>
@@ -217,6 +256,9 @@
              </item>
              <item row="2" column="0">
               <widget class="QRadioButton" name="horizontalSelectionAutoButton">
+               <property name="toolTip">
+                <string>Create the selected number of horizontal guides relative to the current selection of items</string>
+               </property>
                <property name="text">
                 <string>S&election</string>
                </property>
@@ -252,6 +294,9 @@
           </item>
           <item row="0" column="1">
            <widget class="ScrSpinBox" name="verticalAutoCountSpin">
+            <property name="toolTip">
+             <string>Number of vertical guides to create</string>
+            </property>
             <property name="suffix">
              <string/>
             </property>
@@ -265,6 +310,9 @@
           </item>
           <item row="1" column="0" colspan="2">
            <widget class="QCheckBox" name="verticalAutoGapCheck">
+            <property name="toolTip">
+             <string>Create columns with guides, with an additional gap between the columns</string>
+            </property>
             <property name="text">
              <string>Use &Gap:</string>
             </property>
@@ -284,6 +332,9 @@
             <layout class="QGridLayout">
              <item row="0" column="0">
               <widget class="QRadioButton" name="verticalPageAutoButton">
+               <property name="toolTip">
+                <string>Create the selected number of vertical guides relative to the current page</string>
+               </property>
                <property name="text">
                 <string>&Page</string>
                </property>
@@ -297,6 +348,9 @@
              </item>
              <item row="1" column="0">
               <widget class="QRadioButton" name="verticalMarginsAutoButton">
+               <property name="toolTip">
+                <string>Create the selected number of vertical guides relative to the current page's margins</string>
+               </property>
                <property name="text">
                 <string>M&argins</string>
                </property>
@@ -307,6 +361,9 @@
              </item>
              <item row="2" column="0">
               <widget class="QRadioButton" name="verticalSelectionAutoButton">
+               <property name="toolTip">
+                <string>Create the selected number of vertical guides relative to the current selection of items</string>
+               </property>
                <property name="text">
                 <string>S&election</string>
                </property>
@@ -323,6 +380,9 @@
        </item>
        <item row="1" column="0" colspan="2">
         <widget class="QPushButton" name="applyToAllAutoButton">
+         <property name="toolTip">
+          <string>Apply the shown guides to all pages in the document</string>
+         </property>
          <property name="text">
           <string>Appl&y to All Pages</string>
          </property>




More information about the scribus-commit mailing list