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


Roan Kattouw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]




--- Comment #3 from Roan Kattouw <[email protected]>  2009-06-15 19:15:47 
UTC ---
I don't think it's desirable or necessary to port parser functions to JS. A
better solution IMO would be to use the list=allmessages API module to grab the
messages we need in the language we need. Magic word expansion could be added
to the allmessages module as an optional parameter, which would take care of
everything except the messages that rely on substitution being done before
parsing (like {{PLURAL:$1|foo|bar}}, which can't easily be done in JS because
some languages have more than two cases), which would be pretty much impossible
without hitting the server a lot.

> 2) We need to write some maintenance scripts so that we don't duplicate msg
> storage. ie we want to write the msg text once in the js file and have a 
> script
> that copies that to the MessagesEn.php (with big comment headers that identify
> these msgs are copied from the js and to modify them in the js instead of 
> here)
> 
I think keeping messages in JS is a very bad idea; messages should all be in
the messages file. We could then have a PHP script that generates JS containing
the messages and cache that aggressively both client-side and server-side.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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