r90541 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90540‎ | r90541 | r90542 >
Date:19:19, 21 June 2011
Author:tomasz
Status:ok
Tags:
Comment:
Syncing up to head of trunk from 84193
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/MobileRedirect.js (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.i18n.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/WikimediaMobile/redirector_test.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.i18n.php
@@ -28,7 +28,14 @@
2929 'wikimediamobile-desc' => 'Ondersteunende funksies in MediaWiki vir die projek Wikipedia-mobiel by http://github.com/hcatlin/wikimedia-mobile',
3030 );
3131
32 -/** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца))
 32+/** Asturian (Asturianu)
 33+ * @author Xuacu
 34+ */
 35+$messages['ast'] = array(
 36+ 'wikimediamobile-desc' => 'MediaWiki tien encontu pa les funciones del proyeutu Wikimedia-mobile agospiáu en http://github.com/hcatlin/wikimedia-mobile',
 37+);
 38+
 39+/** Belarusian (Taraškievica orthography) (‪Беларуская (тарашкевіца)‬)
3340 * @author Wizardist
3441 */
3542 $messages['be-tarask'] = array(
@@ -117,6 +124,13 @@
118125 'wikimediamobile-desc' => 'Funciones de apoyo de MediaWiki para el proyecto Wikimedia-mobile hospedado en http://github.com/hcatlin/wikimedia-mobile',
119126 );
120127
 128+/** Persian (فارسی)
 129+ * @author Ebraminio
 130+ */
 131+$messages['fa'] = array(
 132+ 'wikimediamobile-desc' => 'مدیاویکی از توابع پروژه ویکی‌مدیا-همراه که در http://github.com/hcatlin/wikimedia-mobile میزبانی شده حمایت می‌کند',
 133+);
 134+
121135 /** French (Français)
122136 * @author Peter17
123137 */
@@ -216,6 +230,13 @@
217231 'wikimediamobile-desc' => 'MediaWiki ënnerstetzt Fonctioune fir de Wikimedia-Mobile Projet deen Dir op http://github.com/hcatlin/wikimedia-mobile fannt',
218232 );
219233
 234+/** Lithuanian (Lietuvių)
 235+ * @author Eitvys200
 236+ */
 237+$messages['lt'] = array(
 238+ 'wikimediamobile-desc' => 'MediaWiki priima funkcijas Wikimedia-mobile patalpinta http://github.com/hcatlin/wikimedia-mobile',
 239+);
 240+
220241 /** Latvian (Latviešu)
221242 * @author Xil
222243 */
@@ -230,6 +251,13 @@
231252 'wikimediamobile-desc' => 'Функции на МедијаВики за поддршка на проектот на Википедија-мобилен, вдомен на http://github.com/hcatlin/wikimedia-mobile',
232253 );
233254
 255+/** Malayalam (മലയാളം)
 256+ * @author Praveenp
 257+ */
 258+$messages['ml'] = array(
 259+ 'wikimediamobile-desc' => 'http://github.com/hcatlin/wikimedia-mobile എന്ന് ഹോസ്റ്റ് ചെയ്യപ്പെട്ടിരിക്കുന്ന വിക്കിമീഡിയ-മൊബൈൽ പദ്ധതിയുടെ മീഡിയവിക്കി സഹായ ഫങ്ഷനുകൾ',
 260+);
 261+
234262 /** Mongolian (Монгол)
235263 * @author Namchin
236264 */
@@ -277,7 +305,7 @@
278306 * @author Ahmed-Najib-Biabani-Ibrahimkhel
279307 */
280308 $messages['ps'] = array(
281 - 'wikimediamobile-desc' => 'ويکيمېډيا د ويکيمېډيا د موبايل پروژې د چارو چې په http://github.com/hcatlin/wikimedia-mobile باندې کوربه دی ملاتړ کوي',
 309+ 'wikimediamobile-desc' => 'ويکيرسنۍ د ويکيرسنۍ د موبايل پروژې د چارو چې په http://github.com/hcatlin/wikimedia-mobile باندې کوربه دی ملاتړ کوي',
282310 );
283311
284312 /** Portuguese (Português)
Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/WikimediaMobile.php
@@ -8,7 +8,7 @@
99 $wgExtensionCredits['other'][] = array(
1010 'path' => __FILE__,
1111 'name' => 'WikimediaMobile',
12 - 'author' => array( 'Tim Starling', 'Brion Vibber', 'Hampton Catlin' ),
 12+ 'author' => array( 'Tim Starling', 'Brion Vibber', 'Hampton Catlin', 'Patrick Reilly' ),
1313 'url' => 'http://www.mediawiki.org/wiki/Extension:WikimediaMobile',
1414 'descriptionmsg' => 'wikimediamobile-desc',
1515 );
@@ -19,7 +19,7 @@
2020 /**
2121 * Increment this when the JS file changes
2222 */
23 -$wgWikimediaMobileVersion = '7';
 23+$wgWikimediaMobileVersion = '8';
2424
2525 /**
2626 * The base URL of the mobile gateway
Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/MobileRedirect.js
@@ -5,7 +5,7 @@
66 *
77 * You can turn off the redirect by setting the cookie "stopMobileRedirect=true"
88 */
9 -if ( /(iPhone|iPod|Android.*Mobile|webOS|NetFront|Opera Mini|SEMC-Browser|PlayStation Portable|Nintendo Wii|BlackBerry)/
 9+if ( /(iPhone|iPod|Android.*Mobile|webOS|NetFront|Opera Mini|SEMC-Browser|PlayStation Portable|Nintendo Wii|BlackBerry|Bada|NokiaBrowser|MeeGo)/
1010 .test( navigator.userAgent ) )
1111 {
1212 if ( (document.cookie.indexOf("irect=t") < 0) // Don't redirect if we have the stop cookie ... only testing a subportion of the cookie. Should be REALLY unique!
Index: branches/wmf/1.17wmf1/extensions/WikimediaMobile/redirector_test.js
@@ -112,6 +112,7 @@
113113 var testUserAgents = function() {
114114 // iPhone
115115 shouldRedirect({user_agent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2 like Mac OS X; en-us) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5G77 Safari/525.20"});
 116+ shouldRedirect({user_agent: "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5"})
116117 // Android on HTC Desire
117118 shouldRedirect({user_agent: "Mozilla/5.0 (Linux; U; Android 2.1-update1; de-de; HTC Desire 1.19.161.5 Build/ERE27) AppleWebKit/530.17 (KHTML, like Gecko) Version/4.0 Mobile Safari/530.17"});
118119 // Nintendo Wii
Property changes on: branches/wmf/1.17wmf1/extensions/WikimediaMobile
___________________________________________________________________
Modified: svn:mergeinfo
119120 Merged /trunk/extensions/WikimediaMobile:r84194-90540

Status & tagging log