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

Revision: 76347
Author:   kaldari
Date:     2010-11-08 23:02:41 +0000 (Mon, 08 Nov 2010)
Log Message:
-----------
work towards bug 20229

Modified Paths:
--------------
    trunk/extensions/CentralNotice/CentralNotice.i18n.php
    trunk/extensions/CentralNotice/SpecialCentralNotice.php

Modified: trunk/extensions/CentralNotice/CentralNotice.i18n.php
===================================================================
--- trunk/extensions/CentralNotice/CentralNotice.i18n.php       2010-11-08 
22:18:46 UTC (rev 76346)
+++ trunk/extensions/CentralNotice/CentralNotice.i18n.php       2010-11-08 
23:02:41 UTC (rev 76347)
@@ -127,7 +127,8 @@
        'centralnotice-allocation' => 'Allocation',
        'centralnotice-view-allocation' => 'View banner allocation',
        'centralnotice-allocation-instructions' => 'Choose the environment you 
would like to view banner allocation for:',
-       'centralnotice-project-language' => 'Project language',
+       'centralnotice-languages' => 'Languages',
+       'centralnotice-projects' => 'Projects',
        'centralnotice-country' => 'Country',
        'centralnotice-no-allocation' => 'No banners allocated.',
        'centralnotice-allocation-description' => 'Banner allocation for $1.$2 
in $3:',
@@ -314,7 +315,6 @@
        'centralnotice-countries' => 'Lande',
        'centralnotice-allocation' => 'Toekenning',
        'centralnotice-view-allocation' => 'Wys baniertoekenning',
-       'centralnotice-project-language' => 'Projektaal',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Geen baniere toegeken nie.',
        'centralnotice-allocation-description' => 'Baniertoekenning vir $1.$2 
in $3:',
@@ -726,7 +726,6 @@
        'centralnotice-allocation' => 'Урынлашыу',
        'centralnotice-view-allocation' => 'Баннерҙарҙың урынлашыуын ҡарау',
        'centralnotice-allocation-instructions' => 'Ниндәй өлкә өсөн баннерҙар 
урынлашыуын ҡарарға теләүегеҙҙе һайлағыҙ:',
-       'centralnotice-project-language' => 'Проект теле',
        'centralnotice-country' => 'Ил',
        'centralnotice-no-allocation' => 'Баннерҙар урынлаштырылмаған',
        'centralnotice-allocation-description' => '$1.$2 өсөн $3 эсендә 
баннерҙар урынлашыуы',
@@ -901,7 +900,6 @@
        'centralnotice-allocation' => 'Прызначэньне',
        'centralnotice-view-allocation' => 'Паказаць разьмяшчэньне банэра',
        'centralnotice-allocation-instructions' => 'Выберыце рэжым, для якога 
Вы жадаеце праглядзець разьмяшчэньне банэра:',
-       'centralnotice-project-language' => 'Мова праекту',
        'centralnotice-country' => 'Краіна',
        'centralnotice-no-allocation' => 'Няма разьмешчаных банэраў.',
        'centralnotice-allocation-description' => 'Разьмяшчэньне банэра для 
$1.$2 у $3:',
@@ -1212,7 +1210,6 @@
        'centralnotice-allocation' => 'Skorenn',
        'centralnotice-view-allocation' => 'Gwelout skorenn ar giton',
        'centralnotice-allocation-instructions' => "Dibabit an endro e-lec'h 
m'ho pefe c'hoant da welet skorenn ar giton evit :",
-       'centralnotice-project-language' => 'Yezh ar raktres',
        'centralnotice-country' => 'Bro',
        'centralnotice-no-allocation' => 'Giton skorennet ebet.',
        'centralnotice-allocation-description' => 'Skorenn giton evit $1.$2 e 
$3 :',
@@ -1346,7 +1343,6 @@
        'centralnotice-allocation' => 'Raspoređivanje',
        'centralnotice-view-allocation' => 'Pogledaj dodjelu obavještenja',
        'centralnotice-allocation-instructions' => 'Odaberi okruženje za koje 
želite vidjeti dodjelu obavještenja:',
-       'centralnotice-project-language' => 'Jezik projekta',
        'centralnotice-country' => 'Država',
        'centralnotice-no-allocation' => 'Nema dodijeljenih obavještenja.',
        'centralnotice-allocation-description' => 'Dodjela obavještenja za 
$1.$2 u $3:',
@@ -1581,7 +1577,6 @@
        'centralnotice-allocation' => 'Přidělení',
        'centralnotice-view-allocation' => 'Zobrazit přidělení bannerů',
        'centralnotice-allocation-instructions' => 'Vyberte si prostředí, pro 
které chcete zobrazit přidělení bannerů:',
-       'centralnotice-project-language' => 'Jazyk projektu',
        'centralnotice-country' => 'Země',
        'centralnotice-no-allocation' => 'Žádné bannery nejsou přiděleny.',
        'centralnotice-allocation-description' => 'Přidělení bannerů na $1.$2 v 
$3:',
@@ -1816,7 +1811,6 @@
        'centralnotice-allocation' => 'Anordnung',
        'centralnotice-view-allocation' => 'Anordnung der Vorlagen ansehen',
        'centralnotice-allocation-instructions' => 'Die Ausgabeumgebung für die 
