https://bugzilla.wikimedia.org/show_bug.cgi?id=56685

--- Comment #5 from Daniel Kinzler <[email protected]> ---
Note that Ie0ea0d5b921 and Ia6701a20 only cover formatting, not parsing.

For parsing, a bit of refactoring and infrastructure is needed: we have to 1)
allow builder callbacks instead of class names in ValueParserFactory and 2)
inject an appropriate builder for DecimalParser and QuantityParser into
wgValueParsers. Then we can inject a DecimalParser into the QuantityParser, and
a Unlocalizer into the DecimalParser. 

Only then can we register an appropriate builder wgValueParsers when Wikibase
is initialized. 

Ideally, the builder(s) for parsers would be constructed and managed in a same
way as the builders for formatters. That would however not work with
ApiParseValue, which would then need to also be moved into mediawiki... or all
the Parsing/Formatting logic could be factored out into a separate module.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to