r94184 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94183‎ | r94184 | r94185 >
Date:18:57, 10 August 2011
Author:preilly
Status:ok
Tags:
Comment:
update deployment branch to newest Mobile Frontend changes for opt-in opt-out and x-device support
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.i18n.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php (modified) (history)
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/views/information/optin.html.php (added) (history)
  • /branches/wmf/1.17wmf1/extensions/MobileFrontend/views/information/optout.html.php (added) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.i18n.php
@@ -43,7 +43,17 @@
4444 'mobile-frontend-file-namespace' => 'File',
4545 'mobile-frontend-wml-continue' => 'Continue ...',
4646 'mobile-frontend-wml-back' => 'Back ...',
47 - 'mobile-frontend-view' => 'Mobile View',
 47+ 'mobile-frontend-view' => 'Mobile view',
 48+ 'mobile-frontend-opt-in-message' => 'Join our opt-in testing of the new mobile frontend?',
 49+ 'mobile-frontend-opt-in-yes-button' => 'yes',
 50+ 'mobile-frontend-opt-in-no-button' => 'no',
 51+ 'mobile-frontend-opt-in-title' => 'Opt-In for Testing',
 52+ 'mobile-frontend-opt-in-explain' => 'This allows you to enter the test',
 53+ 'mobile-frontend-opt-out-message' => 'Leave opt-in testing of the new mobile frontend?',
 54+ 'mobile-frontend-opt-out-yes-button' => 'yes',
 55+ 'mobile-frontend-opt-out-no-button' => 'no',
 56+ 'mobile-frontend-opt-out-title' => 'Opt-Out of Testing',
 57+ 'mobile-frontend-opt-out-explain' => 'This allows you to leave the test',
4858 );
4959
5060 /** Moroccan Spoken Arabic (Maġribi) */
@@ -264,6 +274,23 @@
265275 'mobile-frontend-file-namespace' => 'ملف',
266276 );
267277
 278+/** Aramaic (ܐܪܡܝܐ)
 279+ * @author Basharh
 280+ */
 281+$messages['arc'] = array(
 282+ 'mobile-frontend-search-submit' => 'ܙܠ',
 283+ 'mobile-frontend-search-results' => 'ܦܠܛ̈ܐ ܕܒܘܨܝܐ',
 284+ 'mobile-frontend-home-button' => 'ܪܝܫܝܬܐ',
 285+ 'mobile-frontend-random-button' => 'ܚܘܝܚܐܝܬ',
 286+ 'mobile-frontend-nav-end' => 'ܫܘܠܡܐ',
 287+ 'mobile-frontend-nav-top' => 'ܥܠܝܐ',
 288+ 'mobile-frontend-nav-edit' => 'ܫܚܠܦ',
 289+ 'mobile-frontend-nav-history' => 'ܬܫܥܝܬܐ',
 290+ 'mobile-frontend-search-text' => 'ܒܨܝ',
 291+ 'mobile-frontend-file-namespace' => 'ܠܦܦܐ',
 292+ 'mobile-frontend-view' => 'ܓܠܚܐ ܒܙܥܘܩܐ ܟܘܪܝܐ (ܡܫܢܝܢܐ)',
 293+);
 294+
268295 /** Asturian (Asturianu) */
269296 $messages['ast'] = array(
270297 'mobile-frontend-search-submit' => 'Dir',
@@ -801,16 +828,16 @@
802829 'mobile-frontend-regular-site' => 'Zur klassischen {{SITENAME}}-Ansicht wechseln',
803830 'mobile-frontend-perm-stop-redirect' => 'Mobile Ansicht dauerhaft deaktivieren',
804831 'mobile-frontend-error-page-title' => 'Es ist ein Problem aufgetreten.',
805 - 'mobile-frontend-error-page-text' => 'Die mobile {{SITENAME}}-Ansicht befindet sich noch in der Entwicklung und wir bemühen uns, noch bestehende interne Fehler zu beheben. Wir wurden über diesen Fehler informiert und werden das Problem in Kürze lösen. Bitte versuche es später noch einmal.',
 832+ 'mobile-frontend-error-page-text' => 'Die mobile Ansicht von {{SITENAME}} befindet sich noch in der Entwicklung und wir bemühen uns, noch bestehende interne Fehler zu beheben. Wir wurden über diesen Fehler informiert und werden das Problem in Kürze lösen. Bitte versuche es später noch einmal.',
806833 'mobile-frontend-are-you-sure' => 'Bist du dir sicher?',
807 - 'mobile-frontend-explain-disable' => 'Bist du dir sicher, dass du die mobile {{SITENAME}}-Ansicht deaktivieren möchtest? Sofern du <b>Deaktivieren</b> wählst, wirst du von nun an bei einem Besuch von {{SITENAME}} nicht mehr automatisch auf die mobile {{SITENAME}}-Ansicht weitergeleitet.',
 834+ 'mobile-frontend-explain-disable' => 'Bist du dir sicher, dass du die mobile Ansicht von {{SITENAME}} deaktivieren möchtest? Sofern du <b>Deaktivieren</b> wählst, wirst du von nun an bei einem Besuch von {{SITENAME}} nicht mehr automatisch auf die mobile Ansicht von {{SITENAME}} weitergeleitet.',
808835 'mobile-frontend-nav-end' => 'Ende',
809836 'mobile-frontend-nav-top' => 'Oben',
810837 'mobile-frontend-nav-edit' => 'Bearbeiten',
811838 'mobile-frontend-nav-history' => 'Verlauf',
812839 'mobile-frontend-search-text' => 'Suche',
813840 'mobile-frontend-contact-us' => 'Im Fall von Fragen oder Anmerkungen kontaktiere uns bitte unter der E-Mail-Adresse mobile@wikipedia.org',
814 - 'mobile-frontend-author-link' => 'Diese Datei in der regulären {{SITENAME}} anzeigen, um Informationen über Autoren, Lizenz und erweiterte Beschreibungen zu sehen.',
 841+ 'mobile-frontend-author-link' => 'Diese Datei in der regulären Ansicht von {{SITENAME}} anzeigen, um Informationen über Autoren, Lizenz und erweiterte Beschreibungen zu sehen.',
815842 'mobile-frontend-download-full-version' => 'Vollversion downloaden',
816843 'mobile-frontend-file-namespace' => 'Datei',
817844 'mobile-frontend-wml-continue' => 'Weiter ...',
@@ -822,9 +849,9 @@
823850 * @author Kghbln
824851 */
825852 $messages['de-formal'] = array(
826 - 'mobile-frontend-error-page-text' => 'Die mobile {{SITENAME}}-Ansicht befindet sich noch in der Entwicklung und wir bemühen uns, noch bestehende interne Fehler zu beheben. Wir wurden über diesen Fehler informiert und werden das Problem in Kürze lösen. Bitte versuchen Sie es später noch einmal.',
 853+ 'mobile-frontend-error-page-text' => 'Die mobile Ansicht von {{SITENAME}} befindet sich noch in der Entwicklung und wir bemühen uns, noch bestehende interne Fehler zu beheben. Wir wurden über diesen Fehler informiert und werden das Problem in Kürze lösen. Bitte versuchen Sie es später noch einmal.',
827854 'mobile-frontend-are-you-sure' => 'Sind Sie sich sicher?',
828 - 'mobile-frontend-explain-disable' => 'Sind Sie sich sicher, dass Sie die mobile {{SITENAME}}-Ansicht deaktivieren möchten? Sofern Sie <b>Deaktivieren</b> wählen, werden Sie von nun an bei einem Besuch von {{SITENAME}} nicht mehr automatisch auf die mobile {{SITENAME}}-Ansicht weitergeleitet.',
 855+ 'mobile-frontend-explain-disable' => 'Sind Sie sich sicher, dass Sie die mobile Ansicht von {{SITENAME}} deaktivieren möchten? Sofern Sie <b>Deaktivieren</b> wählen, werden Sie von nun an bei einem Besuch von {{SITENAME}} nicht mehr automatisch auf die mobile Ansicht {{SITENAME}} weitergeleitet.',
829856 'mobile-frontend-contact-us' => 'Im Fall von Fragen oder Anmerkungen kontaktieren Sie uns bitte unter der E-Mail-Adresse mobile@wikipedia.org',
830857 );
831858
@@ -981,7 +1008,9 @@
9821009 'mobile-frontend-file-namespace' => 'Dosiero',
9831010 );
9841011
985 -/** Spanish (Español) */
 1012+/** Spanish (Español)
 1013+ * @author Crazymadlover
 1014+ */
