Patch by "merl"
Tested with pt-br, seems to work fine, listing pt and en for the fallback languages
* Matthew Britton
* mati
* Max Sikström
+* merl
* Michael Dale
* Michael De La Rue
* Michael M.
* siprop=interwikimap and siprop=languages can use silanguagecode to have
a best effort language name translation. Use CLDR extension for best result.
* (bug 30230) action=expandtemplates should not silently override invalid title inputs
+* (bug 18634) Create API to fetch MediaWiki's language fallback tree structure
=== Languages updated in 1.19 ===
}
$data['rights'] = $GLOBALS['wgRightsText'];
$data['lang'] = $GLOBALS['wgLanguageCode'];
+
+ $fallbackLang = $wgContLang->getFallbackLanguageCode();
+ $fallbackLangArray = array();
+ while( $fallbackLang ) {
+ $fallbackLangArray[] = array( 'code' => $fallbackLang );
+ $fallbackLang = Language::getFallbackFor( $fallbackLang );
+ }
+ $data['fallback'] = $fallbackLangArray;
+ $this->getResult()->setIndexedTagName( $data['fallback'], 'lang' );
+
if ( $wgContLang->isRTL() ) {
$data['rtl'] = '';
}