From 474dd9af29898ec45e88ba830a73b85c27a5aff1 Mon Sep 17 00:00:00 2001 From: Christian Knof Date: Fri, 16 Oct 2026 17:10:00 +0200 Subject: [PATCH] Add library gettext/gettext The Language component maintains the translations of its modules in gettext files (feature request "PO files"): it reads and writes .po files, merges local changes and compiles the shipped files into .mo catalogs that native gettext serves. gettext/gettext provides this parsing, generation and compiling. - Needed: every language module of ILIAS is shipped as .po/.pot files. - Not easily implemented in ILIAS: the PO/MO formats (escaping, plural forms, contexts, comments, flags, binary MO tables). - Maintained and used beyond ILIAS: the standard PHP library for gettext files, already installed as a dependency of simplesamlphp. - Actively maintained, current version v5.7.3, pinned to major 5. composer.lock: content-hash only, the package is already locked at v5.7.3. --- composer.json | 1 + composer.lock | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5197e1b5ec6f..ca96e445b81b 100755 --- a/composer.json +++ b/composer.json @@ -56,6 +56,7 @@ "ezyang/htmlpurifier": "^4.19", "filp/whoops": "^2.18", "firebase/php-jwt": "^7.0.5", + "gettext/gettext": "^5.7.3", "guzzlehttp/psr7": "^2.7.0", "ifsnop/mysqldump-php": "^2.11", "james-heinrich/getid3": "^1.9.24", diff --git a/composer.lock b/composer.lock index 0e3d6f57af31..9f49c6e352c6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2b858b71ec8bdfbcbf1a4de417423914", + "content-hash": "bc0b445c0c4c376ec3963b6b54978c83", "packages": [ { "name": "bacon/bacon-qr-code",