Re: [MediaWiki-l] Conditional Resource Module Loading

2016-06-10 Thread Tom
Thanks Daniel, under public function initPage, although I will have to do the same for rtl CSS under setupSkinUserCss for CSS modules. Unfortunately Janus isn't perfect for flipping but I still have a little bit more investigation work to do to see if it's just a few things that need tweaking.

Re: [MediaWiki-l] Conditional Resource Module Loading

2016-06-09 Thread Daniel Friesen
First note, don't use $wgLang; use getLanguage on the closest context you have (depends on where your code is). Secondly, why do you have separate scripts for rtl/ltr? Writing two scripts that do the same thing sounds really weird when JS is itself a programming language. You can get

[MediaWiki-l] Conditional Resource Module Loading

2016-06-09 Thread Tom
I would be grateful for some direction or an idea of where to look. I feel like I'm going in a circle with the resource module docs. What I need to do is load a js module based on language direction in a skin. Ltr load a ltr.js, rtl direction load a rtl.js instead. Here is what I came up with,