Ansicht der Vorlagenanordnung auswählen:',
-       'centralnotice-project-language' => 'Projektsprache',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Es wurden keine Vorlagen angeordnet.',
        'centralnotice-allocation-description' => 'Vorlagenanordnung für $1.$2 
in $3:',
@@ -2272,7 +2266,6 @@
        'centralnotice-allocation' => 'Asigno',
        'centralnotice-view-allocation' => 'Vidi asignon de reklamrubando',
        'centralnotice-allocation-instructions' => 'Elekti la medion, ke vi 
volus vidi rubandan asignadon:',
-       'centralnotice-project-language' => 'Lingvo de projekto',
        'centralnotice-country' => 'Lando',
        'centralnotice-no-allocation' => 'Neniuj rekamrubandoj estas 
asignitaj.',
        'centralnotice-allocation-description' => 'Asignado de reklamrubando 
por $1.$2 en $3',
@@ -2416,7 +2409,6 @@
        'centralnotice-allocation' => 'Asignación',
        'centralnotice-view-allocation' => 'Asignación de visualización de 
pancarta',
        'centralnotice-allocation-instructions' => 'Escoje el entorno para en 
el cual desea ver la asignación de pancartas:',
-       'centralnotice-project-language' => 'Idioma del proyecto',
        'centralnotice-country' => 'País',
        'centralnotice-no-allocation' => 'No hay pancartas asignadas.',
        'centralnotice-allocation-description' => 'Asignación de pancartas para 
$1.$2 en $3:',
@@ -2536,7 +2528,6 @@
        'centralnotice-allocation' => 'Ülesseadmine',
        'centralnotice-view-allocation' => 'Mallide ülesseade vaatamine',
        'centralnotice-allocation-instructions' => 'Vali avaldamiskeskkond, 
mille ülesseadet soovid näha:',
-       'centralnotice-project-language' => 'Projekti keel',
        'centralnotice-country' => 'Riik',
        'centralnotice-no-allocation' => 'Ühtegi malli pole üles seatud.',
        'centralnotice-allocation-description' => 'Üles seatud mallid maal 
koodiga $3 ja saidil $1.$2.',
@@ -2606,7 +2597,6 @@
        'centralnotice-clone-notice' => 'Txantiloia honen kopia sortu',
        'centralnotice-clone-name' => 'Izena:',
        'centralnotice-countries' => 'Herrialdeak',
-       'centralnotice-project-language' => 'Proiektuaren hizkuntza',
        'centralnotice-country' => 'Herrialdea',
        'centralnotice-percentage' => 'Ehunekoa',
 );
@@ -2736,7 +2726,6 @@
        'centralnotice-allocation' => 'تخصیص',
        'centralnotice-view-allocation' => 'نمایش تخصیص آگهی',
        'centralnotice-allocation-instructions' => 'محیطی که می‌خواهید تخصیص 
نشان را برایش مشاهده کنید، برگزینید:',
-       'centralnotice-project-language' => 'زبان پروژه',
        'centralnotice-country' => 'کشور',
        'centralnotice-no-allocation' => 'هیچ آگهی‌ای اختصاص نیافته است.',
        'centralnotice-allocation-description' => 'اختصاص آگهی برای $1.$2 در 
$3:',
@@ -2874,7 +2863,6 @@
        'centralnotice-allocation' => 'Jakaminen',
        'centralnotice-view-allocation' => 'Näytä bannerin jakaminen',
        'centralnotice-allocation-instructions' => 'Valitse ympäristö, jossa 
haluaisit nähdä bannerin jakamisen:',
-       'centralnotice-project-language' => 'Projektin kieli',
        'centralnotice-country' => 'Maa',
        'centralnotice-no-allocation' => 'Ei kohdistettuja bannereita.',
        'centralnotice-allocation-description' => 'Bannerin kohdistus $1.$2 
maassa $3:',
@@ -3018,7 +3006,6 @@
        'centralnotice-allocation' => 'Allocation',
        'centralnotice-view-allocation' => 'Voir la disposition de bannière',
        'centralnotice-allocation-instructions' => 'Choisissez l’environnement 
pour lequel vous souhaitez afficher la disposition de bannière :',
-       'centralnotice-project-language' => 'Langue du projet',
        'centralnotice-country' => 'Pays',
        'centralnotice-no-allocation' => 'Pas de bannières disposées.',
        'centralnotice-allocation-description' => 'Disposition de bannière pour 
$1.$2 en $3 :',
@@ -3152,7 +3139,6 @@
        'centralnotice-allocation' => 'Alocacion',
        'centralnotice-view-allocation' => 'Vêre l’alocacion de baniére',
        'centralnotice-allocation-instructions' => 'Chouèsésséd l’enveronance 
por laquinta vos souhètâd fâre vêre l’alocacion de baniére :',
-       'centralnotice-project-language' => 'Lengoua du projèt',
        'centralnotice-country' => 'Payis',
        'centralnotice-no-allocation' => 'Gins de baniére balyê.',
        'centralnotice-allocation-description' => 'Alocacion de baniére por 
