r88503 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88502‎ | r88503 | r88504 >
Date:00:02, 21 May 2011
Author:preilly
Status:ok
Tags:
Comment:
switch layouts to using translations
Modified paths:
  • /trunk/extensions/PatchOutputMobile/PatchOutputMobile.php (modified) (history)
  • /trunk/extensions/PatchOutputMobile/views/layout/_footmenu_default.html.php (modified) (history)
  • /trunk/extensions/PatchOutputMobile/views/layout/_search_webkit.html.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PatchOutputMobile/views/layout/_search_webkit.html.php
@@ -15,8 +15,8 @@
1616 </form>
1717 </div>
1818 <div class='nav' id='nav'>
19 - <form method="get" action="/"><button type="submit" id="homeButton">Home</button></form>
20 - <form method="get" action="/wiki/::Random"><button type="submit" id="randomButton">Random</button></form>
 19+ <form method="get" action="/"><button type="submit" id="homeButton">{$home_button}</button></form>
 20+ <form method="get" action="/wiki/::Random"><button type="submit" id="randomButton">{$random_button}</button></form>
2121 </div>
2222 </div>
2323 EOD;
Index: trunk/extensions/PatchOutputMobile/views/layout/_footmenu_default.html.php
@@ -4,13 +4,13 @@
55 <div id='footer'>
66 <div class='nav' id='footmenu'>
77 <div class='mwm-notice'>
8 - <a href="http://en.wikipedia.org/w/mobileRedirect.php?to=">View this page on regular Wikipedia</a>
 8+ <a href="http://en.wikipedia.org/w/mobileRedirect.php?to=">{$regular_wikipedia}</a>
99 <div id="perm">
10 - <a href="https://www.mediawiki.org/disable/?">Permanently disable mobile site</a>
 10+ <a href="https://www.mediawiki.org/disable/?">{$perm_stop_redirect}</a>
1111 </div>
1212 </div>
1313 </div>
14 - <div id='copyright'>Text is available under the <a href='http://en.wikipedia.org/wiki/Wikipedia:Text_of_Creative_Commons_Attribution-ShareAlike_3.0_Unported_License'>Creative Commons Attribution/Share-Alike License</a>; additional terms may apply. See <a href='http://wikimediafoundation.org/wiki/Terms_of_Use'>Terms of Use</a> for details. Wikipedia is a registered trademark of the <a href='http://www.wikimediafoundation.org/'>Wikimedia Foundation, Inc.</a>, a non-profit organization.</div>
 14+ <div id='copyright'>{$copyright}</div>
1515 </div>
1616
1717 EOD;
Index: trunk/extensions/PatchOutputMobile/PatchOutputMobile.php
@@ -27,7 +27,7 @@
2828 'onOutputPageBeforeHTML' );
2929
3030 class ExtPatchOutputMobile {
31 - const VERSION = '0.3.0';
 31+ const VERSION = '0.3.1';
3232
3333 private $doc;
3434
@@ -77,6 +77,11 @@
7878 ExtPatchOutputMobile::$messages['patch-output-mobile-show'] = wfMsg( 'show_button' );
7979 ExtPatchOutputMobile::$messages['patch-output-mobile-hide'] = wfMsg( 'hide_button' );
8080 ExtPatchOutputMobile::$messages['patch-output-mobile-back-to-top'] = wfMsg( 'back_to_top_of_section' );
 81+ ExtPatchOutputMobile::$messages['regular_wikipedia'] = wfMsg( 'regular_wikipedia' );
 82+ ExtPatchOutputMobile::$messages['perm_stop_redirect'] = wfMsg( 'perm_stop_redirect' );
 83+ ExtPatchOutputMobile::$messages['copyright'] = wfMsg( 'copyright' );
 84+ ExtPatchOutputMobile::$messages['home_button'] = wfMsg( 'home_button' );
 85+ ExtPatchOutputMobile::$messages['random_button'] = wfMsg( 'random_button' );
8186 ExtPatchOutputMobile::$dir = $GLOBALS['wgContLang']->isRTL() ? "rtl" : "ltr";
8287 ExtPatchOutputMobile::$code = $GLOBALS['wgContLang']->getCode();
8388
@@ -298,6 +303,11 @@
299304
300305 $dir = ExtPatchOutputMobile::$dir;
301306 $code = ExtPatchOutputMobile::$code;
 307+ $regular_wikipedia = ExtPatchOutputMobile::$messages['regular_wikipedia'];
 308+ $perm_stop_redirect = ExtPatchOutputMobile::$messages['perm_stop_redirect'];
 309+ $copyright = ExtPatchOutputMobile::$messages['copyright'];
 310+ $home_button = ExtPatchOutputMobile::$messages['home_button'];
 311+ $random_button = ExtPatchOutputMobile::$messages['random_button'];
302312
303313 if ( strlen( $contentHtml ) > 4000 && $this->contentFormat == 'XHTML'
304314 && ExtPatchOutputMobile::$device['supports_javascript'] === true ) {

Status & tagging log