2011/4/14 Maciej Jaros egil@wp.pl:
BTW are there any guidelines (or at least good examples) of i18n in JS? What I mean is - I need to use some (most) localized strings in JS and would like to use existing code (if possible) for pushing strings from PHP to JS.
[snip]
Oh, both extensions where written for 1.16, but I'm mostly using JS anyway so this probably shouldn't matter.
Use ResourceLoader, which handles i18n for you. ResourceLoader is new in 1.17 though, so code written with ResourceLoader will not work with 1.16 unless you go out of your way to make it dual-compatible.
See https://secure.wikimedia.org/wikipedia/mediawiki/wiki/ResourceLoader/Documen...
Roan Kattouw (Catrope)