$1.$2 en $3 :',
@@ -3291,7 +3277,6 @@
        'centralnotice-allocation' => 'Asignación',
        'centralnotice-view-allocation' => 'Ollar a asignación do modelo',
        'centralnotice-allocation-instructions' => 'Escolla o entorno onde 
desexa mostrar a asignación do modelo:',
-       'centralnotice-project-language' => 'Lingua do proxecto',
        'centralnotice-country' => 'País',
        'centralnotice-no-allocation' => 'Non hai asignación de modelos.',
        'centralnotice-allocation-description' => 'Asignación de modelos de 
$1.$2 en $3:',
@@ -3449,7 +3434,6 @@
        'centralnotice-allocation' => 'Zuewysig',
        'centralnotice-view-allocation' => 'Aaornig vu dr Banner aaluege',
        'centralnotice-allocation-instructions' => 'D Umgäbig uuswehle, wu d 
Verteilig vu dr Banner witt aaluege:',
-       'centralnotice-project-language' => 'Projäktsproch',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Kei Banner aagordnet.',
        'centralnotice-allocation-description' => 'Banneraaornig fir $1.$2 in 
$3:',
@@ -3585,7 +3569,6 @@
        'centralnotice-allocation' => 'הקצאה',
        'centralnotice-view-allocation' => 'צפייה בהקצאת הבאנר',
        'centralnotice-allocation-instructions' => 'נא לבחור את הסביבה עבורה 
ברצונך לצפות בהקצאת הבאנר:',
-       'centralnotice-project-language' => 'שפת המיזם',
        'centralnotice-country' => 'ארץ',
        'centralnotice-no-allocation' => 'לא הוקצו באנרים',
        'centralnotice-allocation-description' => 'הקצאת באנר עבור $1.$2 תחת 
$3:',
@@ -3729,7 +3712,6 @@
        'centralnotice-allocation' => 'Dodjela',
        'centralnotice-view-allocation' => 'Prikaži raspodjelu obavijesti',
        'centralnotice-allocation-instructions' => 'Odaberi okruženje za koje 
želite vidjeti dodjelu obavijesti:',
-       'centralnotice-project-language' => 'Jezik projekta',
        'centralnotice-country' => 'Država',
        'centralnotice-no-allocation' => 'Nema dodijeljenih obavijesti.',
        'centralnotice-allocation-description' => 'Dodjela obavijesti za $1.$2 
u $3:',
@@ -3863,7 +3845,6 @@
        'centralnotice-allocation' => 'Přidźělenje',
        'centralnotice-view-allocation' => 'Přidźělenje chorhoje sej wobhladać',
        'centralnotice-allocation-instructions' => 'Wubjer wokolinu, za kotruž 
by sej rady přidźělenje chorhoje wobhladał:',
-       'centralnotice-project-language' => 'Projektowa rěč',
        'centralnotice-country' => 'Kraj',
        'centralnotice-no-allocation' => 'Žane chorhoje přidźělene',
        'centralnotice-allocation-description' => 'Přidźělenje chorhoje za 
$1.$2 w $3:',
@@ -3999,7 +3980,6 @@
        'centralnotice-allocation' => 'Kiosztás',
        'centralnotice-view-allocation' => 'Hirdetéskiosztás megtekintése',
        'centralnotice-allocation-instructions' => 'Válaszd ki azt a 
környezetet, amihez meg szeretnéd nézni a kiosztott hirdetéseket:',
-       'centralnotice-project-language' => 'A projekt nyelve',
        'centralnotice-country' => 'Ország',
        'centralnotice-no-allocation' => 'Nincs kiosztva egyetlen hirdetés 
sem.',
        'centralnotice-allocation-description' => 'A(z) $1.$2 számára kiosztott 
hirdetések a következő helyen: $3',
@@ -4133,7 +4113,6 @@
        'centralnotice-allocation' => 'Allocation',
        'centralnotice-view-allocation' => 'Vider allocation de bandieras',
        'centralnotice-allocation-instructions' => 'Selige le ambiente pro le 
qual tu vole vider le allocation de bandieras:',
-       'centralnotice-project-language' => 'Lingua del projecto',
        'centralnotice-country' => 'Pais',
        'centralnotice-no-allocation' => 'Nulle bandiera allocate.',
        'centralnotice-allocation-description' => 'Allocation de bandieras pro 
$1.$2 in $3:',
@@ -4271,7 +4250,6 @@
        'centralnotice-allocation' => 'Alokasi',
        'centralnotice-view-allocation' => 'Lihat alokasi pengumuman',
        'centralnotice-allocation-instructions' => 'Pilih lingkungan yang ingin 
Anda lihat alokasi pengumumannya:',
-       'centralnotice-project-language' => 'Bahasa proyek',
        'centralnotice-country' => 'Negara',
        'centralnotice-no-allocation' => 'Tidak ada pengumuman yang 
dialokasikan.',
        'centralnotice-allocation-description' => 'Alokasi pengumuman untuk 
$1.$2 di $3:',
@@ -4440,7 +4418,6 @@
        'centralnotice-banner-hidable' => 'Fisso/Nascondibile',
        'centralnotice-banner-collapsible' => 'Contraibile',
        'centralnotice-countries' => 'Paesi',
