Last modified: 2014-03-05 22:24:02 UTC
See bug 32906 comment 18 and following comments. I made some attempts in Gerrit change #33969.
Next step: move variant setting to ParserOption. Maybe have ParserOption accept a $context, then populate the variant setting from $lang->getPreferredVariant( $context ). Barrier: there's not always some context available (eg. when parsing messages. Don't convert text in this case? That's bug 34832.) or language available (it's tied to title, and title is usually unknown when ParserOption is constructed...
SPQRobin might be interested. Adding to CC.