9861015 $messages['es'] = array(
9871016 'mobile-frontend-search-submit' => 'Ir',
9881017 'mobile-frontend-search-results' => 'Resultados de la búsqueda',
@@ -998,16 +1027,16 @@
9991028 'mobile-frontend-regular-site' => 'Ver esta página en {{SITENAME}} estándar',
10001029 'mobile-frontend-perm-stop-redirect' => 'Desactivar permanentemente el sitio móvil',
10011030 'mobile-frontend-error-page-title' => '¡Tenemos un problema!',
1002 - 'mobile-frontend-error-page-text' => '{{SITENAME}} para móviles está todavía bajo desarrollo activo y estamos trabajando intensamente para arreglar todos nuestros errores internos. Hemos sido notificados de este error y lo arreglaremos pronto. Por favor, revise regularmente si la petición ha sido o no atendida.',
 1031+ 'mobile-frontend-error-page-text' => '{{SITENAME}} para móviles está todavía bajo desarrollo activo y estamos trabajando intensamente para arreglar todos nuestros errores internos. Hemos sido notificados de este error y lo arreglaremos pronto. Por favor,revíselo después.',
10031032 'mobile-frontend-are-you-sure' => '¿Estás seguro?',
1004 - 'mobile-frontend-explain-disable' => '¿Estas seguro que deseas desactivar la versión móvil de {{SITENAME}}? Si escoges <b>Desactivar</b>, de ahora en adelante, cuando visites {{SITENAME}}, no serás redirigido a esta vista móvil de {{SITENAME}}.',
 1033+ 'mobile-frontend-explain-disable' => 'Estas seguro que deseas desactivar la versión móvil de {{SITENAME}}? Si escoges <b>Desactivar</b>, de ahora en adelante, cuando visites {{SITENAME}}, no serás redirigido a esta vista móvil de {{SITENAME}}.',
10051034 'mobile-frontend-nav-end' => 'Fin',
10061035 'mobile-frontend-nav-top' => 'Arriba',
10071036 'mobile-frontend-nav-edit' => 'Editar',
10081037 'mobile-frontend-nav-history' => 'Historial',
10091038 'mobile-frontend-search-text' => 'Buscar',
10101039 'mobile-frontend-contact-us' => 'Si tienes alguna pregunta o comentario siéntete libre de enviarnos un correo electrónico a mobile@wikipedia.org',
1011 - 'mobile-frontend-author-link' => 'Ver este archivo de media en {{SITENAME}} para ver la información sobre la autoría, licencia y descripciones adicionales.',
 1040+ 'mobile-frontend-author-link' => 'Ver este archivo de medios en la versión regular de {{SITENAME}} para ver la información sobre la autoría, licencia y descripciones adicionales.',
10121041 'mobile-frontend-download-full-version' => 'Descargar la versión completa',
10131042 'mobile-frontend-file-namespace' => 'Archivo',
10141043 );
@@ -1212,7 +1241,7 @@
12131242 'mobile-frontend-hide-button' => 'Cachiér',
12141243 'mobile-frontend-disable-button' => 'Dèsactivar',
12151244 'mobile-frontend-back-button' => 'Tornar',
1216 - 'mobile-frontend-regular-site' => 'Fâre vêre ceta pâge dessus Vouiquipèdia classica',
 1245+ 'mobile-frontend-regular-site' => 'Fâre vêre ceta pâge dessus {{SITENAME}} classica',
12171246 'mobile-frontend-error-page-title' => 'Dèsolâ ! Nos avens un problèmo.',
12181247 'mobile-frontend-are-you-sure' => 'Éte-vos de sûr ?',
12191248 'mobile-frontend-nav-end' => 'Fin',
@@ -1222,6 +1251,8 @@
12231252 'mobile-frontend-search-text' => 'Rechèrchiér',
12241253 'mobile-frontend-download-full-version' => 'Tèlèchargiér la vèrsion complèta',
12251254 'mobile-frontend-file-namespace' => 'Fichiér',
 1255+ 'mobile-frontend-wml-continue' => 'Continuar ...',
 1256+ 'mobile-frontend-wml-back' => 'Retôrn ...',
12261257 );
12271258
12281259 /** Friulian (Furlan) */
@@ -1308,16 +1339,19 @@
13091340 'mobile-frontend-error-page-title' => 'Vaites, temos un problema!',
13101341 'mobile-frontend-error-page-text' => '{{SITENAME}} móbil aínda está en desenvolvemento activo e estamos a traballar arreo para arranxar os nosos erros internos. Xa se nos avisou deste erro e axiña o resolveremos. Ata a próxima!',
13111342 'mobile-frontend-are-you-sure' => 'Está seguro?',
1312 - 'mobile-frontend-explain-disable' => 'Está seguro de querer desactivar a versión móbil da {{SITENAME}}? Se escolle a opción "<b>Desactivar</b>", a partir de entón, cando visite a {{SITENAME}}, non será redirixido a esta versión móbil da {{SITENAME}}.',
 1343+ 'mobile-frontend-explain-disable' => 'Está seguro de querer desactivar a versión móbil de {{SITENAME}}? Se escolle a opción "<b>Desactivar</b>", a partir de entón, cando visite {{SITENAME}}, non será redirixido a esta versión móbil de {{SITENAME}}.',