-       'centralnotice-project-language' => 'Lingua progetto',
        'centralnotice-country' => 'Nazione',
        'centralnotice-percentage' => 'Percentuale',
        'centralnotice-documentwrite-error' => 'Non è possibile usare 
document.write() dentro un banner.
@@ -4573,7 +4550,6 @@
        'centralnotice-allocation' => '割り当て',
        'centralnotice-view-allocation' => 'テンプレートの割り当てを表示',
        'centralnotice-allocation-instructions' => 
'テンプレートの割り当てを表示したい環境を選んでください:',
-       'centralnotice-project-language' => 'プロジェクトの言語',
        'centralnotice-country' => '国',
        'centralnotice-no-allocation' => 'テンプレートが割り当てられていません。',
        'centralnotice-allocation-description' => '$3での$1.$2へのテンプレートの割り当て:',
@@ -4881,7 +4857,6 @@
        'centralnotice-clone-notice' => '이 틀의 사본을 만들기',
        'centralnotice-clone-name' => '이름:',
        'centralnotice-preview-all-template-translations' => '템플렛의 모든 번역 미리 보기',
-       'centralnotice-project-language' => '프로젝트 언어',
        'centralnotice-country' => '국가',
        'right-centralnotice-admin' => '중앙 공지 관리',
        'right-centralnotice-translate' => '중앙 공지 번역',
@@ -5118,7 +5093,6 @@
        'centralnotice-allocation' => 'Dispositioun',
        'centralnotice-view-allocation' => 'Dispositioun vum Banner weisen',
        'centralnotice-allocation-instructions' => 'Sicht den Environnement 
eraus wou Dir wëllt datt de Banner esou soll gesi ginn:',
-       'centralnotice-project-language' => 'Sprooch vum Projet',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Keng Banneren zougedeelt.',
        'centralnotice-allocation-description' => 'Dispositioun vum Banner fir 
$1.$2 a(n) $3:',
@@ -5264,7 +5238,6 @@
        'centralnotice-allocation' => 'Toewiezing',
        'centralnotice-view-allocation' => 'Betrach vaantoewiezing',
        'centralnotice-allocation-instructions' => 'Kees de ómgaeving woveur se 
de vaantoewiezing wils bekieke:',
-       'centralnotice-project-language' => 'Projektaal',
        'centralnotice-country' => 'Landj',
        'centralnotice-no-allocation' => 'Geine vaan toegeweze.',
        'centralnotice-allocation-description' => 'Vaantoewiezing veur $1.$2 in 
$3:',
@@ -5360,7 +5333,6 @@
        'centralnotice-banner-anonymous' => 'Anonīmiem lietotājiem',
        'centralnotice-banner-logged-in' => 'Lietotājiem, kas pieslēgušies',
        'centralnotice-countries' => 'Valstis',
-       'centralnotice-project-language' => 'Projekta valoda',
        'centralnotice-country' => 'Valsts',
 );
 
@@ -5548,7 +5520,6 @@
        'centralnotice-allocation' => 'Распределба',
        'centralnotice-view-allocation' => 'Преглед на распределбата на 
плакати',
        'centralnotice-allocation-instructions' => 'Одберете во која околина 
сакате да ја погледате распределбата на плакати:',
-       'centralnotice-project-language' => 'Јазик на проектот',
        'centralnotice-country' => 'Земја',
        'centralnotice-no-allocation' => 'Нема распределени плакати',
        'centralnotice-allocation-description' => 'Распределба на плакати за 
$1.$2 iво $3:',
@@ -5682,7 +5653,6 @@
        'centralnotice-allocation' => 'വിന്യാസം',
        'centralnotice-view-allocation' => 'എഴുത്തുപട്ടയ്ക്ക് 
അനുവദിച്ചിരിക്കുന്ന സ്ഥാനം കാണുക',
        'centralnotice-allocation-instructions' => 'എഴുത്തുപട്ട അനുവദിക്കൽ 
പ്രദർശിപ്പിക്കാനായി താങ്കൾ തിരഞ്ഞെടുക്കുന്ന പരിതസ്ഥിതി:',
-       'centralnotice-project-language' => 'പദ്ധതിയുടെ ഭാഷ',
        'centralnotice-country' => 'രാജ്യം',
        'centralnotice-no-allocation' => 'എഴുത്തുപട്ടകൾക്ക് 
ഇടയനുവദിച്ചിട്ടില്ല.',
        'centralnotice-allocation-description' => '$1.$2 സംരംഭത്തിൽ 
അനുവദിച്ചിരിക്കുന്ന എഴുത്തുപട്ട (രാജ്യം: $3):',
@@ -6079,7 +6049,6 @@
        'centralnotice-allocation' => 'Toewijzing',
        'centralnotice-view-allocation' => 'Bannertoewijzing bekijken',
        'centralnotice-allocation-instructions' => 'Kies de omgeving waarvoor u 
de bannertoewijzing wilt bekijken:',
-       'centralnotice-project-language' => 'Projecttaal',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Geen banners toegewezen.',
        'centralnotice-allocation-description' => 'Bannertoewijzing voor $1.$2 
