r113381 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113380‎ | r113381 | r113382 >
Date:19:01, 8 March 2012
Author:preilly
Status:ok
Tags:
Comment:
1.19wmf: MFT r113167 - r113379
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php (modified) (history)
  • /branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.i18n.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php
@@ -56,7 +56,7 @@
5757 self::$acceptBilling = $wgRequest->getVal( 'acceptbilling' );
5858 self::$title = $out->getTitle();
5959
60 - $carrier = $wgRequest->getHeader( 'HTTP_X_CARRIER' );
 60+ $carrier = $wgRequest->getHeader( 'X-CARRIER' );
6161 if ( $carrier !== '(null)' && $carrier ) {
6262 self::$renderZeroRatedBanner = true;
6363 }
@@ -128,7 +128,7 @@
129129 $output .= $banner;
130130 }
131131 }
132 - if ( self::$renderZeroRatedLandingPage === true ) {
 132+ if ( $out->getPageTitle() === 'Special:ZeroRated' ) {
133133 $out->clearHTML();
134134 $out->setPageTitle( null );
135135 $output .= wfMsg( 'zero-rated-mobile-access-desc' );
@@ -874,11 +874,11 @@
875875 $formHtml = <<<HTML
876876 <form id="zero-language-search" action="//{$langCode}.wikipedia.org/w/index.php" class="search_bar" method="get">
877877 <input type="hidden" value="Special:Search" name="title">
878 - <div id="sq" class="divclearable">
879 - <input type="text" name="search" id="search" size="22" value="" autocorrect="off" autocomplete="off" autocapitalize="off" maxlength="1024">
880 - <div class="clearlink" id="clearsearch" title="Clear"></div>
 878+ <div class="sq">
 879+ <input type="text" name="search" class="search" size="22" value="" autocorrect="off" autocomplete="off" autocapitalize="off" maxlength="1024">
 880+ <div class="clearlink" class="clearsearch" title="Clear"></div>
881881 </div>
882 - <button id="goButton" type="submit">{$searchValue}</button>
 882+ <button class="goButton" type="submit">{$searchValue}</button>
883883 </form>
884884 HTML;
885885 wfProfileOut( __METHOD__ );
Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.i18n.php
@@ -53,6 +53,22 @@
5454 * $1 is the alt text of the image that can be viewed.',
5555 );
5656
 57+/** Asturian (Asturianu)
 58+ * @author Xuacu
 59+ */
 60+$messages['ast'] = array(
 61+ 'zero-rated-mobile-access-desc' => 'Ufre carauterístiques pa los fornidores de servicios móviles que dan accesu de baldre',
 62+ 'zero-rated-mobile-access-search' => 'Guetar',
 63+ 'zero-rated-mobile-access-language-selection' => 'Toles llingües',
 64+ 'zero-rated-mobile-access-home-page-selection' => 'Páxina principal en $1',
 65+ 'zero-rated-mobile-access-home-page-selection-text' => 'O dir a la páxina principal na llingua siguiente:',
 66+ 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} de baldre dende $1',
 67+ 'zero-rated-mobile-access-banner-text-data-charges' => 'Si sigues puen aplicase tarifes de datos: $1 o $2',
 68+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Sí',
 69+ 'zero-rated-mobile-access-banner-text-data-charges-no' => 'Non',
 70+ 'zero-rated-mobile-access-click-to-view-image' => 'Calca pa ver esta imaxe, "$1"...',
 71+);
 72+
5773 /** Belarusian (Taraškievica orthography) (‪Беларуская (тарашкевіца)‬)
5874 * @author EugeneZelenko
5975 * @author Wizardist
@@ -71,6 +87,7 @@
7288 );
7389
7490 /** Breton (Brezhoneg)
 91+ * @author Fulup
7592 * @author Y-M D
7693 */
7794 $messages['br'] = array(
@@ -80,6 +97,7 @@
8198 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} dieub abaoe $1',
8299 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Ya',
83100 'zero-rated-mobile-access-banner-text-data-charges-no' => 'Ket',
 101+ 'zero-rated-mobile-access-click-to-view-image' => 'Klikañ da welet skeudenn "$1"...',
84102 );
85103
86104 /** German (Deutsch)
@@ -121,6 +139,33 @@
122140 'zero-rated-mobile-access-click-to-view-image' => 'Klikni how, aby wobraz wót "$1" wiźeł...',
123141 );
124142
 143+/** Spanish (Español)
 144+ * @author Armando-Martin
 145+ */
 146+$messages['es'] = array(
 147+ 'zero-rated-mobile-access-desc' => 'Proporciona las características para los proveedores móviles que ofrecen acceso gratuito',
 148+ 'zero-rated-mobile-access-search' => 'Buscar',
 149+ 'zero-rated-mobile-access-language-selection' => 'Todos los idiomas',
 150+ 'zero-rated-mobile-access-home-page-selection' => 'página de inicio $1',
 151+ 'zero-rated-mobile-access-home-page-selection-text' => 'O ir a la página de inicio en el siguiente idioma:',
 152+ 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} libre desde $1',
 153+ 'zero-rated-mobile-access-banner-text-data-charges' => 'Se pueden aplicar cargos por los datos si continúa: $1 o $2',
 154+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Sí',
 155+ 'zero-rated-mobile-access-banner-text-data-charges-no' => 'No',
 156+ 'zero-rated-mobile-access-click-to-view-image' => 'Haga clic para ver la imagen de, "$1"...',
 157+);
 158+
 159+/** Persian (فارسی)
 160+ * @author Huji
 161+ */
 162+$messages['fa'] = array(
 163+ 'zero-rated-mobile-access-search' => 'جستجو',
 164+ 'zero-rated-mobile-access-language-selection' => 'همۀ زبان‌ها',
 165+ 'zero-rated-mobile-access-home-page-selection' => 'صفحهٔ اصلی $1',
 166+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'بله',
 167+ 'zero-rated-mobile-access-banner-text-data-charges-no' => 'خیر',
 168+);
 169+
