Add support for Dutch language
This commit is contained in:
@@ -259,7 +259,7 @@ ENDIF( )
|
||||
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
|
||||
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} )
|
||||
|
||||
SET( LANGUAGES he pl pt ru de fr it sv cs fi)
|
||||
SET( LANGUAGES he pl pt ru de fr it sv cs fi nl)
|
||||
FOREACH( language ${LANGUAGES} )
|
||||
SET( companion_TS ${companion_TS} translations/companion_${language}.ts )
|
||||
ENDFOREACH( language )
|
||||
|
||||
@@ -1624,6 +1624,7 @@ void MainWindow::createActions()
|
||||
portugueseLangAct = addAct( langAlignGroup, tr("Portuguese"), tr("Use Portuguese in menus"), SLOT(setPTLanguage()));
|
||||
swedishLangAct = addAct( langAlignGroup, tr("Swedish"), tr("Use Swedish in menus"), SLOT(setSELanguage()));
|
||||
russianLangAct = addAct( langAlignGroup, tr("Russian"), tr("Use Russian in menus"), SLOT(setRULanguage()));
|
||||
dutchLangAct = addAct( langAlignGroup, tr("Dutch"), tr("Use Dutch in menus"), SLOT(setNLLanguage()));
|
||||
|
||||
aboutAct = addAct("information.png", tr("About..."), tr("Show the application's About box"), SLOT(about()));
|
||||
printAct = addAct("print.png", tr("Print..."), tr("Print current model"), SLOT(print()));
|
||||
@@ -1701,6 +1702,7 @@ void MainWindow::createMenus()
|
||||
languageMenu->addAction(portugueseLangAct);
|
||||
languageMenu->addAction(swedishLangAct);
|
||||
languageMenu->addAction(russianLangAct);
|
||||
languageMenu->addAction(dutchLangAct);
|
||||
|
||||
settingsMenu->addMenu(themeMenu);
|
||||
themeMenu->addAction(classicThemeAct);
|
||||
@@ -1950,6 +1952,8 @@ void MainWindow::updateLanguageActions()
|
||||
russianLangAct->setChecked(true);
|
||||
else if (langId=="sv_SE")
|
||||
swedishLangAct->setChecked(true);
|
||||
else if (langId=="nl_NL")
|
||||
dutchLangAct->setChecked(true);
|
||||
}
|
||||
|
||||
void MainWindow::updateIconThemeActions()
|
||||
|
||||
@@ -96,6 +96,7 @@ private slots:
|
||||
void setPTLanguage() {setLanguage("pt_PT");};
|
||||
void setRULanguage() {setLanguage("ru_RU");};
|
||||
void setSELanguage() {setLanguage("sv_SE");};
|
||||
void setNLLanguage() {setLanguage("nl_NL");};
|
||||
|
||||
void setTheme(int index);
|
||||
void setClassicTheme() {setTheme(0);};
|
||||
@@ -275,6 +276,7 @@ private:
|
||||
QAction *portugueseLangAct;
|
||||
QAction *swedishLangAct;
|
||||
QAction *russianLangAct;
|
||||
QAction *dutchLangAct;
|
||||
QAction *openDocURLAct;
|
||||
QString fwToUpdate;
|
||||
};
|
||||
|
||||
@@ -10,5 +10,6 @@
|
||||
<file>companion_pt.qm</file>
|
||||
<file>companion_sv.qm</file>
|
||||
<file>companion_ru.qm</file>
|
||||
<file>companion_nl.qm</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user