13131344 'mobile-frontend-nav-end' => 'Fin',
13141345 'mobile-frontend-nav-top' => 'Comezo',
13151346 'mobile-frontend-nav-edit' => 'Editar',
13161347 'mobile-frontend-nav-history' => 'Historial',
13171348 'mobile-frontend-search-text' => 'Procurar',
13181349 'mobile-frontend-contact-us' => 'Se ten calquera pregunta, comentario ou dúbida, síntase libre de enviarnos un correo electrónico a mobile@wikipedia.org',
1319 - 'mobile-frontend-author-link' => 'Ollar este ficheiro na {{SITENAME}} normal para ver a información sobre a autoría, a licenza e calquera descrición adicional.',
 1350+ 'mobile-frontend-author-link' => 'Ollar este ficheiro en {{SITENAME}} normal para ver a información sobre a autoría, a licenza e calquera descrición adicional.',
13201351 'mobile-frontend-download-full-version' => 'Descargar a versión completa',
13211352 'mobile-frontend-file-namespace' => 'Ficheiro',
 1353+ 'mobile-frontend-wml-continue' => 'Continuar...',
 1354+ 'mobile-frontend-wml-back' => 'Volver...',
 1355+ 'mobile-frontend-view' => 'Vista móbil',
13221356 );
13231357
13241358 /** Ancient Greek (Ἀρχαία ἑλληνικὴ) */
@@ -1666,6 +1700,9 @@
16671701 'mobile-frontend-author-link' => 'Vide iste file multimedia sur le {{SITENAME}} normal pro vider information super le autores, le licentia, e descriptiones additional.',
16681702 'mobile-frontend-download-full-version' => 'Discargar version complete',
16691703 'mobile-frontend-file-namespace' => 'File',
 1704+ 'mobile-frontend-wml-continue' => 'Continuar ...',
 1705+ 'mobile-frontend-wml-back' => 'Retornar…',
 1706+ 'mobile-frontend-view' => 'Version mobile',
16701707 );
16711708
16721709 /** Indonesian (Bahasa Indonesia) */
@@ -2166,12 +2203,12 @@
21672204 'mobile-frontend-hide-button' => 'Verstoppen',
21682205 'mobile-frontend-disable-button' => 'Ausschalten',
21692206 'mobile-frontend-back-button' => 'Zréck',
2170 - 'mobile-frontend-regular-site' => 'Dës Säit als klassesch Wikiedia-Säit weisen',
 2207+ 'mobile-frontend-regular-site' => 'Dës Säit als klassesch {{SITENAME}}-Säit weisen',
21712208 'mobile-frontend-perm-stop-redirect' => 'Mobile Site dauerhaft ausschalten',
21722209 'mobile-frontend-error-page-title' => 'Mir hunn e Problem!',
2173 - 'mobile-frontend-error-page-text' => '{{SITENAME}}-Mobil gëtt nach ëmmer weiderentwéckelt a mir schaffen drun fir all eis intern Feeler ze verbesseren. Mir goufe vun dësem Feeler informéiert a wäerten en esou séier wéi méiglech verbesseren. Versicht et w.e.g. geschwënn nachemol!',
 2210+ 'mobile-frontend-error-page-text' => '{{SITENAME}}-Mobil gëtt nach ëmmer weiderentwéckelt a mir schaffen dru fir all eis intern Feeler ze verbesseren. Mir goufe vun dësem Feeler informéiert a wäerten en esou séier wéi méiglech verbesseren. Versicht et w.e.g. geschwënn nachemol!',
21742211 'mobile-frontend-are-you-sure' => 'Sidd Dir sécher?',
2175 - 'mobile-frontend-explain-disable' => 'Sidd Dir sécher datt Dir déi mobil Versioun vu {{SITENAME}} ausschalte wëllt? Wann Dir <b>Ausschalten</b> wielt, da gitt Dir vun dann un, wann dir {{SITENAME}} besicht, net méi op dës mobil Versioun vu {{SITENAME}} virugeleet.',
 2212+ 'mobile-frontend-explain-disable' => 'Sidd Dir sécher datt Dir déi mobil Versioun vu {{SITENAME}} ausschalte wëllt? Wann Dir <b>Ausschalten</b> wielt, da gitt Dir vun elo un, wann dir {{SITENAME}} besicht, net méi op dës mobil Versioun vu {{SITENAME}} virugeleet.',
21762213 'mobile-frontend-nav-end' => 'Schluss',
21772214 'mobile-frontend-nav-top' => 'Uewen',
21782215 'mobile-frontend-nav-edit' => 'Änneren',
@@ -2395,7 +2432,7 @@
23962433 'mobile-frontend-hide-button' => 'Скриј',
23972434 'mobile-frontend-disable-button' => 'Оневозможи',
23982435 'mobile-frontend-back-button' => 'Назад',
2399 - 'mobile-frontend-regular-site' => 'Погледајте ја страницава на обична Википедија',
 2436+ 'mobile-frontend-regular-site' => 'Погледајте ја страницава во обичен режим на {{SITENAME}}',
24002437 'mobile-frontend-perm-stop-redirect' => 'Трајно оневозможи ја оваа мобилна страница',
24012438 'mobile-frontend-error-page-title' => 'Имаме проблем!',
24022439 'mobile-frontend-error-page-text' => 'Мобилното издание на {{SITENAME}} е сè уште во активен развој, и работиме напорно за да ги поправиме сите внатрешни грешки. Известени сме за оваа грешка и набргу ќе ја поправиме. Проверете повторно!',
@@ -2549,16 +2586,16 @@
25502587 'mobile-frontend-regular-site' => 'Lihat laman ini di {{SITENAME}} biasa',
25512588 'mobile-frontend-perm-stop-redirect' => 'Lumpuhkan versi bergerak secara kekal',
25522589 'mobile-frontend-error-page-title' => 'Kami mempunyai masalah!',
2553 - 'mobile-frontend-error-page-text' => "''{{SITENAME}} mobile'' masih dalam pembangunan aktif dan kami sedang berusaha keras memperbaiki semua ralat dalaman kami. Kami telah dimaklumkan mengenai ralat ini dan akan segera memperbaikinya. Sila semak semula nanti!",
 2590+ 'mobile-frontend-error-page-text' => '{{SITENAME}} mobile masih dalam pembangunan aktif dan kami sedang berusaha keras memperbaiki semua ralat dalaman kami. Kami telah dimaklumkan mengenai ralat ini dan akan segera memperbaikinya. Sila datang balik nanti!',
25542591 'mobile-frontend-are-you-sure' => 'Adakah anda pasti?',
2555 - 'mobile-frontend-explain-disable' => 'Adakah anda pasti anda hendak melumpuhkan versi bergerak {{SITENAME}}? Jika anda memilih <b>Lumpuhkan</b>, maka dari sekarang, apabila anda melawat {{SITENAME}}, anda tidak akan dilencongkan ke paparan bergerak {{SITENAME}} ini.',
 2592+ 'mobile-frontend-explain-disable' => 'Adakah anda pasti anda hendak melumpuhkan versi bergerak {{SITENAME}}? Jika anda memilih <b>Lumpuhkan</b>, maka dari sekarang, apabila anda melawat {{SITENAME}}, anda tidak akan dilencongkan ke paparan mudah alih {{SITENAME}} ini.',