125170 /** Finnish (Suomi)
126171 * @author Crt
127172 */
@@ -158,7 +203,7 @@
159204 'zero-rated-mobile-access-home-page-selection-text' => 'Ou vaia á páxina principal na seguinte lingua:',
160205 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} gratis desde $1',
161206 'zero-rated-mobile-access-banner-text-data-charges' => 'Poden aplicarse tarifas de datos se continúa: $1 ou $2',
162 - 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Si',
 207+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'si',
163208 'zero-rated-mobile-access-banner-text-data-charges-no' => 'non',
164209 'zero-rated-mobile-access-click-to-view-image' => 'Prema para ver a imaxe, "$1"...',
165210 );
@@ -219,6 +264,16 @@
220265 'zero-rated-mobile-access-search' => '検索する',
221266 );
222267
 268+/** Korean (한국어)
 269+ * @author Kwj2772
 270+ */
 271+$messages['ko'] = array(
 272+ 'zero-rated-mobile-access-search' => '검색',
 273+ 'zero-rated-mobile-access-language-selection' => '모든 언어',
 274+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => '예',
 275+ 'zero-rated-mobile-access-banner-text-data-charges-no' => '아니오',
 276+);
 277+
223278 /** Luxembourgish (Lëtzebuergesch)
224279 * @author Robby
225280 */
@@ -226,6 +281,7 @@
227282 'zero-rated-mobile-access-search' => 'Sichen',
228283 'zero-rated-mobile-access-language-selection' => 'All Sproochen',
229284 'zero-rated-mobile-access-home-page-selection' => '$1 Ufaankssäit',
 285+ 'zero-rated-mobile-access-home-page-selection-text' => "Oder gitt op d'Haaptsäit vun dëse Sproochen:",
230286 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} fräi iwwer $1',
231287 'zero-rated-mobile-access-banner-text-data-charges' => 'Fraisë fir Dateniwwerdroung kënnen entstoe wann Dir weiderfuert: $1 oder $2',
232288 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Jo',
@@ -253,11 +309,16 @@
254310 * @author Praveenp
255311 */
256312 $messages['ml'] = array(
 313+ 'zero-rated-mobile-access-desc' => 'മൊബൈൽ സേവനദാതാക്കൾക്ക് സൗജന്യ ലഭ്യത നൽകുന്ന സവിശേഷതകൾ നൽകുന്നു',
257314 'zero-rated-mobile-access-search' => 'തിരയുക',
258315 'zero-rated-mobile-access-language-selection' => 'എല്ലാ ഭാഷകളും',
 316+ 'zero-rated-mobile-access-home-page-selection' => '$1 പ്രധാന താൾ',
 317+ 'zero-rated-mobile-access-home-page-selection-text' => 'അഥവാ താഴെക്കൊടുക്കുന്ന ഭാഷയിലെ പ്രധാന താളിലേയ്ക്ക് പോവുക:',
 318+ 'zero-rated-mobile-access-banner-text' => '$1 നൽകുന്ന സൗജന്യ {{SITENAME}}',
259319 'zero-rated-mobile-access-banner-text-data-charges' => 'തുടരുകയാണെങ്കിൽ ഡേറ്റ ചാർജുകൾ ഈടാക്കപ്പെട്ടേക്കാം: $1 അഥവാ $2',
260320 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'ശരി',
261321 'zero-rated-mobile-access-banner-text-data-charges-no' => 'വേണ്ട',
 322+ 'zero-rated-mobile-access-click-to-view-image' => 'ഇവിടെ ഞെക്കി ചിത്രം കാണുക, "$1"...',
262323 );
263324
264325 /** Malay (Bahasa Melayu)
@@ -321,6 +382,18 @@
322383 'zero-rated-mobile-access-banner-text-data-charges-no' => 'نه',
323384 );
324385
 386+/** Russian (Русский)
 387+ * @author DR
 388+ */
 389+$messages['ru'] = array(
 390+ 'zero-rated-mobile-access-desc' => 'Предоставляет функции для провайдеров мобильной связи, обеспечивающих бесплатный доступ',
 391+ 'zero-rated-mobile-access-search' => 'Поиск',
 392+ 'zero-rated-mobile-access-language-selection' => 'Все языки',
 393+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Да',
 394+ 'zero-rated-mobile-access-banner-text-data-charges-no' => 'Нет',
 395+ 'zero-rated-mobile-access-click-to-view-image' => 'Щелкните, чтобы просмотреть изображение "$1 "...',
 396+);
 397+
325398 /** Slovenian (Slovenščina)
326399 * @author Dbc334
327400 */
@@ -381,3 +454,14 @@
382455 'zero-rated-mobile-access-click-to-view-image' => '点击来查看“$1”的图像…',
383456 );
384457
 458+/** Traditional Chinese (‪中文(繁體)‬)
 459+ * @author Oapbtommy
 460+ */
 461+$messages['zh-hant'] = array(
 462+ 'zero-rated-mobile-access-search' => '搜尋',
 463+ 'zero-rated-mobile-access-language-selection' => '所有語言',
 464+ 'zero-rated-mobile-access-home-page-selection' => '$1 主頁',
 465+ 'zero-rated-mobile-access-banner-text-data-charges-yes' => '是',
 466+ 'zero-rated-mobile-access-banner-text-data-charges-no' => '否',
 467+);
 468+

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113167fixes for zero rated landing page searchpreilly18:47, 6 March 2012
r113379render zero rated landing pagepreilly18:50, 8 March 2012

Status & tagging log