r20435 by jghali -

scribus-commit scribus-commit at lists.scribus.net
Mon Sep 28 23:31:08 UTC 2015


Author: jghali
Date: Mon Sep 28 23:31:08 2015
New Revision: 20435

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20435
Log:
#13378: Fix non updated strings in "gradienteditor" after language change <FirasH>

Modified:
    trunk/Scribus/scribus/ui/gradienteditor.cpp
    trunk/Scribus/scribus/ui/gradienteditor.ui
    trunk/Scribus/scribus/ui/propertiespalette_line.cpp

Modified: trunk/Scribus/scribus/ui/gradienteditor.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20435&path=/trunk/Scribus/scribus/ui/gradienteditor.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/gradienteditor.cpp	(original)
+++ trunk/Scribus/scribus/ui/gradienteditor.cpp	Mon Sep 28 23:31:08 2015
@@ -171,8 +171,7 @@
 
 void GradientEditor::languageChange()
 {
-	Desc->setText( tr( "Position:" ) );
-	stopPos->setSuffix( tr(" %") );
+	retranslateUi(this);
 }
 
 bool GradientEditor::event(QEvent * event)

Modified: trunk/Scribus/scribus/ui/gradienteditor.ui
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20435&path=/trunk/Scribus/scribus/ui/gradienteditor.ui
==============================================================================
--- trunk/Scribus/scribus/ui/gradienteditor.ui	(original)
+++ trunk/Scribus/scribus/ui/gradienteditor.ui	Mon Sep 28 23:31:08 2015
@@ -55,13 +55,13 @@
      <property name="lineWidth">
       <number>2</number>
      </property>
-    </widget>
-   </item>
-   <item row="1" column="0">
-    <widget class="QLabel" name="Desc">
-     <property name="text">
-      <string>Position:</string>
-     </property>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <widget class="QLabel" name="stopPosLabel">
+     <property name="text">
+      <string>Position:</string>
+     </property>
     </widget>
    </item>
    <item row="1" column="1">
@@ -72,23 +72,23 @@
      <property name="maximum">
       <number>100</number>
      </property>
-    </widget>
-   </item>
-   <item row="2" column="0">
-    <widget class="QLabel" name="label">
-     <property name="text">
-      <string>Color:</string>
-     </property>
+    </widget>
+   </item>
+   <item row="2" column="0">
+    <widget class="QLabel" name="stopColorLabel">
+     <property name="text">
+      <string>Color:</string>
+     </property>
     </widget>
    </item>
    <item row="2" column="1">
-    <widget class="ColorCombo" name="stopColor"/>
-   </item>
-   <item row="3" column="0">
-    <widget class="QLabel" name="label_2">
-     <property name="text">
-      <string>Opacity:</string>
-     </property>
+    <widget class="ColorCombo" name="stopColor"/>
+   </item>
+   <item row="3" column="0">
+    <widget class="QLabel" name="stopOpacityLabel">
+     <property name="text">
+      <string>Opacity:</string>
+     </property>
     </widget>
    </item>
    <item row="3" column="1">
@@ -105,13 +105,13 @@
      <property name="value">
       <number>100</number>
      </property>
-    </widget>
-   </item>
-   <item row="4" column="0">
-    <widget class="QLabel" name="label_3">
-     <property name="text">
-      <string>Shade:</string>
-     </property>
+    </widget>
+   </item>
+   <item row="4" column="0">
+    <widget class="QLabel" name="stopShadeLabel">
+     <property name="text">
+      <string>Shade:</string>
+     </property>
     </widget>
    </item>
    <item row="4" column="1">

Modified: trunk/Scribus/scribus/ui/propertiespalette_line.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20435&path=/trunk/Scribus/scribus/ui/propertiespalette_line.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/propertiespalette_line.cpp	(original)
+++ trunk/Scribus/scribus/ui/propertiespalette_line.cpp	Mon Sep 28 23:31:08 2015
@@ -649,7 +649,7 @@
 	lineType->updateList();
 	lineType->addItem( tr("Custom"));
 	lineType->setCurrentIndex(oldLineStyle);
-	int oldLineMode=lineMode->currentIndex();
+	int oldLineMode = lineMode->currentIndex();
 	lineMode->clear();
 	lineMode->addItem( tr("Left Point"));
 	lineMode->addItem( tr("End Points"));




More information about the scribus-commit mailing list