25562593 'mobile-frontend-nav-end' => 'Tamat',
25572594 'mobile-frontend-nav-top' => 'Puncak',
25582595 'mobile-frontend-nav-edit' => 'Sunting',
25592596 'mobile-frontend-nav-history' => 'Sejarah',
25602597 'mobile-frontend-search-text' => 'Cari',
25612598 'mobile-frontend-contact-us' => 'Jika anda mempunyai pertanyaan atau ulasan sila e-mel kami di mobile@wikipedia.org',
2562 - 'mobile-frontend-author-link' => 'Paparkan fail media ini dalam {{SITENAME}} biasa untuk melihat maklumat pembuat, perlesenan dan huraian tambahannya.',
 2599+ 'mobile-frontend-author-link' => 'Paparkan fail media ini di dalam {{SITENAME}} biasa untuk melihat maklumat pengarang, perlesenan dan huraian tambahan.',
25632600 'mobile-frontend-download-full-version' => 'Muat Turun Versi Penuh',
25642601 'mobile-frontend-file-namespace' => 'Fail',
25652602 'mobile-frontend-wml-continue' => 'Teruskan ...',
@@ -2660,7 +2697,9 @@
26612698 'mobile-frontend-contact-us' => "A'j nog vragen of opmarkingen hebben, stuur ons gerust n berichjen op t adres mobile@wikipedia.org",
26622699 );
26632700
2664 -/** Nepali (नेपाली) */
 2701+/** Nepali (नेपाली)
 2702+ * @author RajeshPandey
 2703+ */
26652704 $messages['ne'] = array(
26662705 'mobile-frontend-search-submit' => 'जाने \\',
26672706 'mobile-frontend-search-results' => 'खोज नतिजाहरु',
@@ -2675,7 +2714,7 @@
26762715 'mobile-frontend-disable-button' => 'निष्क्रिय',
26772716 'mobile-frontend-back-button' => 'पछाडि',
26782717 'mobile-frontend-regular-site' => 'यो पृष्ठलाई नियमित विकिपीडियामा हेर्ने \\',
2679 - 'mobile-frontend-perm-stop-redirect' => 'मोबाइल साइट स्थाइरुमा असक्षम पार्ने \\',
 2718+ 'mobile-frontend-perm-stop-redirect' => 'मोबाइल साइट स्थाइरुमा असक्षम पार्ने',
26802719 'mobile-frontend-error-page-title' => 'हामीलाई समस्या आइरेको छ।',
26812720 'mobile-frontend-error-page-text' => 'विकिपीडिया मोबाइल अझै विकासको क्रममा नै रहेको छ र सबै आन्तरिक त्रुटिहरु सच्याउनामा हामी लागि परेका छौँ । यस त्रुटिका बारेमा हामीलाई जानकारी गराइएको छ र निकट भविष्यमा नै सच्याइने छ । कृपया पुन जाँच गर्नुहोला ।',
26822721 'mobile-frontend-are-you-sure' => 'पक्का हो?',
@@ -2824,7 +2863,9 @@
28252864 'mobile-frontend-file-namespace' => 'Fichièr',
28262865 );
28272866
2828 -/** Oriya (ଓଡ଼ିଆ) */
 2867+/** Oriya (ଓଡ଼ିଆ)
 2868+ * @author Psubhashish
 2869+ */
28292870 $messages['or'] = array(
28302871 'mobile-frontend-search-results' => 'ଖୋଜିବାରୁ ମିଳିଲା',
28312872 'mobile-frontend-show-button' => 'ଦେଖାଇବେ',
@@ -2834,6 +2875,7 @@
28352876 'mobile-frontend-nav-history' => 'ଇତିହାସ',
28362877 'mobile-frontend-search-text' => 'ଖୋଜିବା',
28372878 'mobile-frontend-file-namespace' => 'ଫାଇଲ',
 2879+ 'mobile-frontend-view' => 'ମୋବାଇଲ ଦେଖଣା',
28382880 );
28392881
28402882 /** Ossetic (Ирон) */
@@ -2952,22 +2994,24 @@
29532995 'mobile-frontend-hide-button' => 'Ukryj',
29542996 'mobile-frontend-disable-button' => 'Wyłącz',
29552997 'mobile-frontend-back-button' => 'Powrót',
2956 - 'mobile-frontend-regular-site' => 'Zobacz tę stronę w standardowej Wikipedii',
 2998+ 'mobile-frontend-regular-site' => 'Zobacz tę stronę w {{GRAMMAR:MS.lp|{{SITENAME}}}}',
29572999 'mobile-frontend-perm-stop-redirect' => 'Trwale wyłącz mobilną wersję strony',
29583000 'mobile-frontend-error-page-title' => 'Wystąpił problem!',
2959 - 'mobile-frontend-error-page-text' => 'Mobilna wersja Wikipedii jest w ciągłym rozwoju i intensywnie pracujemy nad naprawą wszystkich błędów. Zostaliśmy poinformowani o tym błędzie i niedługo go naprawimy. Wróć później aby sprawdzić czy już działa!',
 3001+ 'mobile-frontend-error-page-text' => 'Mobilna wersja {{GRAMMAR:D.lp|{{SITENAME}}}} jest wciąż rozwijana, ale równie intensywnie pracujemy nad naprawą wszystkich błędów. Zostaliśmy poinformowani o tym błędzie i niedługo go naprawimy. Wróć później, aby sprawdzić!',
29603002 'mobile-frontend-are-you-sure' => 'Czy jesteś pewien?',
2961 - 'mobile-frontend-explain-disable' => 'Czy na pewno chcesz wyłączyć mobilną wersję Wikipedii? Jeśli wybierzesz opcję <b>Wyłącz</b>, to następnym razem odwiedzając Wikipedię, nie zostaniesz przekierowany do obecnie włączonej wersji mobilnej Wikipedii.',
 3003+ 'mobile-frontend-explain-disable' => 'Czy na pewno chcesz wyłączyć mobilną wersję {{GRAMMAR:D.lp|{{SITENAME}}}}? Jeśli wybierzesz opcję <b>Wyłącz</b>, to gdy następnym razem odwiedzisz {{GRAMMAR:B.lp|{{SITENAME}}}}, nie zostaniesz przekierowany do obecnie włączonej wersji mobilnej {{GRAMMAR:D.lp|{{SITENAME}}}}.',
