mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Spanish translations by Jose Carlos Lorenzo Garcia, thanks!
This commit is contained in:
parent
56d12d88c1
commit
bfcb7dfeac
5 changed files with 10939 additions and 1 deletions
|
@ -253,7 +253,7 @@ ENDIF( )
|
|||
INCLUDE_DIRECTORIES( ${CMAKE_BINARY_DIR} )
|
||||
INCLUDE_DIRECTORIES( ${CMAKE_SOURCE_DIR} )
|
||||
|
||||
SET( LANGUAGES he pl pt ru de fr it sv cs fi nl)
|
||||
SET( LANGUAGES he pl pt ru de fr es it sv cs fi nl)
|
||||
FOREACH( language ${LANGUAGES} )
|
||||
SET( companion_TS ${companion_TS} translations/companion_${language}.ts )
|
||||
ENDFOREACH( language )
|
||||
|
|
|
@ -1031,6 +1031,7 @@ void MainWindow::createActions()
|
|||
// hebrewLangAct = addAct( langAlignGroup, tr("Hebrew"), tr("Use Hebrew in menus"), SLOT(setHELanguage()));
|
||||
polishLangAct = addAct( langAlignGroup, tr("Polish"), tr("Use Polish in menus"), SLOT(setPLLanguage()));
|
||||
// portugueseLangAct = addAct( langAlignGroup, tr("Portuguese"), tr("Use Portuguese in menus"), SLOT(setPTLanguage()));
|
||||
spanishLangAct = addAct( langAlignGroup, tr("Spanish"), tr("Use Spanish in menus"), SLOT(setESLanguage()));
|
||||
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()));
|
||||
|
@ -1110,6 +1111,7 @@ void MainWindow::createMenus()
|
|||
languageMenu->addAction(italianLangAct);
|
||||
languageMenu->addAction(polishLangAct);
|
||||
// languageMenu->addAction(portugueseLangAct);
|
||||
languageMenu->addAction(spanishLangAct);
|
||||
languageMenu->addAction(swedishLangAct);
|
||||
// languageMenu->addAction(russianLangAct);
|
||||
// languageMenu->addAction(dutchLangAct);
|
||||
|
@ -1361,6 +1363,8 @@ void MainWindow::updateLanguageActions()
|
|||
portugueseLangAct->setChecked(true);
|
||||
else if (langId=="ru_RU")
|
||||
russianLangAct->setChecked(true);
|
||||
else if (langId=="es_ES")
|
||||
spanishLangAct->setChecked(true);
|
||||
else if (langId=="sv_SE")
|
||||
swedishLangAct->setChecked(true);
|
||||
else if (langId=="nl_NL")
|
||||
|
|
|
@ -95,6 +95,7 @@ class MainWindow : public QMainWindow
|
|||
void setITLanguage() {setLanguage("it_IT");};
|
||||
void setHELanguage() {setLanguage("he_IL");};
|
||||
void setPLLanguage() {setLanguage("pl_PL");};
|
||||
void setESLanguage() {setLanguage("es_ES");};
|
||||
void setPTLanguage() {setLanguage("pt_PT");};
|
||||
void setRULanguage() {setLanguage("ru_RU");};
|
||||
void setSELanguage() {setLanguage("sv_SE");};
|
||||
|
@ -270,6 +271,7 @@ class MainWindow : public QMainWindow
|
|||
QAction *italianLangAct;
|
||||
QAction *hebrewLangAct;
|
||||
QAction *polishLangAct;
|
||||
QAction *spanishLangAct;
|
||||
QAction *portugueseLangAct;
|
||||
QAction *swedishLangAct;
|
||||
QAction *russianLangAct;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
<qresource prefix="/">
|
||||
<file>companion_cs.qm</file>
|
||||
<file>companion_de.qm</file>
|
||||
<file>companion_es.qm</file>
|
||||
<file>companion_fi.qm</file>
|
||||
<file>companion_fr.qm</file>
|
||||
<file>companion_he.qm</file>
|
||||
|
|
10931
companion/src/translations/companion_es.ts
Executable file
10931
companion/src/translations/companion_es.ts
Executable file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue