Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.body.php |
— | — | @@ -56,7 +56,7 @@ |
57 | 57 | self::$acceptBilling = $wgRequest->getVal( 'acceptbilling' ); |
58 | 58 | self::$title = $out->getTitle(); |
59 | 59 | |
60 | | - $carrier = $wgRequest->getHeader( 'HTTP_X_CARRIER' ); |
| 60 | + $carrier = $wgRequest->getHeader( 'X-CARRIER' ); |
61 | 61 | if ( $carrier !== '(null)' && $carrier ) { |
62 | 62 | self::$renderZeroRatedBanner = true; |
63 | 63 | } |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | $output .= $banner; |
130 | 130 | } |
131 | 131 | } |
132 | | - if ( self::$renderZeroRatedLandingPage === true ) { |
| 132 | + if ( $out->getPageTitle() === 'Special:ZeroRated' ) { |
133 | 133 | $out->clearHTML(); |
134 | 134 | $out->setPageTitle( null ); |
135 | 135 | $output .= wfMsg( 'zero-rated-mobile-access-desc' ); |
— | — | @@ -874,11 +874,11 @@ |
875 | 875 | $formHtml = <<<HTML |
876 | 876 | <form id="zero-language-search" action="//{$langCode}.wikipedia.org/w/index.php" class="search_bar" method="get"> |
877 | 877 | <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> |
881 | 881 | </div> |
882 | | - <button id="goButton" type="submit">{$searchValue}</button> |
| 882 | + <button class="goButton" type="submit">{$searchValue}</button> |
883 | 883 | </form> |
884 | 884 | HTML; |
885 | 885 | wfProfileOut( __METHOD__ ); |
Index: branches/wmf/1.19wmf1/extensions/ZeroRatedMobileAccess/ZeroRatedMobileAccess.i18n.php |
— | — | @@ -53,6 +53,22 @@ |
54 | 54 | * $1 is the alt text of the image that can be viewed.', |
55 | 55 | ); |
56 | 56 | |
| 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 | + |
57 | 73 | /** Belarusian (Taraškievica orthography) (Беларуская (тарашкевіца)) |
58 | 74 | * @author EugeneZelenko |
59 | 75 | * @author Wizardist |
— | — | @@ -71,6 +87,7 @@ |
72 | 88 | ); |
73 | 89 | |
74 | 90 | /** Breton (Brezhoneg) |
| 91 | + * @author Fulup |
75 | 92 | * @author Y-M D |
76 | 93 | */ |
77 | 94 | $messages['br'] = array( |
— | — | @@ -80,6 +97,7 @@ |
81 | 98 | 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} dieub abaoe $1', |
82 | 99 | 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Ya', |
83 | 100 | 'zero-rated-mobile-access-banner-text-data-charges-no' => 'Ket', |
| 101 | + 'zero-rated-mobile-access-click-to-view-image' => 'Klikañ da welet skeudenn "$1"...', |
84 | 102 | ); |
85 | 103 | |
86 | 104 | /** German (Deutsch) |
— | — | @@ -121,6 +139,33 @@ |
122 | 140 | 'zero-rated-mobile-access-click-to-view-image' => 'Klikni how, aby wobraz wót "$1" wiźeł...', |
123 | 141 | ); |
124 | 142 | |
| 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 | + |
125 | 170 | /** Finnish (Suomi) |
126 | 171 | * @author Crt |
127 | 172 | */ |
— | — | @@ -158,7 +203,7 @@ |
159 | 204 | 'zero-rated-mobile-access-home-page-selection-text' => 'Ou vaia á páxina principal na seguinte lingua:', |
160 | 205 | 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} gratis desde $1', |
161 | 206 | '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', |
163 | 208 | 'zero-rated-mobile-access-banner-text-data-charges-no' => 'non', |
164 | 209 | 'zero-rated-mobile-access-click-to-view-image' => 'Prema para ver a imaxe, "$1"...', |
165 | 210 | ); |
— | — | @@ -219,6 +264,16 @@ |
220 | 265 | 'zero-rated-mobile-access-search' => '検索する', |
221 | 266 | ); |
222 | 267 | |
| 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 | + |
223 | 278 | /** Luxembourgish (Lëtzebuergesch) |
224 | 279 | * @author Robby |
225 | 280 | */ |
— | — | @@ -226,6 +281,7 @@ |
227 | 282 | 'zero-rated-mobile-access-search' => 'Sichen', |
228 | 283 | 'zero-rated-mobile-access-language-selection' => 'All Sproochen', |
229 | 284 | '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:", |
230 | 286 | 'zero-rated-mobile-access-banner-text' => '{{SITENAME}} fräi iwwer $1', |
231 | 287 | 'zero-rated-mobile-access-banner-text-data-charges' => 'Fraisë fir Dateniwwerdroung kënnen entstoe wann Dir weiderfuert: $1 oder $2', |
232 | 288 | 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'Jo', |
— | — | @@ -253,11 +309,16 @@ |
254 | 310 | * @author Praveenp |
255 | 311 | */ |
256 | 312 | $messages['ml'] = array( |
| 313 | + 'zero-rated-mobile-access-desc' => 'മൊബൈൽ സേവനദാതാക്കൾക്ക് സൗജന്യ ലഭ്യത നൽകുന്ന സവിശേഷതകൾ നൽകുന്നു', |
257 | 314 | 'zero-rated-mobile-access-search' => 'തിരയുക', |
258 | 315 | '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}}', |
259 | 319 | 'zero-rated-mobile-access-banner-text-data-charges' => 'തുടരുകയാണെങ്കിൽ ഡേറ്റ ചാർജുകൾ ഈടാക്കപ്പെട്ടേക്കാം: $1 അഥവാ $2', |
260 | 320 | 'zero-rated-mobile-access-banner-text-data-charges-yes' => 'ശരി', |
261 | 321 | 'zero-rated-mobile-access-banner-text-data-charges-no' => 'വേണ്ട', |
| 322 | + 'zero-rated-mobile-access-click-to-view-image' => 'ഇവിടെ ഞെക്കി ചിത്രം കാണുക, "$1"...', |
262 | 323 | ); |
263 | 324 | |
264 | 325 | /** Malay (Bahasa Melayu) |
— | — | @@ -321,6 +382,18 @@ |
322 | 383 | 'zero-rated-mobile-access-banner-text-data-charges-no' => 'نه', |
323 | 384 | ); |
324 | 385 | |
| 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 | + |
325 | 398 | /** Slovenian (Slovenščina) |
326 | 399 | * @author Dbc334 |
327 | 400 | */ |
— | — | @@ -381,3 +454,14 @@ |
382 | 455 | 'zero-rated-mobile-access-click-to-view-image' => '点击来查看“$1”的图像…', |
383 | 456 | ); |
384 | 457 | |
| 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 | + |