r20493 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Sat Oct 24 13:58:01 UTC 2015
Author: jghali
Date: Sat Oct 24 13:58:01 2015
New Revision: 20493
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20493
Log:
#13456: Script Menu Non-switching translations
Modified:
trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h
Modified: trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20493&path=/trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/pconsole.cpp Sat Oct 24 13:58:01 2015
@@ -96,6 +96,16 @@
outputEdit->setFont(font);
}
+void PythonConsole::changeEvent(QEvent *e)
+{
+ if (e->type() == QEvent::LanguageChange)
+ {
+ languageChange();
+ return;
+ }
+ QMainWindow::changeEvent(e);
+}
+
void PythonConsole::closeEvent(QCloseEvent *)
{
emit paletteShown(false);
@@ -117,7 +127,10 @@
void PythonConsole::languageChange()
{
Ui::PythonConsole::retranslateUi(this);
- //setWindowTitle( tr("Script Console"));
+
+ cursorTemplate = tr("Col: %1 Row: %2/%3");
+ commandEdit_cursorPositionChanged();
+
commandEdit->setToolTip( "<qt>" + tr("Write your commands here. A selection is processed as script.") + "</qt>");
outputEdit->setToolTip( "<qt>" + tr("Output of your script") + "</qt>");
}
Modified: trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20493&path=/trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h
==============================================================================
--- trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h (original)
+++ trunk/Scribus/scribus/plugins/scriptplugin/pconsole.h Sat Oct 24 13:58:01 2015
@@ -44,6 +44,7 @@
//! \brief Close event for turning the action off
void closeEvent(QCloseEvent *);
+ virtual void changeEvent(QEvent *e);
void updateSyntaxHighlighter();
public slots:
More information about the scribus-commit
mailing list