From 7530e2f80e3ace08ae6b913bd05cbf5595e4a97e Mon Sep 17 00:00:00 2001 From: Leonardo Lara Rodrigues Date: Sun, 18 Jan 2026 15:15:46 -0300 Subject: [PATCH] Change language code to lowercase for translation file For languages like 'pt_BR', the filename is pt_br.ini as well as the repo is /pt_br. The pt_BR pages' headers and footers are not being translated. --- include/shared-manual.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/shared-manual.inc b/include/shared-manual.inc index ff2eae90b2..0a7c6e8ac7 100644 --- a/include/shared-manual.inc +++ b/include/shared-manual.inc @@ -292,7 +292,7 @@ function autogen(string $text, string $lang) { throw new \InvalidArgumentException("Cannot autogenerate text for '$text'"); } - $translationFile = __DIR__ . \DIRECTORY_SEPARATOR . "ui_translation" . \DIRECTORY_SEPARATOR . $lang . ".ini"; + $translationFile = __DIR__ . \DIRECTORY_SEPARATOR . "ui_translation" . \DIRECTORY_SEPARATOR . strtolower($lang) . ".ini"; if (!\file_exists($translationFile)) { if ($lang !== "en") {