in $3:',
@@ -6170,7 +6139,6 @@
        'centralnotice-clone-name' => 'Namn:',
        'centralnotice-preview-all-template-translations' => 'Førehandsvis alle 
tilgjengelege omsetjingar av malen',
        'centralnotice-insert' => 'Sett inn: $1',
-       'centralnotice-project-language' => 'Prosjektspråk',
        'centralnotice-country' => 'Land',
        'right-centralnotice-admin' => 'Handtera sentrale merknader',
        'right-centralnotice-translate' => 'Omsetja sentrale merknader',
@@ -6302,7 +6270,6 @@
        'centralnotice-allocation' => 'Tildeling',
        'centralnotice-view-allocation' => 'Vis bannertildeling',
        'centralnotice-allocation-instructions' => 'Velg miljøet du ønsker å se 
bannertildelingen for:',
-       'centralnotice-project-language' => 'Prosjektspråk',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Ingen bannere tildelt.',
        'centralnotice-allocation-description' => 'Bannertildeling for $1.$2 i 
$3:',
@@ -6550,7 +6517,6 @@
        'centralnotice-allocation' => 'Przydział',
        'centralnotice-view-allocation' => 'Zobacz przydziały dla banera',
        'centralnotice-allocation-instructions' => 'Określ środowisko, w którym 
chcesz zobaczyć baner',
-       'centralnotice-project-language' => 'Język projektu',
        'centralnotice-country' => 'Kraj',
        'centralnotice-no-allocation' => 'Brak przypisanych banerów.',
        'centralnotice-allocation-description' => 'Przydział banera dla $1.$2 w 
$3:',
@@ -6685,7 +6651,6 @@
        'centralnotice-allocation' => 'Alocassion',
        'centralnotice-view-allocation' => 'Vëdde la disposission dël tilèt',
        'centralnotice-allocation-instructions' => "Ch'a serna l'ambient për ël 
qual a-j piaserìa smon-e la disposission ëd tilèt:",
-       'centralnotice-project-language' => 'Lenga dël proget',
        'centralnotice-country' => 'Nassion',
        'centralnotice-no-allocation' => 'Gnun tilèt butà.',
        'centralnotice-allocation-description' => 'Disposission dël tilèt për 
$1.$2 an $3:',
@@ -6742,7 +6707,6 @@
        'centralnotice-banner-anonymous' => 'ورکنومي کارنان',
        'centralnotice-banner-logged-in' => 'ننوتي کارنان',
        'centralnotice-countries' => 'هيوادونه',
-       'centralnotice-project-language' => 'د پروژې ژبه',
        'centralnotice-country' => 'هېواد',
        'centralnotice-percentage' => 'سلنه',
 );
@@ -6870,7 +6834,6 @@
        'centralnotice-allocation' => 'Atribuição',
        'centralnotice-view-allocation' => 'Ver atribuição de modelos',
        'centralnotice-allocation-instructions' => 'Escolha o ambiente para o 
qual deseja ver a atribuição de modelos:',
-       'centralnotice-project-language' => 'Língua do projecto',
        'centralnotice-country' => 'País',
        'centralnotice-no-allocation' => 'Não há modelos atribuídos.',
        'centralnotice-allocation-description' => 'Atribuição de modelos para 
$1.$2 em $3:',
@@ -7006,7 +6969,6 @@
        'centralnotice-allocation' => 'Atribuição',
        'centralnotice-view-allocation' => 'Ver atribuição de modelos',
        'centralnotice-allocation-instructions' => 'Escolha o ambiente para o 
qual deseja ver a atribuição de modelos:',
-       'centralnotice-project-language' => 'Língua do projeto',
        'centralnotice-country' => 'País',
        'centralnotice-no-allocation' => 'Não há modelos atribuídos.',
        'centralnotice-allocation-description' => 'Atribuição de modelos para 
$1.$2 em $3:',
@@ -7135,7 +7097,6 @@
        'centralnotice-banner-hidable' => 'Ranuy/Pakana',
        'centralnotice-banner-collapsible' => 'Thuñichina',
        'centralnotice-countries' => 'Mama llaqtakuna',
-       'centralnotice-project-language' => 'Ruraykamaypa rimaynin',
        'centralnotice-country' => 'Mama llaqta',
        'right-centralnotice-admin' => 'Chawpi willaykunata kamachiy',
        'right-centralnotice-translate' => "Chawpi willaykunata t'ikray",
@@ -7265,7 +7226,6 @@
        'centralnotice-countries' => 'Ţări',
        'centralnotice-allocation' => 'Alocare',
        'centralnotice-view-allocation' => 'Vedeți alocarea bannerului',
-       'centralnotice-project-language' => 'Limba proiectului',
        'centralnotice-country' => 'Ţară',
        'centralnotice-no-allocation' => 'Niciun banner alocat.',
        'centralnotice-percentage' => 'Procentaj',
@@ -7395,7 +7355,6 @@
        'centralnotice-countries' => 'Paìse',
        'centralnotice-allocation' => 'Allocazione',
        'centralnotice-view-allocation' => "Visualizze l'assignazione d'u 