29623004 'mobile-frontend-nav-end' => 'Zakończ',
29633005 'mobile-frontend-nav-top' => 'Do góry',
29643006 'mobile-frontend-nav-edit' => 'Edytuj',
29653007 'mobile-frontend-nav-history' => 'Historia',
29663008 'mobile-frontend-search-text' => 'Szukaj',
29673009 'mobile-frontend-contact-us' => 'Jeśli masz jakieś pytania lub uwagi, prosimy o kontakt na adres mobile@wikipedia.org',
2968 - 'mobile-frontend-author-link' => 'Sprawdź plik w samej Wikipedii, aby uzyskać informacje o autorach, licencji i dodatkowy opis.',
 3010+ 'mobile-frontend-author-link' => 'Sprawdź plik w samej {{GRAMMAR:MS.lp|{{SITENAME}}}}, aby uzyskać informację o autorach, licencji i dodatkowy opis.',
29693011 'mobile-frontend-download-full-version' => 'Pobierz pełną wersję',
29703012 'mobile-frontend-file-namespace' => 'Plik',
2971 - 'mobile-frontend-view' => 'Przeglądaj w komórce',
 3013+ 'mobile-frontend-wml-continue' => 'Dalej ...',
 3014+ 'mobile-frontend-wml-back' => 'Wstecz ...',
 3015+ 'mobile-frontend-view' => 'Przeglądaj komórką',
29723016 );
29733017
29743018 /** Piedmontese (Piemontèis) */
@@ -3049,19 +3093,19 @@
30503094 'mobile-frontend-hide-button' => 'Esconder',
30513095 'mobile-frontend-disable-button' => 'Desactivar',
30523096 'mobile-frontend-back-button' => 'Voltar',
3053 - 'mobile-frontend-regular-site' => 'Ver esta página na Wikipédia normal',
 3097+ 'mobile-frontend-regular-site' => 'Ver esta página na {{SITENAME}} normal',
30543098 'mobile-frontend-perm-stop-redirect' => 'Desactivar permanentemente o site móvel',
30553099 'mobile-frontend-error-page-title' => 'Temos um problema!',
3056 - 'mobile-frontend-error-page-text' => 'A Wikipédia móvel ainda está em desenvolvimento e estamos corrigindo os erros internos. Fomos notificados deste erro e ele será corrigido brevemente. Verifique dentro de algum tempo se a correcção já está disponivel, por favor!',
 3100+ 'mobile-frontend-error-page-text' => 'A {{SITENAME}} móvel ainda está em desenvolvimento e estamos corrigindo os erros internos. Fomos notificados deste erro e ele será corrigido brevemente. Verifique dentro de algum tempo se a correcção já está disponivel, por favor!',
30573101 'mobile-frontend-are-you-sure' => 'Tem a certeza ?',
3058 - 'mobile-frontend-explain-disable' => 'Tem a certeza de que pretende desactivar a versão para telemóvel da Wikipédia? Se escolher <b>Desactivar</b>, a partir de agora ao visitar a Wikipédia deixará de ser reencaminhado para esta versão móvel.',
 3102+ 'mobile-frontend-explain-disable' => 'Tem a certeza de que pretende desactivar a versão para telemóvel da {{SITENAME}}? Se escolher <b>Desactivar</b>, a partir de agora ao visitar a {{SITENAME}} deixará de ser reencaminhado para esta versão móvel.',
30593103 'mobile-frontend-nav-end' => 'Fim',
30603104 'mobile-frontend-nav-top' => 'Topo',
30613105 'mobile-frontend-nav-edit' => 'Editar',
30623106 'mobile-frontend-nav-history' => 'Navegação',
30633107 'mobile-frontend-search-text' => 'Pesquisar',
30643108 'mobile-frontend-contact-us' => 'Para perguntas ou comentários, pode contactar-nos por correio electrónico em mobile@wikipedia.org',
3065 - 'mobile-frontend-author-link' => 'Visione este ficheiro na Wikipédia normal para ver informação sobre a autoria, licenciamento e descrições adicionais.',
 3109+ 'mobile-frontend-author-link' => 'Visione este ficheiro na {{SITENAME}} normal para ver informação sobre a autoria, licenciamento e descrições adicionais.',
30663110 'mobile-frontend-download-full-version' => 'Download da versão completa',
30673111 'mobile-frontend-file-namespace' => 'Ficheiro',
30683112 'mobile-frontend-wml-continue' => 'Continuar ...',
@@ -3152,9 +3196,9 @@
31533197 'mobile-frontend-regular-site' => 'Vezi această pagină pe {{SITENAME}}',
31543198 'mobile-frontend-perm-stop-redirect' => 'Dezactivează permanent situl pentru mobil',
31553199 'mobile-frontend-error-page-title' => 'Avem o problemă!',
3156 - 'mobile-frontend-error-page-text' => '{{SITENAME}} mobilă este încă în curs de dezvoltare și lucrăm din greu pentru a repara orice eroare internă. Am fost anunțați despre această eroare și va fi în curând îndreptată. Vă rugăm să verificați din nou!',
 3200+ 'mobile-frontend-error-page-text' => '{{SITENAME}} în versiunea mobilă este încă în curs de dezvoltare și lucrăm din greu pentru a repara orice eroare internă. Am fost anunțați despre această eroare și va fi în curând remediată. Vă rugăm să verificați din nou!',
31573201 'mobile-frontend-are-you-sure' => 'Sunteți sigur?',
3158 - 'mobile-frontend-explain-disable' => 'Sunteți sigur că doriți să dezactivați versiunea mobilă a Wikipediei? Dacă alegeți <b>Dezactivează</b>, de acum, atunci când veți vizita {{SITENAME}}, nu veți mai fi redirecționat către acest sit dedicat dispozitivelor mobile.',
 3202+ 'mobile-frontend-explain-disable' => 'Sunteți sigur că doriți să dezactivați versiunea mobilă a proiectului {{SITENAME}}? Dacă alegeți <b>Dezactivează</b>, de acum, atunci când veți vizita {{SITENAME}}, nu veți mai fi redirecționat către acest sit dedicat dispozitivelor mobile.',
31593203 'mobile-frontend-nav-end' => 'Jos',
31603204 'mobile-frontend-nav-top' => 'Sus',
31613205 'mobile-frontend-nav-edit' => 'Modificare',
@@ -3164,6 +3208,9 @@
31653209 'mobile-frontend-author-link' => 'Vizualizați acest fișier media pe {{SITENAME}} pentru acces la informații despre autor, licențiere și descrieri suplimentare.',
31663210 'mobile-frontend-download-full-version' => 'Descarcă versiunea completă',
31673211 'mobile-frontend-file-namespace' => 'Fișier',
 3212+ 'mobile-frontend-wml-continue' => 'Continuare...',
 3213+ 'mobile-frontend-wml-back' => 'Înapoi...',
 3214+ 'mobile-frontend-view' => 'Versiune mobilă',
