1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 /***************************************************************************
8 	begin                : Jan 2010
9 	copyright            : (C) 2010 by Craig Bradney
10 	email                : cbradney@zip.com.au
11  ***************************************************************************/
12 
13 /***************************************************************************
14  *                                                                         *
15  *   This program is free software; you can redistribute it and/or modify  *
16  *   it under the terms of the GNU General Public License as published by  *
17  *   the Free Software Foundation; either version 2 of the License, or     *
18  *   (at your option) any later version.                                   *
19  *                                                                         *
20  ***************************************************************************/
21 
22 #include <QDebug>
23 
24 #include "actionmanager.h"
25 #include "ui/scmwmenumanager.h"
26 
ScMWMenuManager(QMenuBar * mb,QObject * parent)27 ScMWMenuManager::ScMWMenuManager(QMenuBar* mb, QObject *parent) :
28 	MenuManager(mb, parent)
29 {
30 }
31 
languageChange()32 void ScMWMenuManager::languageChange()
33 {
34 
35 	//Important for TRANSLATORS:
36 	//keep the same exact translations as the ones already translated. This function is
37 	//used when UI language is changed and updates main menus and sub-menus strings.
38 	//see void ScribusMainWindow::initMenuBar() or ScribusMainWindow context in qt linguist
39 
40 	setText("File", ActionManager::defaultMenuNameEntryTranslated("File"));
41 	setText("FileOpenRecent", tr("Open &Recent"));
42 	setText("EditPasteRecent", tr("Paste Recent"));
43 	setText("FileImport", tr("&Import"));
44 	setText("FileExport", tr("&Export"));
45 	setText("FileOutputPreview", tr("&Output Preview"));
46 	setText("Edit", ActionManager::defaultMenuNameEntryTranslated("Edit"));
47 	setText("EditContents", tr("Contents"));
48 	setText("Item", ActionManager::defaultMenuNameEntryTranslated("Item"));
49 	setText("DuplicateTransform", tr("Duplicate/Transform"));
50 	setText("Grouping", tr("Grouping"));
51 	setText("Locking", tr("Locking"));
52 	setText("ItemLevel", tr("&Level"));
53 	setText("ItemLayer", tr("Send to Layer"));
54 	setText("SendTo", tr("Send to"));
55 	setText("ItemSendToScrapbook", tr("Scrapbook"));
56 	setText("Adjust", tr("Adjust"));
57 	setText("Image", tr("Image"));
58 	setText("ItemPreviewSettings", tr("Previe&w Settings"));
59 	setText("ItemPDFOptions", tr("&PDF Options"));
60 	setText("ItemConvertTo", tr("C&onvert to"));
61 	setText("TextLinking", tr("Text Frame Links"));
62 //			setText("ItemPathOps", tr("Path Tools"));
63 	setText("Weld", tr("Welding"));
64 	setText("Insert", ActionManager::defaultMenuNameEntryTranslated("Insert"));
65 	setText("InsertChar", tr("Character"));
66 	setText("InsertQuote", tr("Quote"));
67 	setText("InsertSpace", tr("Space"));
68 	setText("InsertLigature", tr("Liga&ture"));
69 	setText("InsertMark", tr("Marks"));
70 	setText("Page", ActionManager::defaultMenuNameEntryTranslated("Page"));
71 	setText("ItemTable", ActionManager::defaultMenuNameEntryTranslated("Table"));
72 	setText("Extras", ActionManager::defaultMenuNameEntryTranslated("Extras"));
73 	setText("View", ActionManager::defaultMenuNameEntryTranslated("View"));
74 	setText("ViewZoom", tr("Zoom"));
75 	setText("ViewPreview", tr("Preview"));
76 	setText("ViewMeasuring", tr("Measurement"));
77 	setText("ViewTextFrames", tr("Text Frames"));
78 	setText("ViewImageFrames", tr("Image Frames"));
79 	setText("ViewDocument", tr("Document"));
80 	setText("ViewGrids", tr("Grids and Guides"));
81 	setText("Windows", ActionManager::defaultMenuNameEntryTranslated("Windows"));
82 	setText("Help", ActionManager::defaultMenuNameEntryTranslated("Help"));
83 	setText("Alignment", tr("&Alignment"));
84 	setText("HelpOnlineTutorials", tr("Online &Tutorials"));
85 	MenuManager::languageChange();
86 }
87