From 18c97c17d3472937c4bb2f4f2ca77acb0c68a5ba Mon Sep 17 00:00:00 2001 From: martii Date: Sat, 21 Dec 2013 23:00:36 +0100 Subject: [PATCH] gui/scan_setup: use language specific decimal separator --- src/gui/scan_setup.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gui/scan_setup.cpp b/src/gui/scan_setup.cpp index 0b4f8a5f2..09c0ad3f4 100644 --- a/src/gui/scan_setup.cpp +++ b/src/gui/scan_setup.cpp @@ -50,6 +50,7 @@ #include #include #include +#include #include #include @@ -608,9 +609,7 @@ int CScanSetup::showScanMenuFrontendSetup() static std::string rotationSpeed2str(int i) { - char s[40]; - snprintf(s, sizeof(s), "%d.%d°/s", i / 10, i % 10); - return std::string(s); + return to_string(i/10) + g_Locale->getText(LOCALE_UNIT_DECIMAL) + to_string(i%10) + "°/s"; } int CScanSetup::showFrontendSetup(int number)