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

--- Comment #1 from Daniel Friesen <mediawiki-b...@nadir-seen-fire.com> 
2011-09-20 15:22:19 UTC ---
I've always wished that our i18n system would include metadata on the type of
message for each message. eg: 'edit' would be marked as text while 'edittools'
would be marked as wikitext. And 'sidebar' would be marked as content-language.

Then we'd only have ~2 commonly used message functions/methods. One for things
like tag attributes that would force text and throw an error if you tried to
force a wikitext message as text. And another that would return blocks of html.
Knowing when something is wikitext and should be parsed.

If we had started with something like that, it would be fairly easy to force
messages to not use full WikiText parsing. We could have an alternate
lightweight parser for these things like links that we do want parsed... hell,
we could completely ditch WikiText which isn't really necessary for i18n and
have a special parser for a special syntax we use for most non-plaintext i18n
messages that is really quick to parse, has much less worthless syntax, and is
less forgiving of mistakes (making it more efficient).

Naturally it would still be possible to mark some messages as needing WikiText.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to