banner",
-       'centralnotice-project-language' => "Lènghe d'u pruggette",
        'centralnotice-country' => 'Nazione',
        'centralnotice-no-allocation' => 'Nisciune banner assignate.',
        'centralnotice-allocation-description' => 'Assignazione de banner pè 
$1.$2 jndre $3:',
@@ -7533,7 +7492,6 @@
        'centralnotice-allocation' => 'Распределение',
        'centralnotice-view-allocation' => 'Просмотр размещения баннеров',
        'centralnotice-allocation-instructions' => 'Выберите среды, для которых 
вы хотите просмотреть размещение баннеров:',
-       'centralnotice-project-language' => 'Язык проекта',
        'centralnotice-country' => 'Страна',
        'centralnotice-no-allocation' => 'Баннеры не размещены',
        'centralnotice-allocation-description' => 'Размещение баннеров для 
$1.$2 в $3:',
@@ -7662,7 +7620,6 @@
        'centralnotice-allocation' => 'Придїлїня',
        'centralnotice-view-allocation' => 'Зобразити придїлїня баверів',
        'centralnotice-allocation-instructions' => 'Выберте собі середовище, 
про котре хочете указати придїлїня банерів:',
-       'centralnotice-project-language' => 'Язык проєкту',
        'centralnotice-country' => 'Країна:',
        'centralnotice-no-allocation' => 'Жадны банеры не суть придїлены.',
        'centralnotice-allocation-description' => 'Придїлїня банерів на $1.$2 у 
$3:',
@@ -7796,7 +7753,6 @@
        'centralnotice-allocation' => 'Тарҕаныыта',
        'centralnotice-view-allocation' => 'Бааннердар ханна баалларын көрүү',
        'centralnotice-allocation-instructions' => 'Бааннердар ханна баалларын 
ханнык эйгэҕэ көрүөххүн баҕараргын тал:',
-       'centralnotice-project-language' => 'Бырайыак тыла',
        'centralnotice-country' => 'Дойду',
        'centralnotice-no-allocation' => 'Бааннердар олордуллубатахтар',
        'centralnotice-allocation-description' => 'Манна анаан $1.$2 
бааннердары угуу, $3 иһигэр:',
@@ -8012,7 +7968,6 @@
        'centralnotice-allocation' => 'Alokácia',
        'centralnotice-view-allocation' => 'Zobraziť alokáciu oznamu',
        'centralnotice-allocation-instructions' => 'Vyberte prostredie, pre 
ktoré chcete zobraziť alokáciu oznamu:',
-       'centralnotice-project-language' => 'Jazyk projektu',
        'centralnotice-country' => 'Krajina',
        'centralnotice-no-allocation' => 'Nie sú alokované žiadne oznamy.',
        'centralnotice-allocation-description' => 'Alokácia oznamu $1.$2 v $3:',
@@ -8146,7 +8101,6 @@
        'centralnotice-allocation' => 'Dodelitev',
        'centralnotice-view-allocation' => 'Ogled dodelitve pasic',
        'centralnotice-allocation-instructions' => 'Izberite okolje, za katero 
si želite ogledati dodelitve pasic:',
-       'centralnotice-project-language' => 'Jezik projekta',
        'centralnotice-country' => 'Država',
        'centralnotice-no-allocation' => 'Nobena pasica ni dodeljena.',
        'centralnotice-allocation-description' => 'Dodelitev pasice $1.$2 v 
jeziku $3:',
@@ -8523,7 +8477,6 @@
        'centralnotice-allocation' => 'Tilldelning',
        'centralnotice-view-allocation' => 'Visa bannertilldelning',
        'centralnotice-allocation-instructions' => 'Välj den miljö du vill se 
banertilldelning för:',
-       'centralnotice-project-language' => 'Projektspråk',
        'centralnotice-country' => 'Land',
        'centralnotice-no-allocation' => 'Inga banners tilldelade.',
        'centralnotice-allocation-description' => 'Bannertilldelning för $1.$2 
i $3:',
@@ -8593,7 +8546,6 @@
        'centralnotice-banner-logged-in' => 'புகுபதிகை செய்த பயனர்கள்',
        'centralnotice-banner-hidable' => 'நிலையானது/மறைக்கக்கூடியது',
        'centralnotice-countries' => 'நாடுகள்',
-       'centralnotice-project-language' => 'திட்டத்தின் மொழி',
        'centralnotice-country' => 'நாடு',
        'centralnotice-percentage' => 'சதவிகிதம்/விழுக்காடு',
        'centralnotice-preferred' => 'விரும்பத்தக்கது',
@@ -8686,7 +8638,6 @@
        'centralnotice-banner-hidable' => 'స్థిరం/దాచదగ్గది',
        'centralnotice-countries' => 'దేశాలు',
        'centralnotice-allocation' => 'కేటాయింపు',
-       'centralnotice-project-language' => 'ప్రాజెక్టు భాష',
        'centralnotice-country' => 'దేశం',
        'centralnotice-percentage' => 'శాతం',
        'right-centralnotice-admin' => 'కేంద్రీయ గమనికలని నిర్వహించగలగడం',
