Last modified: 2013-02-26 21:03:15 UTC
A saga: Parsoid is trying to handle language variant conversion per bug 41716. We figured we'd need to make sure conversion was enabled on the wiki, so we added an API return value for that in the siprop=general output, which is Gerrit change #50036. The pending question is whether the list of variants should be returned if the wiki disables variant conversion. As I understand variants, and as bug 33224 seems to talk about them, they don't necessarily need to be used for variant conversion, but could be used for other purposes. I was hoping the i18n team could either make a decision on this front or at least impart some wisdom. Thanks much!
There's very little knowledge around on language variants with automatic script conversion, even within the Language Engineering team. I've added Liangent to CC. Hope he can shed some light on this.
Gerrit change #50036 doesn't look like a good solution to me. Parsoid works on pages, and some pages may always have language conversion disabled or enabled (like [[zh:MediaWiki:Conversiontable/zh-cn]]). You may want to expose $wikiPage->makeParserOptions()->getDisableContentConversion() and $wikiPage->makeParserOptions()->getDisableTitleConversion() in some page related data.
BTW. A list of available variants is useful for conversion. The output of -{zh-cn:A;zh-tw:B;}- changes when validity of variant codes zh-cn and zh-tw change.