r20257 by jghali - #13231: Action History window name not translated

scribus-commit scribus-commit at lists.scribus.net
Fri Jul 17 22:50:23 UTC 2015


Author: jghali
Date: Fri Jul 17 22:50:23 2015
New Revision: 20257

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20257
Log:
#13231: Action History window name not translated

Modified:
    trunk/Scribus/scribus/undogui.cpp
    trunk/Scribus/scribus/undogui.h

Modified: trunk/Scribus/scribus/undogui.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20257&path=/trunk/Scribus/scribus/undogui.cpp
==============================================================================
--- trunk/Scribus/scribus/undogui.cpp (original)
+++ trunk/Scribus/scribus/undogui.cpp Fri Jul 17 22:50:23 2015
@@ -43,6 +43,11 @@
 	setWindowTitle( tr("Action History"));
 }
 
+void UndoGui::languageChange()
+{
+	setWindowTitle( tr("Action History"));
+}
+
 /*** UndoWidget ***************************************************************/
 
 UndoWidget::UndoWidget(QWidget* parent, const char* name) : UndoGui(parent, name)
@@ -307,11 +312,13 @@
 		languageChange();
 	}
 	else
-		QWidget::changeEvent(e);
+		UndoGui::changeEvent(e);
 }
 
 void UndoPalette::languageChange()
 {
+	UndoGui::languageChange();
+
 	objectBox->setText( tr("Show Selected Object Only"));
 	undoButton->setText( tr("&Undo"));
 	redoButton->setText( tr("&Redo"));

Modified: trunk/Scribus/scribus/undogui.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20257&path=/trunk/Scribus/scribus/undogui.h
==============================================================================
--- trunk/Scribus/scribus/undogui.h (original)
+++ trunk/Scribus/scribus/undogui.h Fri Jul 17 22:50:23 2015
@@ -74,6 +74,9 @@
 
 	/** @brief Empties the undo stack representation. */
 	virtual void clear() = 0;
+
+	/** @brief Sets GUI strings on language change */
+	virtual void languageChange();
 	
 public slots:
 	/**




More information about the scribus-commit mailing list