31683215 );
31693216
31703217 /** Russian (Русский)
@@ -3405,19 +3452,19 @@
34063453 'mobile-frontend-hide-button' => 'skrij',
34073454 'mobile-frontend-disable-button' => 'Onemogoči',
34083455 'mobile-frontend-back-button' => 'Nazaj',
3409 - 'mobile-frontend-regular-site' => 'Oglejte si to stran v navadnem načinu',
 3456+ 'mobile-frontend-regular-site' => 'Oglejte si to stran na redni strani {{GRAMMAR:rodilnik|{{SITENAME}}}}',
34103457 'mobile-frontend-perm-stop-redirect' => 'Trajno onemogoči mobilno spletno stran',
34113458 'mobile-frontend-error-page-title' => 'Imamo problem!',
3412 - 'mobile-frontend-error-page-text' => 'Mobilna Wikipedija je še vedno v aktivnem razvoju in trudimo pri odpravljanju vseh naših notranjih napak. O tej napaki smo bili obveščeni in jo bomo kmalu odpravili. Prosimo, obiščite nas kmalu!',
 3459+ 'mobile-frontend-error-page-text' => 'Mobilna stran {{SITENAME}} je še vedno v aktivnem razvoju in trudimo se pri odpravljanju vseh naših notranjih napak. O tej napaki smo bili obveščeni in jo bomo kmalu odpravili. Prosimo, obiščite nas kmalu!',
34133460 'mobile-frontend-are-you-sure' => 'Ali ste prepričani?',
3414 - 'mobile-frontend-explain-disable' => 'Ste prepričani, da želite onemogočiti mobilno različico Wikipedije? Če izberete <b>Onemogoči</b>, od zdaj naprej, ko boste obiskali Wikipedijo, ne boste preusmerjeni na ta mobilni pogled Wikipedije.',
 3461+ 'mobile-frontend-explain-disable' => 'Ste prepričani, da želite onemogočiti mobilno različico {{GRAMMAR:rodilnik|{{SITENAME}}}}? Če izberete <b>Onemogoči</b>, od zdaj naprej, ko boste obiskali stran {{SITENAME}}, ne boste preusmerjeni na ta mobilni pogled {{GRAMMAR:rodilnik|{{SITENAME}}}}.',
34153462 'mobile-frontend-nav-end' => 'Dno',
34163463 'mobile-frontend-nav-top' => 'Vrh',
34173464 'mobile-frontend-nav-edit' => 'Uredi',
34183465 'mobile-frontend-nav-history' => 'Zgodovina',
34193466 'mobile-frontend-search-text' => 'Iskanje',
34203467 'mobile-frontend-contact-us' => 'Če imate kakršna koli vprašanja ali pripombe, nam prosimo pišite na mobile@wikipedia.org',
3421 - 'mobile-frontend-author-link' => 'Oglejte si to predstavnostno datoteko na redni Wikipediji za vpogled v informacije o avtorstvu, licenciranju in dodatnih opisih.',
 3468+ 'mobile-frontend-author-link' => 'Oglejte si to predstavnostno datoteko na redni strani {{SITENAME}} za vpogled v informacije o avtorstvu, licenciranju in dodatnih opisih.',
34223469 'mobile-frontend-download-full-version' => 'Prenos polne različice',
34233470 'mobile-frontend-file-namespace' => 'Datoteka',
34243471 'mobile-frontend-wml-continue' => 'Nadaljuj ...',
@@ -3546,8 +3593,11 @@
35473594 'mobile-frontend-contact-us' => 'Lamun aya nu rék ditanyakeun atawa rék mairan, mangga kirim surélék ka mobile@wikipedia.org',
35483595 );
35493596
3550 -/** Swedish (Svenska) */
 3597+/** Swedish (Svenska)
 3598+ * @author WikiPhoenix
 3599+ */
35513600 $messages['sv'] = array(
 3601+ 'mobile-frontend-desc' => 'Mobilt gränssnitt',
35523602 'mobile-frontend-search-submit' => 'Gå till',
35533603 'mobile-frontend-search-results' => 'Sökresultat',
35543604 'mobile-frontend-no-article-found' => 'Ingen artikel funnen',
@@ -3563,7 +3613,7 @@
35643614 'mobile-frontend-regular-site' => 'Visa denna sida på vanliga {{SITENAME}}',
35653615 'mobile-frontend-perm-stop-redirect' => 'Deaktivera mobilsidan permanent',
35663616 'mobile-frontend-error-page-title' => 'Vi har ett problem!',
3567 - 'mobile-frontend-error-page-text' => '{{SITENAME}} mobil är fortfarande under aktiv utveckling och vi jobbar hårt for att fixa alla interna fel. Vi har blivit meddelade om detta fel och kommer att fixa det snart. Kom gärna tillbaka lite senare!',
 3617+ 'mobile-frontend-error-page-text' => 'Mobilversionen av {{SITENAME}} är fortfarande under aktiv utveckling och vi jobbar hårt for att fixa alla interna fel. Vi har blivit meddelade om detta fel och kommer att fixa det snart. Kom gärna tillbaka lite senare!',
35683618 'mobile-frontend-are-you-sure' => 'Är du säker?',
35693619 'mobile-frontend-explain-disable' => 'Är du säker på att du vill inaktivera den mobila versionen av {{SITENAME}}? Om du väljer <b>Inaktivera</b>, kommer du från och med nu, varje gång du besöker {{SITENAME}}, inte bli omdirigerad till denna mobila version av {{SITENAME}}.',
35703620 'mobile-frontend-nav-end' => 'Slutet',
@@ -3572,9 +3622,12 @@
35733623 'mobile-frontend-nav-history' => 'Historik',
35743624 'mobile-frontend-search-text' => 'Sök',
35753625 'mobile-frontend-contact-us' => 'Om du har några frågor eller kommentarer får du gärna skicka ett e-post till mobile@wikipedia.org',
3576 - 'mobile-frontend-author-link' => 'Visa den här mediefilen på {{SITENAME}} för att se information om dess upphovsman, licensiering och ytterligare beskrivningar.',
 3626+ 'mobile-frontend-author-link' => 'Visa den här mediafilen på vanliga {{SITENAME}} för att se information om dess upphovsman, licensiering och ytterligare beskrivningar.',
35773627 'mobile-frontend-download-full-version' => 'Ladda ner Full Version',
35783628 'mobile-frontend-file-namespace' => 'Fil',
 3629+ 'mobile-frontend-wml-continue' => 'Fortsätt ...',
 3630+ 'mobile-frontend-wml-back' => 'Tillbaka ...',
 3631+ 'mobile-frontend-view' => 'Mobil vy',
35793632 );
35803633
35813634 /** Swahili (Kiswahili) */
@@ -3798,7 +3851,9 @@
37993852 'mobile-frontend-file-namespace' => 'Fail',
38003853 );
38013854
3802 -/** Turkish (Türkçe) */
 3855+/** Turkish (Türkçe)
 3856+ * @author Emperyan
 3857+ */
