Rewrite ULS aliases in the territories
This commit is contained in:
@@ -3879,7 +3879,7 @@
|
|||||||
"it",
|
"it",
|
||||||
"de",
|
"de",
|
||||||
"pdt",
|
"pdt",
|
||||||
"cr-cans",
|
"cr",
|
||||||
"yi"
|
"yi"
|
||||||
],
|
],
|
||||||
"CC": [
|
"CC": [
|
||||||
@@ -4098,7 +4098,7 @@
|
|||||||
"FJ": [
|
"FJ": [
|
||||||
"en",
|
"en",
|
||||||
"hi",
|
"hi",
|
||||||
"hif-latn",
|
"hif",
|
||||||
"fj",
|
"fj",
|
||||||
"rtm"
|
"rtm"
|
||||||
],
|
],
|
||||||
@@ -4277,7 +4277,7 @@
|
|||||||
"ro",
|
"ro",
|
||||||
"yi",
|
"yi",
|
||||||
"pl",
|
"pl",
|
||||||
"lad",
|
"lad-latn",
|
||||||
"hu",
|
"hu",
|
||||||
"am",
|
"am",
|
||||||
"ti",
|
"ti",
|
||||||
@@ -4307,7 +4307,7 @@
|
|||||||
"ne",
|
"ne",
|
||||||
"sat",
|
"sat",
|
||||||
"ks-arab",
|
"ks-arab",
|
||||||
"gom",
|
"gom-deva",
|
||||||
"tcy",
|
"tcy",
|
||||||
"brx",
|
"brx",
|
||||||
"mni",
|
"mni",
|
||||||
@@ -4711,7 +4711,7 @@
|
|||||||
],
|
],
|
||||||
"PH": [
|
"PH": [
|
||||||
"en",
|
"en",
|
||||||
"fil",
|
"tl",
|
||||||
"es",
|
"es",
|
||||||
"ceb",
|
"ceb",
|
||||||
"ilo",
|
"ilo",
|
||||||
@@ -4987,7 +4987,7 @@
|
|||||||
"ku-latn"
|
"ku-latn"
|
||||||
],
|
],
|
||||||
"TN": [
|
"TN": [
|
||||||
"aeb",
|
"aeb-arab",
|
||||||
"ar",
|
"ar",
|
||||||
"fr"
|
"fr"
|
||||||
],
|
],
|
||||||
@@ -5058,7 +5058,7 @@
|
|||||||
"zh-hant",
|
"zh-hant",
|
||||||
"fr",
|
"fr",
|
||||||
"de",
|
"de",
|
||||||
"fil",
|
"tl",
|
||||||
"it",
|
"it",
|
||||||
"vi",
|
"vi",
|
||||||
"ko",
|
"ko",
|
||||||
|
|||||||
@@ -76,6 +76,13 @@ foreach ( $parsedLangdb['territories'] as $territoryCode => $languages ) {
|
|||||||
unset( $parsedLangdb['territories'][$territoryCode][$index] );
|
unset( $parsedLangdb['territories'][$territoryCode][$index] );
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$data = $parsedLangdb['languages'][$language];
|
||||||
|
if ( count( $data ) === 1 ) {
|
||||||
|
echo "Redirect for language $language to {$data[0]} territory $territoryCode\n";
|
||||||
|
$parsedLangdb['territories'][$territoryCode][$index] = $data[0];
|
||||||
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clean-up to save space
|
// Clean-up to save space
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user