summaryrefslogtreecommitdiff
path: root/zen/i18n.h
diff options
context:
space:
mode:
Diffstat (limited to 'zen/i18n.h')
-rw-r--r--zen/i18n.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/zen/i18n.h b/zen/i18n.h
index 66e5fa53..b7d10d3c 100644
--- a/zen/i18n.h
+++ b/zen/i18n.h
@@ -68,6 +68,7 @@ std::wstring translate(const std::wstring& text)
inline
std::wstring translate(const std::wstring& singular, const std::wstring& plural, int n)
{
+ if (n < 0) n = -n;
return getTranslator() ? getTranslator()->translate(singular, plural, n) : n == 1 ? singular : plural;
}
bgstack15