Last modified: 2009-12-31 03:02:15 UTC
In LanguageConverter.php in getPreferredVariant() function occured hardcoded 'zh-' reference (string 117): $zh = strstr($header, 'zh-'); This is preventing use the code for other languages but zh It should look like: $zh = strstr($header, $mMainLanguageCode.'-'); where $mMainLanguageCode normally give LanguageXx from call like: $this->mConverter = new KkConverter($this, 'kk', $variants, $variantfallbacks ); 'kk' may changed to 'sr', 'zh' etc
Above code sometimes does not work. Need trick showed bellow: $zh = strstr($header, $pv.'-');
Created attachment 2477 [details] Patch for LanguageConverter.php
Fixed in r17461