From 3aee13cd9b8765d1f4d69b9016c3dff0650aaab2 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 3 Feb 2014 11:05:28 +0100 Subject: [PATCH] Fix that en_US is used as default locale Using this locale is not an issue, but it might not be available in a user's environment --- library/Icinga/Util/Translator.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/Icinga/Util/Translator.php b/library/Icinga/Util/Translator.php index 7c2264241..0e0936f8d 100644 --- a/library/Icinga/Util/Translator.php +++ b/library/Icinga/Util/Translator.php @@ -43,8 +43,11 @@ class Translator /** * The locale code that is used in the project + * + * We are actually using en_US. "C" refers to "whatever is hardcoded" + * and is used because en_US might not be available though. */ - const DEFAULT_LOCALE = 'en_US'; + const DEFAULT_LOCALE = 'C'; /** * Known gettext domains and directories