summaryrefslogtreecommitdiff
path: root/zen/i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/i18n.h')
-rw-r--r--zen/i18n.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/i18n.h b/zen/i18n.h
index 5aedc41c..3790e528 100644
--- a/zen/i18n.h
+++ b/zen/i18n.h
@@ -11,7 +11,7 @@
#include <memory>
#include <cstdint>
#include "string_tools.h"
-
+#include "format_unit.h"
//minimal layer enabling text translation - without platform/library dependencies!
#ifdef __WXMSW__ //we have wxWidgets
@@ -75,7 +75,7 @@ std::wstring translate(const std::wstring& singular, const std::wstring& plural,
return translation;
}
else
- return replaceCpy(std::abs(n) == 1 ? singular : plural, L"%x", zen::numberTo<std::wstring>(n));
+ return replaceCpy(std::abs(n) == 1 ? singular : plural, L"%x", toGuiString(n));
}
template <class T> inline
bgstack15