@@ -9099,7 +9050,6 @@
        'centralnotice-countries' => 'Ýurtlar',
        'centralnotice-allocation' => 'Ýerleşiş',
        'centralnotice-view-allocation' => 'Bannerleriň ýerleşişini görkez',
-       'centralnotice-project-language' => 'Taslama dili',
        'centralnotice-country' => 'Ýurt',
        'centralnotice-no-allocation' => 'Hiç hili banner ýerleşdirilmändir.',
        'centralnotice-percentage' => 'Göterim',
@@ -9230,7 +9180,6 @@
        'centralnotice-allocation' => 'Paglalaan',
        'centralnotice-view-allocation' => 'Tingnan ang kabahagi ng bandera',
        'centralnotice-allocation-instructions' => 'Piliin ang kapaligirang 
nais mong tingnan ang kabahagi ng bandera:',
-       'centralnotice-project-language' => 'Wika ng proyekto',
        'centralnotice-country' => 'Bansa',
        'centralnotice-no-allocation' => 'Walang bandera ibinahagi.',
        'centralnotice-allocation-description' => 'Ang banderang kabahagi para 
sa $1.$2 sa loob ng $3:',
@@ -9565,7 +9514,6 @@
        'centralnotice-allocation' => 'Розподіл',
        'centralnotice-view-allocation' => 'Переглянути розміщення банера',
        'centralnotice-allocation-instructions' => 'Виберіть середовище, для 
якого ви хочете переглянути розміщення банера:',
-       'centralnotice-project-language' => 'Мова проекту',
        'centralnotice-country' => 'Країна',
        'centralnotice-no-allocation' => 'Немає розміщених банерів.',
        'centralnotice-allocation-description' => 'Розміщення банеру для $1.$2 
в $3:',
@@ -9699,7 +9647,6 @@
        'centralnotice-allocation' => 'Alocassion',
        'centralnotice-view-allocation' => 'Varda la disposission dei banner',
        'centralnotice-allocation-instructions' => "Scegli l'ambiente dove te 
vol vedar la disposission dei banner:",
-       'centralnotice-project-language' => 'Lengoa del projeto',
        'centralnotice-country' => 'Nassion',
        'centralnotice-no-allocation' => 'Nissun banner alocà.',
        'centralnotice-allocation-description' => 'Alocassion dei banner par 
$1.$2 in $3:',
@@ -9822,7 +9769,6 @@
        'centralnotice-allocation' => 'Phân bổ',
        'centralnotice-view-allocation' => 'Xem cách phân phối bảng',
        'centralnotice-allocation-instructions' => 'Chọn môi trường để xem cách 
phân phối bảng:',
-       'centralnotice-project-language' => 'Ngôn ngữ dự án',
        'centralnotice-country' => 'Quốc gia',
        'centralnotice-no-allocation' => 'Chưa có phân phối bảng nào.',
        'centralnotice-allocation-description' => 'Phân phối bảng cho $1.$2 tại 
$3:',
@@ -9944,7 +9890,6 @@
        'centralnotice-donate-button' => 'Bọ́tìnì ìṣọrẹ',
        'centralnotice-banner-anonymous' => 'Àwọn oníṣe aláìlórúkọ',
        'centralnotice-countries' => 'Àwọn orílẹ̀-èdè',
-       'centralnotice-project-language' => 'Èdè iṣẹ́-ọwọ́',
        'centralnotice-country' => 'Orílẹ̀-èdè',
 );
 
@@ -10079,7 +10024,6 @@
        'centralnotice-allocation' => '配额',
        'centralnotice-view-allocation' => '察看横幅配额',
        'centralnotice-allocation-instructions' => '选择你想察看横幅配额的环境',
-       'centralnotice-project-language' => '计划语言',
        'centralnotice-country' => '国家',
        'centralnotice-no-allocation' => '没有配给横幅',
        'centralnotice-percentage' => '百分比',

Modified: trunk/extensions/CentralNotice/SpecialCentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/SpecialCentralNotice.php     2010-11-08 
22:18:46 UTC (rev 76346)
+++ trunk/extensions/CentralNotice/SpecialCentralNotice.php     2010-11-08 
23:02:41 UTC (rev 76347)
@@ -282,7 +282,7 @@
        }
 
        /**
-        * Print out all campaigns found in db
+        * Show all campaigns found in the database, show "Add a campaign" form
         */
        function listNotices() {
                global $wgOut, $wgUser, $wgLang, $wgRequest;
@@ -337,8 +337,8 @@
                        // Table headers
                        $headers = array(
                                wfMsgHtml( 'centralnotice-notice-name' ),
-                               wfMsgHtml( 'centralnotice-project-name' ),
-                               wfMsgHtml( 'centralnotice-project-lang' ),
+                               wfMsgHtml( 'centralnotice-projects' ),
+                               wfMsgHtml( 'centralnotice-languages' ),
                                wfMsgHtml( 'centralnotice-start-date' ),
                                wfMsgHtml( 'centralnotice-end-date' ),
                                wfMsgHtml( 'centralnotice-enabled' ),
@@ -463,11 +463,11 @@
                                        $startArray['hour'] .
                                        $startArray['min'] . '00'
                                ;
-                               $projectSelected = $wgRequest->getVal( 
'project_name' );
+                               $noticeProjects = $wgRequest->getArray( 
'projects', array() );
                                $noticeLanguages = $wgRequest->getArray( 
'project_languages', array() );
                        } else { // Defaults
                                $startTimestamp = null;
-                               $projectSelected = '';
+                               $noticeProjects = array();
                                $noticeLanguages = array();
                        }
                
@@ -500,12 +500,14 @@
                        $htmlOut .= Xml::closeElement( 'tr' );
                        // Project
                        $htmlOut .= Xml::openElement( 'tr' );
-                       $htmlOut .= Xml::tags( 'td', array(), wfMsgHtml( 
'centralnotice-project-name' ) );
-                       $htmlOut .= Xml::tags( 'td', array(), 
$this->projectDropDownList( $projectSelected ) );
+                       $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' ),
+                               wfMsgHtml( 'centralnotice-projects' ) );
+                       $htmlOut .= Xml::tags( 'td', array(), 
$this->projectMultiSelector( $noticeProjects ) );
                        $htmlOut .= Xml::closeElement( 'tr' );
                        // Languages
                        $htmlOut .= Xml::openElement( 'tr' );
