[Scummvm-git-logs] scummvm-web master -> 9d75228aaa4d6b494e79dda22a66bb0757b330b7
Mataniko
mataniko at gmail.com
Mon Sep 28 03:41:42 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
9d75228aaa WEB: Fix language being wrongly set
Commit: 9d75228aaa4d6b494e79dda22a66bb0757b330b7
https://github.com/scummvm/scummvm-web/commit/9d75228aaa4d6b494e79dda22a66bb0757b330b7
Author: Mataniko (mataniko at gmail.com)
Date: 2020-09-27T23:41:27-04:00
Commit Message:
WEB: Fix language being wrongly set
Changed paths:
public_html/index.php
diff --git a/public_html/index.php b/public_html/index.php
index 46d51635..2e9fd6df 100644
--- a/public_html/index.php
+++ b/public_html/index.php
@@ -21,11 +21,11 @@ require_once __DIR__ . '/../include/Constants.php';
global $lang, $available_languages;
$languages = array_slice(scandir(DIR_LANG),2);
$available_languages = [];
-foreach ($languages as $lang) {
- if (\in_array($lang, ['pt_PT', 'pt_BR'])) {
- $available_languages[$lang] = \locale_get_display_name($lang, $lang);
+foreach ($languages as $l) {
+ if (\in_array($l, ['pt_PT', 'pt_BR'])) {
+ $available_languages[$l] = \locale_get_display_name($l, $l);
} else {
- $available_languages[$lang] = \locale_get_display_language($lang, $lang);
+ $available_languages[$l] = \locale_get_display_language($l, $l);
}
}
More information about the Scummvm-git-logs
mailing list