From eacbd81dfaabfedc2bbb36c8ab090dd97e253340 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Sun, 21 Feb 2021 15:38:46 +0000 Subject: [PATCH] [i18n] Re-add gettext emulation Removed by mistake with 9cc7df51d6#L50 --- lib/util/language.php | 5 +++++ 1 file changed, 5 insertions(+) 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