Skip to content

Commit 3b9f927

Browse files
committed
i18n: revert remaining bits of the st update (#2311)
1 parent 4725a01 commit 3b9f927

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

config/config.php.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ $config = [
829829
'language.available' => [
830830
'en', 'no', 'nn', 'se', 'da', 'de', 'sv', 'fi', 'es', 'ca', 'fr', 'it', 'nl', 'lb',
831831
'cs', 'sk', 'sl', 'lt', 'hr', 'hu', 'pl', 'pt', 'pt_BR', 'tr', 'ja', 'zh', 'zh_TW',
832-
'ru', 'et', 'he', 'id', 'sr', 'lv', 'ro', 'eu', 'el', 'af', 'zu', 'xh', 'en_LS',
832+
'ru', 'et', 'he', 'id', 'sr', 'lv', 'ro', 'eu', 'el', 'af', 'zu', 'xh', 'st'
833833
],
834834
'language.rtl' => ['ar', 'dv', 'fa', 'ur', 'he'],
835835
'language.default' => 'en',

src/SimpleSAML/Locale/Language.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,13 @@ private function getInstalledLanguages(): array
127127
Logger::warning(
128128
"Deprecated locales found in `language.available`. "
129129
. "Please replace 'pt-br' with 'pt_BR',"
130-
. " and 'st' with 'en_LS',"
131130
. " and 'zh-tw' with 'zh_TW'.",
132131
);
133132

134133
if (($i = array_search('pt-br', $configuredAvailableLanguages)) !== false) {
135134
$configuredAvailableLanguages[$i] = 'pt_BR';
136135
}
137136

138-
if (($i = array_search('st', $configuredAvailableLanguages)) !== false) {
139-
$configuredAvailableLanguages[$i] = 'en_LS';
140-
}
141-
142137
if (($i = array_search('zh-tw', $configuredAvailableLanguages)) !== false) {
143138
$configuredAvailableLanguages[$i] = 'zh_TW';
144139
}

0 commit comments

Comments
 (0)