From 687497c82f153cae4afefb7cee6797f6b1bebc45 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Thu, 7 Jul 2022 17:56:50 +0200 Subject: [PATCH] Fix l10n handling on Debian 11 Fixes bug #1542 --- includes/lib/l10n.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/lib/l10n.php b/includes/lib/l10n.php index 4859946..c9abf74 100644 --- a/includes/lib/l10n.php +++ b/includes/lib/l10n.php @@ -302,9 +302,9 @@ class L10n { $locale = self::$locales[$translation_code]; // set up locale - if ( !putenv("LANG=$locale") ) { + if ( !putenv("LANGUAGE=$locale") ) { trigger_error("L10n::set_translation(): could not set the ". - "environment variable LANG to $locale", E_USER_WARNING); + "environment variable LANGUAGE to $locale", E_USER_WARNING); return false; } if ( !setlocale(LC_ALL, $locale) ) {