add dir='ltr' to non-localized debug toolbar stuff
authoraude <aude.wiki@gmail.com>
Mon, 17 Sep 2012 15:14:09 +0000 (15:14 +0000)
committeramire80 <amir.aharoni@mail.huji.ac.il>
Mon, 17 Sep 2012 17:15:36 +0000 (10:15 -0700)
It might be nice to localize this stuff; until then,
it is rather annoying to look at broken parentheses
when using MediaWiki and the toolbar in a RTL language.

Removed text-align: left, so it won't be flipped.

Added an explicit label for Peak memory - it's clearer and it helps
with LTR layout (the units are localized and confuse the display).

Added lang="en" dir="ltr" to the main containter, which is
the right thing until it's properly localized.

Change-Id: I1d0ef6d12eefac0ff28277e4cc2dbc62acd9eee2

resources/mediawiki/mediawiki.debug.css
resources/mediawiki/mediawiki.debug.js

index 149e1bf..513cb84 100644 (file)
@@ -1,6 +1,5 @@
 .mw-debug {
        width: 100%;
-       text-align: left;
        background-color: #eee;
        border-top: 1px solid #aaa;
 }
index 1ad1a62..88af3c6 100644 (file)
@@ -96,7 +96,7 @@
                buildHtml: function () {
                        var $container, $bits, panes, id, gitInfo;
 
-                       $container = $( '<div id="mw-debug-toolbar" class="mw-debug"></div>' );
+                       $container = $( '<div id="mw-debug-toolbar" class="mw-debug" lang="en" dir="ltr"></div>' );
 
                        $bits = $( '<div class="mw-debug-bits"></div>' );
 
                                .text( 'Time: ' + this.data.time.toFixed( 5 ) );
 
                        bitDiv( 'memory' )
-                               .text( 'Memory: ' + this.data.memory )
-                               .append( $( '<span title="Peak usage"></span>' ).text( ' (' + this.data.memoryPeak + ')' ) );
-                               
+                               .text( 'Memory: ' + this.data.memory + ' (Peak: ' + this.data.memoryPeak + ')' );
 
                        $bits.appendTo( $container );