http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88503

Revision: 88503
Author:   preilly
Date:     2011-05-21 00:02:34 +0000 (Sat, 21 May 2011)
Log Message:
-----------
switch layouts to using translations

Modified Paths:
--------------
    trunk/extensions/PatchOutputMobile/PatchOutputMobile.php
    trunk/extensions/PatchOutputMobile/views/layout/_footmenu_default.html.php
    trunk/extensions/PatchOutputMobile/views/layout/_search_webkit.html.php

Modified: trunk/extensions/PatchOutputMobile/PatchOutputMobile.php
===================================================================
--- trunk/extensions/PatchOutputMobile/PatchOutputMobile.php    2011-05-21 
00:02:00 UTC (rev 88502)
+++ trunk/extensions/PatchOutputMobile/PatchOutputMobile.php    2011-05-21 
00:02:34 UTC (rev 88503)
@@ -27,7 +27,7 @@
                                                                                
        'onOutputPageBeforeHTML' );
 
 class ExtPatchOutputMobile {
-       const VERSION = '0.3.0';
+       const VERSION = '0.3.1';
 
        private $doc;
        
@@ -77,6 +77,11 @@
                ExtPatchOutputMobile::$messages['patch-output-mobile-show'] = 
wfMsg( 'show_button' );
                ExtPatchOutputMobile::$messages['patch-output-mobile-hide'] = 
wfMsg( 'hide_button' );
                
ExtPatchOutputMobile::$messages['patch-output-mobile-back-to-top'] = wfMsg( 
'back_to_top_of_section' );
+               ExtPatchOutputMobile::$messages['regular_wikipedia'] = wfMsg( 
'regular_wikipedia' );
+               ExtPatchOutputMobile::$messages['perm_stop_redirect'] = wfMsg( 
'perm_stop_redirect' );
+               ExtPatchOutputMobile::$messages['copyright'] = wfMsg( 
'copyright' );
+               ExtPatchOutputMobile::$messages['home_button'] = wfMsg( 
'home_button' );
+               ExtPatchOutputMobile::$messages['random_button'] = wfMsg( 
'random_button' );
                ExtPatchOutputMobile::$dir = $GLOBALS['wgContLang']->isRTL()  ? 
"rtl" : "ltr";
                ExtPatchOutputMobile::$code = $GLOBALS['wgContLang']->getCode();
                
@@ -298,6 +303,11 @@
                
                $dir = ExtPatchOutputMobile::$dir;
                $code = ExtPatchOutputMobile::$code;
+               $regular_wikipedia = 
ExtPatchOutputMobile::$messages['regular_wikipedia'];
+               $perm_stop_redirect = 
ExtPatchOutputMobile::$messages['perm_stop_redirect'];
+               $copyright = ExtPatchOutputMobile::$messages['copyright'];
+               $home_button = ExtPatchOutputMobile::$messages['home_button'];
+               $random_button = 
ExtPatchOutputMobile::$messages['random_button'];
                
                if ( strlen( $contentHtml ) > 4000 && $this->contentFormat == 
'XHTML' 
                        && ExtPatchOutputMobile::$device['supports_javascript'] 
=== true ) {

Modified: 
trunk/extensions/PatchOutputMobile/views/layout/_footmenu_default.html.php
===================================================================
--- trunk/extensions/PatchOutputMobile/views/layout/_footmenu_default.html.php  
2011-05-21 00:02:00 UTC (rev 88502)
+++ trunk/extensions/PatchOutputMobile/views/layout/_footmenu_default.html.php  
2011-05-21 00:02:34 UTC (rev 88503)
@@ -4,13 +4,13 @@
     <div id='footer'> 
       <div class='nav' id='footmenu'> 
         <div class='mwm-notice'> 
-          <a href="http://en.wikipedia.org/w/mobileRedirect.php?to=";>View this 
page on regular Wikipedia</a> 
+          <a 
href="http://en.wikipedia.org/w/mobileRedirect.php?to=";>{$regular_wikipedia}</a>
 
             <div id="perm"> 
-              <a href="/disable/?">Permanently disable mobile site</a> 
+              <a href="/disable/?">{$perm_stop_redirect}</a> 
             </div> 
         </div> 
       </div> 
-      <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> 
+      <div id='copyright'>{$copyright}</div> 
     </div>
 
 EOD;

Modified: 
trunk/extensions/PatchOutputMobile/views/layout/_search_webkit.html.php
===================================================================
--- trunk/extensions/PatchOutputMobile/views/layout/_search_webkit.html.php     
2011-05-21 00:02:00 UTC (rev 88502)
+++ trunk/extensions/PatchOutputMobile/views/layout/_search_webkit.html.php     
2011-05-21 00:02:34 UTC (rev 88503)
@@ -15,8 +15,8 @@
     </form> 
   </div> 
   <div class='nav' id='nav'> 
-    <form method="get" action="/"><button type="submit" 
id="homeButton">Home</button></form> 
-    <form method="get" action="/wiki/::Random"><button type="submit" 
id="randomButton">Random</button></form> 
+    <form method="get" action="/"><button type="submit" 
id="homeButton">{$home_button}</button></form> 
+    <form method="get" action="/wiki/::Random"><button type="submit" 
id="randomButton">{$random_button}</button></form> 
   </div> 
 </div>
 EOD;


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to