Commit 6811d470 authored by Jan Möbius's avatar Jan Möbius

Changes for translations

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6713 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e8f31130
...@@ -52,13 +52,13 @@ ...@@ -52,13 +52,13 @@
typedef QString MenuActionType; typedef QString MenuActionType;
/// The Menu will be added inside the File Menu /// The Menu will be added inside the File Menu
#define FILEMENU tr("&File") #define FILEMENU tr("File")
/// The Menu will be added inside the View Menu /// The Menu will be added inside the View Menu
#define VIEWMENU tr("&View") #define VIEWMENU tr("View")
/// The Menu will be added inside the Tools Menu /// The Menu will be added inside the Tools Menu
#define TOOLSMENU tr("&Tools") #define TOOLSMENU tr("Tools")
/** \brief Interface for all plugins which provide entries to the main menubar /** \brief Interface for all plugins which provide entries to the main menubar
......
...@@ -11,8 +11,6 @@ include_directories ( ...@@ -11,8 +11,6 @@ include_directories (
${GLUT_INCLUDE_DIR} ${GLUT_INCLUDE_DIR}
) )
set (COREAPP_FILES_TO_TRANSLATE )
link_directories ( link_directories (
${GLEW_LIBRARY_DIR} ${GLEW_LIBRARY_DIR}
) )
...@@ -91,6 +89,7 @@ if (APPLE) ...@@ -91,6 +89,7 @@ if (APPLE)
) )
endif () endif ()
set (COREAPP_FILES_TO_TRANSLATE ${COREAPP_FILES_TO_TRANSLATE} ${sources} ${ui} ${headers}) set (COREAPP_FILES_TO_TRANSLATE ${COREAPP_FILES_TO_TRANSLATE} ${sources} ${ui} ${headers})
# generate/use translation files # generate/use translation files
......
...@@ -4,19 +4,31 @@ ...@@ -4,19 +4,31 @@
<context> <context>
<name></name> <name></name>
<message> <message>
<location filename="../../BasePlugin/MenuInterface.hh" line="55"/>
<source>&amp;File</source> <source>&amp;File</source>
<translation>Datei</translation> <translation type="obsolete">Datei</translation>
</message> </message>
<message> <message>
<location filename="../../BasePlugin/MenuInterface.hh" line="58"/>
<source>&amp;View</source> <source>&amp;View</source>
<translation>Ansicht</translation> <translation type="obsolete">Ansicht</translation>
</message> </message>
<message> <message>
<location filename="../../BasePlugin/MenuInterface.hh" line="61"/>
<source>&amp;Tools</source> <source>&amp;Tools</source>
<translation>Extras</translation> <translation type="obsolete">Extras</translation>
</message>
<message>
<location filename="../../BasePlugin/MenuInterface.hh" line="55"/>
<source>File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../BasePlugin/MenuInterface.hh" line="58"/>
<source>View</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../../BasePlugin/MenuInterface.hh" line="61"/>
<source>Tools</source>
<translation type="unfinished"></translation>
</message> </message>
</context> </context>
</TS> </TS>
...@@ -110,12 +110,12 @@ void CoreWidget::setupMenuBar() ...@@ -110,12 +110,12 @@ void CoreWidget::setupMenuBar()
// ====================================================================== // ======================================================================
// File Menu // File Menu
// ====================================================================== // ======================================================================
fileMenu_ = new QMenu(tr("&File")); fileMenu_ = new QMenu(tr("File"));
menuBar()->addMenu(fileMenu_ ); menuBar()->addMenu(fileMenu_ );
menus_[tr("&File")] = fileMenu_; menus_[tr("File")] = fileMenu_;
//Clear all //Clear all
QAction* AC_clear_all = new QAction(tr("&Clear All"), this);; QAction* AC_clear_all = new QAction(tr("Clear All"), this);;
AC_clear_all->setStatusTip(tr("Clear all Objects")); AC_clear_all->setStatusTip(tr("Clear all Objects"));
AC_clear_all->setWhatsThis("Close all open Objects"); AC_clear_all->setWhatsThis("Close all open Objects");
AC_clear_all->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-clear.png")); AC_clear_all->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"edit-clear.png"));
...@@ -125,8 +125,7 @@ void CoreWidget::setupMenuBar() ...@@ -125,8 +125,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addSeparator(); fileMenu_->addSeparator();
//Load object //Load object
QAction* AC_Load = new QAction(tr("&Load Object"), this); QAction* AC_Load = new QAction(tr("Load Object"), this);
// AC_Load->setShortcut (Qt::CTRL + Qt::Key_O);
AC_Load->setStatusTip(tr("Load an object")); AC_Load->setStatusTip(tr("Load an object"));
AC_Load->setWhatsThis("Load a new object"); AC_Load->setWhatsThis("Load a new object");
AC_Load->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"document-open.png")); AC_Load->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"document-open.png"));
...@@ -135,7 +134,7 @@ void CoreWidget::setupMenuBar() ...@@ -135,7 +134,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addAction(AC_Load); fileMenu_->addAction(AC_Load);
//Add empty object //Add empty object
QAction* AC_AddEmpty = new QAction(tr("&Add Empty Object"), this); QAction* AC_AddEmpty = new QAction(tr("Add Empty Object"), this);
AC_AddEmpty->setStatusTip(tr("Add an empty object")); AC_AddEmpty->setStatusTip(tr("Add an empty object"));
AC_AddEmpty->setWhatsThis("Creates a new empty object of a given type"); AC_AddEmpty->setWhatsThis("Creates a new empty object of a given type");
AC_AddEmpty->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"add-empty-object.png")); AC_AddEmpty->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"add-empty-object.png"));
...@@ -145,7 +144,7 @@ void CoreWidget::setupMenuBar() ...@@ -145,7 +144,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addSeparator(); fileMenu_->addSeparator();
//Save object //Save object
QAction* AC_Save = new QAction(tr("&Save Object"), this); QAction* AC_Save = new QAction(tr("Save Object"), this);
// AC_Save->setShortcut (Qt::CTRL + Qt::Key_S); // AC_Save->setShortcut (Qt::CTRL + Qt::Key_S);
AC_Save->setStatusTip(tr("Save currently selected objects")); AC_Save->setStatusTip(tr("Save currently selected objects"));
AC_Save->setWhatsThis("Saves all currently selected objects"); AC_Save->setWhatsThis("Saves all currently selected objects");
...@@ -154,7 +153,7 @@ void CoreWidget::setupMenuBar() ...@@ -154,7 +153,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addAction(AC_Save); fileMenu_->addAction(AC_Save);
//Save object to //Save object to
QAction* AC_Save_to = new QAction(tr("&Save Object To"), this); QAction* AC_Save_to = new QAction(tr("Save Object To"), this);
AC_Save_to->setStatusTip(tr("Save current Object(s) To")); AC_Save_to->setStatusTip(tr("Save current Object(s) To"));
AC_Save_to->setWhatsThis("Saves all currently selected objects under a new name"); AC_Save_to->setWhatsThis("Saves all currently selected objects under a new name");
AC_Save_to->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"document-save-as.png")); AC_Save_to->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"document-save-as.png"));
...@@ -164,7 +163,7 @@ void CoreWidget::setupMenuBar() ...@@ -164,7 +163,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addSeparator(); fileMenu_->addSeparator();
//Load ini //Load ini
QAction* AC_load_ini = new QAction(tr("&Load Settings"), this); QAction* AC_load_ini = new QAction(tr("Load Settings"), this);
AC_load_ini->setStatusTip(tr("Load Settings from INI file")); AC_load_ini->setStatusTip(tr("Load Settings from INI file"));
AC_load_ini->setWhatsThis("Load a previous settings from file (objects,colors,...)"); AC_load_ini->setWhatsThis("Load a previous settings from file (objects,colors,...)");
AC_load_ini->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"load-settings.png")); AC_load_ini->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"load-settings.png"));
...@@ -172,7 +171,7 @@ void CoreWidget::setupMenuBar() ...@@ -172,7 +171,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addAction(AC_load_ini); fileMenu_->addAction(AC_load_ini);
//Save ini //Save ini
QAction* AC_save_ini = new QAction(tr("&Save Settings"), this); QAction* AC_save_ini = new QAction(tr("Save Settings"), this);
AC_save_ini->setStatusTip(tr("Save current settings to INI file")); AC_save_ini->setStatusTip(tr("Save current settings to INI file"));
AC_save_ini->setWhatsThis("Save settings to file (objects,colors,...)"); AC_save_ini->setWhatsThis("Save settings to file (objects,colors,...)");
AC_save_ini->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"save-settings.png")); AC_save_ini->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"save-settings.png"));
...@@ -182,7 +181,7 @@ void CoreWidget::setupMenuBar() ...@@ -182,7 +181,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addSeparator(); fileMenu_->addSeparator();
//Options //Options
QAction* AC_Options = new QAction(tr("&Options"), this); QAction* AC_Options = new QAction(tr("Options"), this);
AC_Options->setStatusTip(tr("Edit OpenFlipper Options")); AC_Options->setStatusTip(tr("Edit OpenFlipper Options"));
AC_Options->setWhatsThis("Edit OpenFlipper Options"); AC_Options->setWhatsThis("Edit OpenFlipper Options");
AC_Options->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"options.png")); AC_Options->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"options.png"));
...@@ -193,7 +192,7 @@ void CoreWidget::setupMenuBar() ...@@ -193,7 +192,7 @@ void CoreWidget::setupMenuBar()
fileMenuEnd_ = fileMenu_->addSeparator(); fileMenuEnd_ = fileMenu_->addSeparator();
//Recent files //Recent files
recentFilesMenu_ = new QMenu(tr("&Recent Files")); recentFilesMenu_ = new QMenu(tr("Recent Files"));
recentFilesMenu_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"document-open-recent.png")); recentFilesMenu_->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"document-open-recent.png"));
recentFilesMenu_->setWhatsThis("Open recent files"); recentFilesMenu_->setWhatsThis("Open recent files");
connect(recentFilesMenu_,SIGNAL(triggered(QAction*)),this,SIGNAL(recentOpen(QAction*))); connect(recentFilesMenu_,SIGNAL(triggered(QAction*)),this,SIGNAL(recentOpen(QAction*)));
...@@ -202,7 +201,7 @@ void CoreWidget::setupMenuBar() ...@@ -202,7 +201,7 @@ void CoreWidget::setupMenuBar()
fileMenu_->addSeparator(); fileMenu_->addSeparator();
//Main Application exit menu entry //Main Application exit menu entry
QAction* AC_exit = new QAction(tr("&Exit"), this);; QAction* AC_exit = new QAction(tr("Exit"), this);;
AC_exit->setShortcut (Qt::CTRL + Qt::Key_Q); AC_exit->setShortcut (Qt::CTRL + Qt::Key_Q);
AC_exit->setStatusTip(tr("Exit Application")); AC_exit->setStatusTip(tr("Exit Application"));
recentFilesMenu_->setWhatsThis("Close OpenFlipper"); recentFilesMenu_->setWhatsThis("Close OpenFlipper");
...@@ -214,9 +213,9 @@ void CoreWidget::setupMenuBar() ...@@ -214,9 +213,9 @@ void CoreWidget::setupMenuBar()
// ====================================================================== // ======================================================================
// View Menu // View Menu
// ====================================================================== // ======================================================================
viewMenu_ = new QMenu(tr("&View")); viewMenu_ = new QMenu(tr("View"));
menuBar()->addMenu(viewMenu_ ); menuBar()->addMenu(viewMenu_ );
menus_[tr("&View")] = viewMenu_; menus_[tr("View")] = viewMenu_;
slotUpdateGlobalDrawMenu(); slotUpdateGlobalDrawMenu();
viewMenu_->addMenu(globalDrawMenu_); viewMenu_->addMenu(globalDrawMenu_);
...@@ -356,7 +355,7 @@ void CoreWidget::setupMenuBar() ...@@ -356,7 +355,7 @@ void CoreWidget::setupMenuBar()
viewMenu_->addSeparator(); viewMenu_->addSeparator();
QAction* setGlobalBackgroundColor = new QAction(tr("&Set Background Color"), this);; QAction* setGlobalBackgroundColor = new QAction(tr("Set Background Color"), this);;
setGlobalBackgroundColor->setToolTip(tr("Set Background Color for all viewers")); setGlobalBackgroundColor->setToolTip(tr("Set Background Color for all viewers"));
setGlobalBackgroundColor->setStatusTip(tr("Set Background Color for all viewers")); setGlobalBackgroundColor->setStatusTip(tr("Set Background Color for all viewers"));
setGlobalBackgroundColor->setWhatsThis("Set Background Color for all viewers"); setGlobalBackgroundColor->setWhatsThis("Set Background Color for all viewers");
...@@ -368,9 +367,9 @@ void CoreWidget::setupMenuBar() ...@@ -368,9 +367,9 @@ void CoreWidget::setupMenuBar()
// Tools Menu // Tools Menu
//=========================================================================================================================== //===========================================================================================================================
toolsMenu_ = new QMenu(tr("&Tools")); toolsMenu_ = new QMenu(tr("Tools"));
menuBar()->addMenu(toolsMenu_ ); menuBar()->addMenu(toolsMenu_ );
menus_[tr("&Tools")] = toolsMenu_; menus_[tr("Tools")] = toolsMenu_;
QAction* sceneGraphAction = new QAction( "Show SceneGraph " ,toolsMenu_ ); QAction* sceneGraphAction = new QAction( "Show SceneGraph " ,toolsMenu_ );
sceneGraphAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"scenegraph.png") ); sceneGraphAction->setIcon( QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"scenegraph.png") );
...@@ -405,12 +404,12 @@ void CoreWidget::setupMenuBar() ...@@ -405,12 +404,12 @@ void CoreWidget::setupMenuBar()
// ====================================================================== // ======================================================================
// help Menu // help Menu
// ====================================================================== // ======================================================================
helpMenu_ = new QMenu(tr("&Help")); helpMenu_ = new QMenu(tr("Help"));
menuBar()->addMenu(helpMenu_); menuBar()->addMenu(helpMenu_);
menus_[tr("&Help")] = helpMenu_; menus_[tr("Help")] = helpMenu_;
//Open Help Browser //Open Help Browser
QAction* AC_HelpBrowser = new QAction(tr("&Help"), this); QAction* AC_HelpBrowser = new QAction(tr("Help"), this);
AC_HelpBrowser->setStatusTip(tr("Open Help Browser with Documentation")); AC_HelpBrowser->setStatusTip(tr("Open Help Browser with Documentation"));
AC_HelpBrowser->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"help-browser.png")); AC_HelpBrowser->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"help-browser.png"));
AC_HelpBrowser->setWhatsThis("Open the <b>Help Browser</b>"); AC_HelpBrowser->setWhatsThis("Open the <b>Help Browser</b>");
...@@ -426,7 +425,7 @@ void CoreWidget::setupMenuBar() ...@@ -426,7 +425,7 @@ void CoreWidget::setupMenuBar()
helpMenu_->addSeparator(); helpMenu_->addSeparator();
//show plugins //show plugins
QAction* AC_Plugins = new QAction(tr("&Plugins"), this); QAction* AC_Plugins = new QAction(tr("Plugins"), this);
AC_Plugins->setStatusTip(tr("Show loaded plugins")); AC_Plugins->setStatusTip(tr("Show loaded plugins"));
AC_Plugins->setWhatsThis("Show loaded plugins"); AC_Plugins->setWhatsThis("Show loaded plugins");
AC_Plugins->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"network-connect.png")); AC_Plugins->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"network-connect.png"));
...@@ -436,7 +435,7 @@ void CoreWidget::setupMenuBar() ...@@ -436,7 +435,7 @@ void CoreWidget::setupMenuBar()
helpMenu_->addSeparator(); helpMenu_->addSeparator();
//About Action //About Action
QAction* AC_About = new QAction(tr("&About"), this); QAction* AC_About = new QAction(tr("About"), this);
AC_About->setStatusTip(tr("About OpenFlipper")); AC_About->setStatusTip(tr("About OpenFlipper"));
AC_About->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"help-about.png")); AC_About->setIcon(QIcon(OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator()+"help-about.png"));
AC_About->setWhatsThis("This entry shows information about <b>OpenFlipper</b>"); AC_About->setWhatsThis("This entry shows information about <b>OpenFlipper</b>");
...@@ -569,7 +568,7 @@ void CoreWidget::slotViewMenuAboutToShow() { ...@@ -569,7 +568,7 @@ void CoreWidget::slotViewMenuAboutToShow() {
globalMultisamplingAction_->setChecked( Qt::Unchecked ); globalMultisamplingAction_->setChecked( Qt::Unchecked );
globalMultisamplingAction_->setToolTip(tr("Enable Multisampling for all viewers")); globalMultisamplingAction_->setToolTip(tr("Enable Multisampling for all viewers"));
globalMultisamplingAction_->setStatusTip(tr("Enable Multisampling for all viewers")); globalMultisamplingAction_->setStatusTip(tr("Enable Multisampling for all viewers"));
globalMultisamplingAction_->setText(tr("&Enable Multisampling")); globalMultisamplingAction_->setText(tr("Enable Multisampling"));
} }
uint perspectiveCount = 0; uint perspectiveCount = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment