On 24 April 2013 06:28, Amir E. Aharoni <amir.aharoni(a)mail.huji.ac.il> wrote:
2013/4/24 Paul Selitskas
<p.selitskas(a)gmail.com>om>:
I've already tried both using page properties
to store page content
language and modifying ContentHandler::getPageLanguage()[1]. In both
cases parser worked in a different language scope and didn't process
magic words written in a default wiki language (e.g. Russian
[[Категория:Test]] wouldn't work on a German page; English had to be
used in both pages). It's OK for a wiki with the English language as
default, but if such multi-lingual wiki worked for years with German
on board, and then you implement the above said, all pages in other
languages wouldn't be parsed properly.
If I understand correctly, the Visual Editor should gradually
eliminate the need for users to use magic words directly, as well as
for stuff like [[Category:]] and #REDIRECT. It should all be done
using a GUI eventually. So the need for localized magic words should
disappear, too.
This is correct; a "Page Settings" (meta-data) dialog is coming soon
to a VisualEditor near you, initially with just Categories, but
longer-term all behavioural magic words, language links and any other
meta-data people can think of will be there. This will mean that users
will not be surprised to find a mysterious "__NOGALLERY__" and wonder
what it does; there will be a place to describe what it does in their
user-display language. The need for multi-lingual magic words in the
same context will thus fade (though as we're planning for side-by-side
wikitext and VisualEditor editing, there may still be some demand).
Of course, this only solves the problem for Wikimedia and other people
happy to run a Parsoid service alongside MediaWiki. We have a general
plan to build out a "no wikitext ever, just store HTML+RDFa" MediaWiki
option, so only "legacy" sites would need Parsoid (and if you were
willing to convert your storage from wikitext to HTML, not even that),
but this is a lower priority than getting everything working. :-)
J.
--
James D. Forrester
Product Manager, VisualEditor
Wikimedia Foundation, Inc.
jforrester(a)wikimedia.org | @jdforrester