Index: trunk/extensions/MobileFrontend/javascripts/toggle.js |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | function createButton( visible ) { |
25 | 25 | var btn, label; |
26 | 26 | btn = document.createElement( 'button' ); |
27 | | - label = document.createTextNode( visible ? showText : hideText ); |
| 27 | + label = document.createTextNode( MobileFrontend.message( visible ? 'expand-section' : 'collapse-section' ) ); |
28 | 28 | btn.className = visible ? 'show' : 'hide'; |
29 | 29 | btn.appendChild( label ); |
30 | 30 | btn.style.display = visible ? 'inline-block' : 'none'; |