Skip to content

Commit d965e37

Browse files
authored
Change language code to lowercase for translation file (#1775)
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.
1 parent fa24520 commit d965e37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/shared-manual.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ function autogen(string $text, string $lang) {
292292
throw new \InvalidArgumentException("Cannot autogenerate text for '$text'");
293293
}
294294

295-
$translationFile = __DIR__ . \DIRECTORY_SEPARATOR . "ui_translation" . \DIRECTORY_SEPARATOR . $lang . ".ini";
295+
$translationFile = __DIR__ . \DIRECTORY_SEPARATOR . "ui_translation" . \DIRECTORY_SEPARATOR . strtolower($lang) . ".ini";
296296

297297
if (!\file_exists($translationFile)) {
298298
if ($lang !== "en") {

0 commit comments

Comments
 (0)