38033858 $messages['tr'] = array(
38043859 'mobile-frontend-search-submit' => 'Git',
38053860 'mobile-frontend-search-results' => 'Arama Sonuçları',
@@ -3827,6 +3882,7 @@
38283883 'mobile-frontend-author-link' => "Bu medya dosyasını Vikipedi'de yazarlık, lisans ve ek açıklamaları hakkında bilgi için görüntüleyin.",
38293884 'mobile-frontend-download-full-version' => 'Tam Sürümü İndir',
38303885 'mobile-frontend-file-namespace' => 'Dosya',
 3886+ 'mobile-frontend-view' => 'Mobil Görünüm',
38313887 );
38323888
38333889 /** Tatar (Cyrillic) (Татарча/Tatarça (Cyrillic)) */
@@ -4161,6 +4217,7 @@
41624218 );
41634219
41644220 /** Simplified Chinese (‪中文(简体)‬)
 4221+ * @author PhiLiP
41654222 * @author Shizhao
41664223 */
41674224 $messages['zh-hans'] = array(
@@ -4191,6 +4248,8 @@
41924249 'mobile-frontend-author-link' => '在维基百科主站上查看这一媒体文件的作者、许可协议和其他附加信息。',
41934250 'mobile-frontend-download-full-version' => '下载完整版本',
41944251 'mobile-frontend-file-namespace' => '文件',
 4252+ 'mobile-frontend-wml-continue' => '继续……',
 4253+ 'mobile-frontend-wml-back' => '后退……',
41954254 'mobile-frontend-view' => '移动浏览',
41964255 );
41974256
Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/MobileFrontend.php
@@ -49,7 +49,7 @@
5050 $wgHooks['SkinTemplateOutputPageBeforeExec'][] = array( &$wgExtMobileFrontend, 'addMobileFooter' );
5151
5252 class ExtMobileFrontend {
53 - const VERSION = '0.5.10';
 53+ const VERSION = '0.5.13';
5454
5555 /**
5656 * @var DOMDocument
@@ -131,18 +131,28 @@
132132 $copyright = $skin->getCopyright();
133133 // Need to stash the results of the "wfMsg" call before the Output Buffering handler
134134 // because at this point the database connection is shut down, etc.
135 - self::$messages['mobile-frontend-show'] = wfMsg( 'mobile-frontend-show-button' );
136 - self::$messages['mobile-frontend-hide'] = wfMsg( 'mobile-frontend-hide-button' );
137 - self::$messages['mobile-frontend-back-to-top'] = wfMsg( 'mobile-frontend-back-to-top-of-section' );
138 - self::$messages['mobile-frontend-regular-site'] = wfMsg( 'mobile-frontend-regular-site' );
139 - self::$messages['mobile-frontend-perm-stop-redirect'] = wfMsg( 'mobile-frontend-perm-stop-redirect' );
140 - self::$messages['mobile-frontend-copyright'] = $copyright;
141 - self::$messages['mobile-frontend-home-button'] = wfMsg( 'mobile-frontend-home-button' );
142 - self::$messages['mobile-frontend-random-button'] = wfMsg( 'mobile-frontend-random-button' );
143 - self::$messages['mobile-frontend-are-you-sure'] = wfMsg( 'mobile-frontend-are-you-sure' );
144 - self::$messages['mobile-frontend-explain-disable'] = wfMsg( 'mobile-frontend-explain-disable' );
145 - self::$messages['mobile-frontend-disable-button'] = wfMsg( 'mobile-frontend-disable-button' );
146 - self::$messages['mobile-frontend-back-button'] = wfMsg( 'mobile-frontend-back-button' );
 135+ self::$messages['mobile-frontend-show'] = wfMsg( 'mobile-frontend-show-button' );
 136+ self::$messages['mobile-frontend-hide'] = wfMsg( 'mobile-frontend-hide-button' );
 137+ self::$messages['mobile-frontend-back-to-top'] = wfMsg( 'mobile-frontend-back-to-top-of-section' );
 138+ self::$messages['mobile-frontend-regular-site'] = wfMsg( 'mobile-frontend-regular-site' );
 139+ self::$messages['mobile-frontend-perm-stop-redirect'] = wfMsg( 'mobile-frontend-perm-stop-redirect' );
 140+ self::$messages['mobile-frontend-copyright'] = $copyright;
 141+ self::$messages['mobile-frontend-home-button'] = wfMsg( 'mobile-frontend-home-button' );
 142+ self::$messages['mobile-frontend-random-button'] = wfMsg( 'mobile-frontend-random-button' );
 143+ self::$messages['mobile-frontend-are-you-sure'] = wfMsg( 'mobile-frontend-are-you-sure' );
 144+ self::$messages['mobile-frontend-explain-disable'] = wfMsg( 'mobile-frontend-explain-disable' );
 145+ self::$messages['mobile-frontend-disable-button'] = wfMsg( 'mobile-frontend-disable-button' );
 146+ self::$messages['mobile-frontend-back-button'] = wfMsg( 'mobile-frontend-back-button' );
 147+ self::$messages['mobile-frontend-opt-in-message'] = wfMsg( 'mobile-frontend-opt-in-message' );
 148+ self::$messages['mobile-frontend-opt-in-yes-button'] = wfMsg( 'mobile-frontend-opt-in-yes-button' );
 149+ self::$messages['mobile-frontend-opt-in-no-button'] = wfMsg( 'mobile-frontend-opt-in-no-button' );
 150+ self::$messages['mobile-frontend-opt-in-title'] = wfMsg( 'mobile-frontend-opt-in-title' );
 151+ self::$messages['mobile-frontend-opt-out-message'] = wfMsg( 'mobile-frontend-opt-out-message' );
 152+ self::$messages['mobile-frontend-opt-out-yes-button'] = wfMsg( 'mobile-frontend-opt-out-yes-button' );
 153+ self::$messages['mobile-frontend-opt-out-no-button'] = wfMsg( 'mobile-frontend-opt-out-no-button' );
 154+ self::$messages['mobile-frontend-opt-out-title'] = wfMsg( 'mobile-frontend-opt-out-title' );
 155+ self::$messages['mobile-frontend-opt-in-explain'] = wfMsg( 'mobile-frontend-opt-in-explain' );
 156+ self::$messages['mobile-frontend-opt-out-explain'] = wfMsg( 'mobile-frontend-opt-out-explain' );
147157
148158 self::$dir = $wgContLang->getDir();
149159 self::$code = $wgContLang->getCode();
@@ -251,6 +261,28 @@
252262 exit();
253263 }
254264 }
 265+
 266+ if ( $mAction == 'opt_in_mobile_site' ) {
 267+ if ( $this->contentFormat == 'XHTML' ) {
 268+ echo $this->renderOptInMobileSiteXHTML();
 269+ exit();
 270+ }
 271+ }
 272+
 273+ if ( $mAction == 'opt_out_mobile_site' ) {
 274+ if ( $this->contentFormat == 'XHTML' ) {
 275+ echo $this->renderOptOutMobileSiteXHTML();
 276+ exit();
 277+ }
 278+ }
 279+
 280+ if ( $mAction == 'opt_in_cookie' ) {
 281+ $wgRequest->response()->setcookie( 'optin', '1' );
 282+ }
 283+
 284+ if ( $mAction == 'opt_out_cookie' ) {
 285+ $wgRequest->response()->setcookie( 'optin', '' );
 286+ }
255287
256288 // Note: Temporarily disabling this section for trial deployment
257289 // if ( is_array($props) &&
@@ -287,9 +319,12 @@
288320 // html_preferred_dtd
289321
290322 // Determine
 323+
 324+ $xDevice = $_SERVER['HTTP_X_DEVICE'];
291325
292326 if (self::$useFormat === 'mobile' ||
293 - self::$useFormat === 'mobile-wap' ) {
 327+ self::$useFormat === 'mobile-wap' ||
 328+ isset( $xDevice) ) {
294329 $this->getMsg();
295330 $this->disableCaching();
296331 ob_start( array( $this, 'DOMParse' ) );
@@ -306,9 +341,62 @@
307342 header( 'Pragma: no-cache' );
308343 }
309344 }
 345+
 346+ private function renderOptInMobileSiteXHTML() {
 347+ if ( $this->contentFormat == 'XHTML' ) {
 348+ $this->getMsg();
 349+ $dir = self::$dir;
 350+ $code = self::$code;
 351+ $regularSite = self::$messages['mobile-frontend-regular-site'];
 352+ $permStopRedirect = self::$messages['mobile-frontend-perm-stop-redirect'];
 353+ $copyright = self::$messages['mobile-frontend-copyright'];
 354+ $homeButton = self::$messages['mobile-frontend-home-button'];
 355+ $randomButton = self::$messages['mobile-frontend-random-button'];
 356+ $yesButton = self::$messages['mobile-frontend-opt-in-yes-button'];
 357+ $noButton = self::$messages['mobile-frontend-opt-in-no-button'];
 358+ $htmlTitle = self::$messages['mobile-frontend-opt-in-title'];
 359+ $explainOptIn = self::$messages['mobile-frontend-opt-in-explain'];
 360+ $optInMessage = self::$messages['mobile-frontend-opt-in-message'];
 361+ $cssFileName = ( isset( self::$device['css_file_name'] ) ) ? self::$device['css_file_name'] : 'default';
 362+ require( 'views/layout/_search_webkit.html.php' );
 363+ require( 'views/layout/_footmenu_default.html.php' );
 364+ require( 'views/information/optin.html.php' );
 365+ $contentHtml = $optInHtml;
 366+ require( 'views/layout/application.html.php' );
 367+ return $applicationHtml;
 368+ }
 369+ return '';
 370+ }
 371+
 372+ private function renderOptOutMobileSiteXHTML() {
 373+ if ( $this->contentFormat == 'XHTML' ) {
 374+ $this->getMsg();
 375+ $dir = self::$dir;
 376+ $code = self::$code;
 377+ $regularSite = self::$messages['mobile-frontend-regular-site'];
 378+ $permStopRedirect = self::$messages['mobile-frontend-perm-stop-redirect'];
 379+ $copyright = self::$messages['mobile-frontend-copyright'];
 380+ $homeButton = self::$messages['mobile-frontend-home-button'];
 381+ $randomButton = self::$messages['mobile-frontend-random-button'];
 382+ $yesButton = self::$messages['mobile-frontend-opt-out-yes-button'];
 383+ $noButton = self::$messages['mobile-frontend-opt-out-no-button'];
 384+ $htmlTitle = self::$messages['mobile-frontend-opt-out-title'];
 385+ $explainOptOut = self::$messages['mobile-frontend-opt-out-explain'];
 386+ $optOutMessage = self::$messages['mobile-frontend-opt-out-message'];
 387+ $cssFileName = ( isset( self::$device['css_file_name'] ) ) ? self::$device['css_file_name'] : 'default';
 388+ require( 'views/layout/_search_webkit.html.php' );
 389+ require( 'views/layout/_footmenu_default.html.php' );
 390+ require( 'views/information/optout.html.php' );
 391+ $contentHtml = $optOutHtml;
 392+ require( 'views/layout/application.html.php' );
 393+ return $applicationHtml;
 394+ }
 395+ return '';
 396+ }
310397
311398 private function renderDisableMobileSiteXHTML() {
312399 if ( $this->contentFormat == 'XHTML' ) {
 400+ $this->getMsg();
313401 $dir = self::$dir;
314402 $code = self::$code;
315403 $regularSite = self::$messages['mobile-frontend-regular-site'];
@@ -323,7 +411,6 @@
324412 $htmlTitle = $areYouSure;
325413 $title = $areYouSure;
326414 $cssFileName = ( isset( self::$device['css_file_name'] ) ) ? self::$device['css_file_name'] : 'default';
327 - require( 'views/notices/_donate.html.php' );
328415 require( 'views/layout/_search_webkit.html.php' );
329416 require( 'views/layout/_footmenu_default.html.php' );
330417 require( 'views/information/disable.html.php' );
Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/views/information/optin.html.php
@@ -0,0 +1,18 @@
 2+<?php
 3+$optInHtml = <<<EOT
 4+ <h1>
 5+ {$optInMessage}
 6+ </h1>
 7+ <p>
 8+ {$explainOptIn}
 9+ </p>
 10+ <div id='disableButtons'>
 11+ <form action='/' method='get'>
 12+ <input name='mAction' type='hidden' value='opt_in_cookie' />
 13+ <button id='disableButton' type='submit'>{$yesButton}</button>
 14+ </form>
 15+ <form action='/' method='get'>
 16+ <button id='backButton' type='submit'>{$noButton}</button>
 17+ </form>
 18+ </div>
 19+EOT;
Property changes on: branches/wmf/1.17wmf1/extensions/MobileFrontend/views/information/optin.html.php
___________________________________________________________________
Added: svn:eol-style
120 + native
Index: branches/wmf/1.17wmf1/extensions/MobileFrontend/views/information/optout.html.php
@@ -0,0 +1,18 @@
 2+<?php
 3+$optOutHtml = <<<EOT
 4+ <h1>
 5+ {$optOutMessage}
 6+ </h1>
 7+ <p>
 8+ {$explainOptOut}
 9+ </p>
 10+ <div id='disableButtons'>
 11+ <form action='/' method='get'>
 12+ <input name='mAction' type='hidden' value='opt_out_cookie' />
 13+ <button id='disableButton' type='submit'>{$yesButton}</button>
 14+ </form>
 15+ <form action='/' method='get'>
 16+ <button id='backButton' type='submit'>{$noButton}</button>
 17+ </form>
 18+ </div>
 19+EOT;
Property changes on: branches/wmf/1.17wmf1/extensions/MobileFrontend/views/information/optout.html.php
___________________________________________________________________
Added: svn:eol-style
120 + native

Status & tagging log