diff --git a/lib/util/language.php b/lib/util/language.php index c70adb8ea5..bfd777ecb1 100644 --- a/lib/util/language.php +++ b/lib/util/language.php @@ -44,6 +44,11 @@ foreach ($LC_CATEGORIES as $key => $name) { } } +// Emulate if not available. +if (!function_exists('gettext')) { + require_once('php-gettext/gettext.inc'); +} + if (!function_exists('dpgettext')) { /** * Context-aware dgettext wrapper; use when messages in different contexts