-                       $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' 
), wfMsgHtml( 'yourlanguage' ) );
+                       $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' 
), 
+                               wfMsgHtml( 'centralnotice-languages' ) );
                        $htmlOut .= Xml::tags( 'td', array(), 
                                $this->languageMultiSelector( $noticeLanguages 
) );
                        $htmlOut .= Xml::closeElement( 'tr' );
@@ -544,6 +546,10 @@
                $wgOut->addHTML( $htmlOut );
        }
 
+       /**
+        * Show the interface for viewing/editing an individual campaign
+        * @param $notice The name of the campaign to view
+        */
        function listNoticeDetail( $notice ) {
                global $wgOut, $wgRequest, $wgUser;
                
@@ -827,12 +833,13 @@
                        $htmlOut .= Xml::closeElement( 'tr' );
                        // Project
                        $htmlOut .= Xml::openElement( 'tr' );
-                       $htmlOut .= Xml::tags( 'td', array(), wfMsgHtml( 
'centralnotice-project-name' ) );
+                       $htmlOut .= Xml::tags( 'td', array(), wfMsgHtml( 
'centralnotice-projects' ) );
                        $htmlOut .= Xml::tags( 'td', array(), 
$this->projectDropDownList( $projectSelected ) );
                        $htmlOut .= Xml::closeElement( 'tr' );
                        // Languages
                        $htmlOut .= Xml::openElement( 'tr' );
-                       $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' 
), wfMsgHtml( 'yourlanguage' ) );
+                       $htmlOut .= Xml::tags( 'td', array( 'valign' => 'top' 
), 
+                               wfMsgHtml( 'centralnotice-languages' ) );
                        $htmlOut .= Xml::tags( 'td', array(), 
                                $this->languageMultiSelector( $noticeLanguages 
) );
                        $htmlOut .= Xml::closeElement( 'tr' );
@@ -1484,6 +1491,54 @@
                return $htmlOut;
        }
        
+       /**
+        * Generates a multiple select list of all project types.
+        * @param $selected The name of the selected project type
+        * @return multiple select list
+        */
+       function projectMultiSelector( $selected = array() ) {
+               global $wgNoticeProjects, $wgExtensionAssetsPath, $wgLang;
+               $scriptPath = "$wgExtensionAssetsPath/CentralNotice";
+               
+               $options = "\n";
+               foreach( $wgNoticeProjects as $project ) {
+                       $options .= Xml::option(
+                               $project,
+                               $project,
+                               in_array( $project, $selected )
+                       ) . "\n";
+               }
+               $htmlOut = '';
+               if ( $this->editable ) {
+                       $htmlOut .= Xml::tags( 'select',
+                               array( 'multiple' => 'multiple', 'size' => 4, 
'id' => 'projects[]', 'name' => 'projects[]' ),
+                               $options
+                       );
+                       $buttons = array();
+                       $buttons[] = '<a href="#" 
onclick="selectProjects(true);return false;">' . 
+                               wfMsg( 'powersearch-toggleall' ) . '</a>';
+                       $buttons[] = '<a href="#" 
onclick="selectProjects(false);return false;">' . 
+                               wfMsg( 'powersearch-togglenone' ) . '</a>';
+                       $htmlOut .= Xml::tags( 'div',
+                               array( 'style' => 'margin-top: 0.2em;' ),
+                               '<img src="'.$scriptPath.'/up-arrow.png" 
style="vertical-align:baseline;"/>' . 
+                               wfMsg( 'centralnotice-select', 
$wgLang->commaList( $buttons ) )
+                       );
+               } else {
+                       $htmlOut .= Xml::tags( 'select',
+                               array( 
+                                       'multiple' => 'multiple', 
+                                       'size' => 4, 
+                                       'id' => 'projects[]', 
+                                       'name' => 'projects[]', 
+                                       'disabled' => 'disabled' 
+                               ),
+                               $options
+                       );
+               }
+               return $htmlOut;
+       }
+       
        function getProjectName( $value ) {
                return $value; // @fixme -- use wfMsg()
        }


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

Reply via email to