Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Main Repositories
otb
Commits
507cee3c
Commit
507cee3c
authored
Sep 07, 2016
by
Stéphane Albert
Browse files
ENH: Traced QLocal::system().language() and .country() to console.
parent
1d2b87fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/Visualization/MonteverdiCore/src/mvdI18nCoreApplication.cxx
View file @
507cee3c
...
...
@@ -584,6 +584,15 @@ I18nCoreApplication
//
// 1. default UI language is english (no translation).
QLocale
sys_lc
(
QLocale
::
system
()
);
// Trace system locale.
qWarning
()
<<
"Language:"
<<
QLocale
::
languageToString
(
sys_lc
.
language
()
);
qWarning
()
<<
"Country:"
<<
QLocale
::
countryToString
(
sys_lc
.
country
()
);
// Check system locale.
if
(
sys_lc
.
language
()
==
QLocale
::
C
||
(
sys_lc
.
language
()
==
QLocale
::
English
&&
sys_lc
.
country
()
==
QLocale
::
UnitedStates
)
)
...
...
Sébastien Dinot
@sdinot
mentioned in issue
#1269 (closed)
·
Jan 31, 2018
mentioned in issue
#1269 (closed)
mentioned in issue #1269
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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