aboutsummaryrefslogtreecommitdiff
path: root/includes/php-gettext/gettext.inc
diff options
context:
space:
mode:
Diffstat (limited to 'includes/php-gettext/gettext.inc')
-rw-r--r--includes/php-gettext/gettext.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/php-gettext/gettext.inc b/includes/php-gettext/gettext.inc
index eb94b25..a67811f 100644
--- a/includes/php-gettext/gettext.inc
+++ b/includes/php-gettext/gettext.inc
@@ -128,7 +128,7 @@ function _setlocale($category, $locale) {
} else {
$ret = 0;
if (function_exists('setlocale')) // I don't know if this ever happens ;)
- $ret = setlocale($category, $locale);
+ $ret = @setlocale($category, $locale); //the @ hides warning messages on few installations
if (($ret and $locale == '') or ($ret == $locale)) {
$EMULATEGETTEXT = 0;
$CURRENTLOCALE = $ret;
@@ -315,4 +315,4 @@ if (!function_exists('gettext')) {
}
}
-?> \ No newline at end of file
+?>