From 5b18ff7965529ecaa4bdd2eb2ab3796b30da771c Mon Sep 17 00:00:00 2001 From: Paul Richards Date: Mon, 30 Mar 2015 21:42:29 +0100 Subject: [PATCH] Fix PHP warning on windows due to LC_MESSAGES not defined. fixes #8912 --- AUTHORS | 1 + library/Icinga/Util/Translator.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/AUTHORS b/AUTHORS index 8a0bc91d0..f56d6e24d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -18,6 +18,7 @@ Marius Hein Markus Frosch Matthias Jentsch Michael Friedrich +Paul Richards Rene Moser Susanne Vestner-Ludwig Sylph Lin diff --git a/library/Icinga/Util/Translator.php b/library/Icinga/Util/Translator.php index 67825b63b..a4524cee7 100644 --- a/library/Icinga/Util/Translator.php +++ b/library/Icinga/Util/Translator.php @@ -5,6 +5,10 @@ namespace Icinga\Util; use Icinga\Exception\IcingaException; +if (!defined('LC_MESSAGES')) { + define('LC_MESSAGES', 6); +} + /** * Helper class to ease internationalization when using gettext */