5 if ( !isset( $normalized[
'language'] ) ) {
8 $language = $normalized[
'language'];
9 $adapterLanguages = $adapter->getAvailableLanguages();
10 if ( !in_array( $language, $adapterLanguages ) ) {
11 $fallbacks = WmfFramework::getLanguageFallbacks( $language );
13 if ( in_array(
$fallback, $adapterLanguages ) ) {
20 if ( !in_array( $language, $adapterLanguages ) ) {
24 $stagedData[
'language'] = $language;