r20252 by craig - #13232: Fix non-switching menu translations

scribus-commit scribus-commit at lists.scribus.net
Tue Jul 14 21:19:21 UTC 2015


Author: craig
Date: Tue Jul 14 21:19:20 2015
New Revision: 20252

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20252
Log:
#13232: Fix non-switching menu translations

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

Modified: trunk/Scribus/scribus/scribus.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20252&path=/trunk/Scribus/scribus/scribus.cpp
==============================================================================
--- trunk/Scribus/scribus/scribus.cpp (original)
+++ trunk/Scribus/scribus/scribus.cpp Tue Jul 14 21:19:20 2015
@@ -1086,7 +1086,7 @@
 	scrMenuMgr->createMenu("ViewPreview", tr("Preview"), "View");
 	scrMenuMgr->addMenuItemString("ViewPreview", "View");
 	scrMenuMgr->addMenuItemString("viewPreviewMode", "ViewPreview");
-	scrMenuMgr->createMenu("ViewMeasuring", tr("Measures"), "View");
+	scrMenuMgr->createMenu("ViewMeasuring", tr("Measurement"), "View");
 	scrMenuMgr->addMenuItemString("ViewMeasuring", "View");
 	scrMenuMgr->addMenuItemString("viewShowRulers", "ViewMeasuring");
 	scrMenuMgr->addMenuItemString("viewRulerMode", "ViewMeasuring");

Modified: trunk/Scribus/scribus/ui/scmwmenumanager.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20252&path=/trunk/Scribus/scribus/ui/scmwmenumanager.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scmwmenumanager.cpp (original)
+++ trunk/Scribus/scribus/ui/scmwmenumanager.cpp Tue Jul 14 21:19:20 2015
@@ -31,6 +31,12 @@
 
 void ScMWMenuManager::languageChange()
 {
+
+	//Important for TRANSLATORS:
+	//keep the same exact translations as the ones already translated. This function is
+	//used when UI language is changed and updates main menus and sub-menus strings.
+	//see void ScribusMainWindow::initMenuBar() or ScribusMainWindow context in qt linguist
+
 	setText("File", ActionManager::defaultMenuNameEntryTranslated("File"));
 	setText("FileOpenRecent", tr("Open &Recent"));
 	setText("EditPasteRecent", tr("Paste Recent"));
@@ -39,20 +45,38 @@
 	setText("Edit", ActionManager::defaultMenuNameEntryTranslated("Edit"));
 	setText("EditContents", tr("Contents"));
 	setText("Item", ActionManager::defaultMenuNameEntryTranslated("Item"));
+	setText("DuplicateTransform", tr("Duplicate/Transform"));
+	setText("Grouping", tr("Grouping"));
+	setText("Locking", tr("Locking"));
 	setText("ItemLevel", tr("&Level"));
 	setText("ItemLayer", tr("Send to Layer"));
+	setText("SendTo", tr("Send to"));
+	setText("ItemSendToScrapbook", tr("Scrapbook"));
+	setText("Adjust", tr("Adjust"));
+	setText("Image", tr("Image"));
 	setText("ItemPreviewSettings", tr("Previe&w Settings"));
 	setText("ItemPDFOptions", tr("&PDF Options"));
 	setText("ItemConvertTo", tr("C&onvert to"));
+	setText("TextLinking", tr("Text Frame Links"));
 //			setText("ItemPathOps", tr("Path Tools"));
+	setText("Weld", tr("Welding"));
 	setText("Insert", ActionManager::defaultMenuNameEntryTranslated("Insert"));
 	setText("InsertChar", tr("Character"));
 	setText("InsertQuote", tr("Quote"));
 	setText("InsertSpace", tr("Space"));
 	setText("InsertLigature", tr("Liga&ture"));
+	setText("InsertMark", tr("Marks"));
 	setText("Page", ActionManager::defaultMenuNameEntryTranslated("Page"));
+	setText("ItemTable", ActionManager::defaultMenuNameEntryTranslated("Table"));
+	setText("Extras", ActionManager::defaultMenuNameEntryTranslated("Extras"));
 	setText("View", ActionManager::defaultMenuNameEntryTranslated("View"));
-	setText("Extras", ActionManager::defaultMenuNameEntryTranslated("Extras"));
+	setText("ViewZoom", tr("Zoom"));
+	setText("ViewPreview", tr("Preview"));
+	setText("ViewMeasuring", tr("Measurement"));
+	setText("ViewTextFrames", tr("Text Frames"));
+	setText("ViewImageFrames", tr("Image Frames"));
+	setText("ViewDocument", tr("Document"));
+	setText("ViewGrids", tr("Grids and Guides"));
 	setText("Windows", ActionManager::defaultMenuNameEntryTranslated("Windows"));
 	setText("Help", ActionManager::defaultMenuNameEntryTranslated("Help"));
 	setText("Alignment", tr("&Alignment"));




More information about the scribus-commit mailing list