Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
ac633051
Commit
ac633051
authored
Mar 21, 2019
by
Gus Grubba
Browse files
Adding English. Duh...
parent
265ff199
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/QGCApplication.cc
View file @
ac633051
...
...
@@ -365,32 +365,35 @@ void QGCApplication::setLanguage()
{
QLocale
locale
=
QLocale
::
system
();
qDebug
()
<<
"System reported locale:"
<<
locale
<<
locale
.
name
();
//-- See App.SettinsGroup.json for index
int
langID
=
toolbox
()
->
settingsManager
()
->
appSettings
()
->
language
()
->
rawValue
().
toInt
();
//-- See App.SettinsGroup.json for index
if
(
langID
)
{
switch
(
langID
)
{
case
1
:
locale
=
QLocale
(
QLocale
::
Bulgarian
);
locale
=
QLocale
(
QLocale
::
English
);
break
;
case
2
:
locale
=
QLocale
(
QLocale
::
Germ
an
);
locale
=
QLocale
(
QLocale
::
Bulgari
an
);
break
;
case
3
:
locale
=
QLocale
(
QLocale
::
French
);
locale
=
QLocale
(
QLocale
::
German
);
break
;
case
4
:
locale
=
QLocale
(
QLocale
::
Italian
);
locale
=
QLocale
(
QLocale
::
French
);
break
;
case
5
:
locale
=
QLocale
(
QLocale
::
Kore
an
);
locale
=
QLocale
(
QLocale
::
Itali
an
);
break
;
case
6
:
locale
=
QLocale
(
QLocale
::
Russi
an
);
locale
=
QLocale
(
QLocale
::
Kore
an
);
break
;
case
7
:
locale
=
QLocale
(
QLocale
::
Turkish
);
locale
=
QLocale
(
QLocale
::
Russian
);
break
;
case
8
:
locale
=
QLocale
(
QLocale
::
Turkish
);
break
;
case
9
:
locale
=
QLocale
(
QLocale
::
Chinese
);
break
;
}
...
...
src/Settings/App.SettingsGroup.json
View file @
ac633051
...
...
@@ -232,8 +232,8 @@
"name"
:
"language"
,
"shortDescription"
:
"Language"
,
"type"
:
"uint32"
,
"enumStrings"
:
"System,български (Bulgarian),Deutsche (German),Français (French),Italiano (Italian),한국어 (Korean),Pусский (Russian),Türk (Turkish),中文 (Chinese)"
,
"enumValues"
:
"0,1,2,3,4,5,6,7,8"
,
"enumStrings"
:
"System,
English,
български (Bulgarian),Deutsche (German),Français (French),Italiano (Italian),한국어 (Korean),Pусский (Russian),Türk (Turkish),中文 (Chinese)"
,
"enumValues"
:
"0,1,2,3,4,5,6,7,8
,9
"
,
"defaultValue"
:
0
}
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment