Roan Kattouw (2011-04-14 13:30):
2011/4/14 Maciej Jaros<egil(a)wp.pl>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
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.
Sadly not an option for me. It must work on 1.16 as I cannot upgrade
office wiki to 1.17 (some extensions like e.g. WYSWIG don't work there).
Is there some more or less standard way to do it for 1.16?
BTW [[mw:Localisation]] is missing that info.