Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
LabPlot
Commits
0617ab9e
Commit
0617ab9e
authored
Jul 04, 2020
by
Stefan Gerlach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[about] show system locale
parent
3f01893f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
src/kdefrontend/LabPlot.cpp
src/kdefrontend/LabPlot.cpp
+9
-0
No files found.
src/kdefrontend/LabPlot.cpp
View file @
0617ab9e
...
...
@@ -61,10 +61,19 @@ const QString getSystemInfo() {
#else
const
QString
buildType
(
i18n
(
"Debug build"
));
#endif
const
QLocale
locale
{
QLocale
::
system
()};
// TODO: show zeroDigit(), groupSeparator(), etc.
const
QString
localeInfo
{
QLatin1String
(
" ("
)
+
i18n
(
"Decimal point: "
)
+
'\''
+
QString
(
locale
.
decimalPoint
())
+
QLatin1String
(
"
\'
, "
)
+
i18n
(
"Exponential: "
)
+
'\''
+
QString
(
locale
.
exponential
())
+
QLatin1String
(
"
\'
)"
)};
return
buildType
+
'\n'
+
QString
(
"%1, %2"
).
arg
(
__DATE__
).
arg
(
__TIME__
)
+
'\n'
+
i18n
(
"System: "
)
+
QSysInfo
::
prettyProductName
()
+
'\n'
+
i18n
(
"Locale: "
)
+
QLocale
::
languageToString
(
locale
.
language
())
+
','
+
QLocale
::
countryToString
(
locale
.
country
())
+
localeInfo
+
'\n'
+
i18n
(
"Architecture: "
)
+
QSysInfo
::
buildAbi
()
+
'\n'
+
i18n
(
"Kernel: "
)
+
QSysInfo
::
kernelType
()
+
' '
+
QSysInfo
::
kernelVersion
()
+
'\n'
+
i18n
(
"C++ Compiler: "
)
+
QString
(
CXX_COMPILER
)
+
'\n'
...
...
Write
Preview
Markdown
is supported
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