Index: trunk/extensions/MobileFrontend/javascripts/application.js |
— | — | @@ -92,6 +92,9 @@ |
93 | 93 | init(); |
94 | 94 | return { |
95 | 95 | init: init, |
| 96 | + message: function(name) { |
| 97 | + return locale[ name ]; |
| 98 | + }, |
96 | 99 | utils: utilities |
97 | 100 | }; |
98 | 101 | |
Index: trunk/extensions/MobileFrontend/templates/ApplicationTemplate.php |
— | — | @@ -61,8 +61,10 @@ |
62 | 62 | //<![CDATA[ |
63 | 63 | var title = "{$this->data['htmlTitle']}"; |
64 | 64 | var scriptPath = "{$this->data['wgScriptPath']}"; |
65 | | - var showText = "{$buttonShowText}"; |
66 | | - var hideText = "{$buttonHideText}"; |
| 65 | + var locale = { |
| 66 | + "expand-section": "{$buttonShowText}", |
| 67 | + "collapse-section": "{$buttonHideText}" |
| 68 | + }; |
67 | 69 | //]]> |
68 | 70 | </script> |
69 | 71 | </head> |