r109406 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109405‎ | r109406 | r109407 >
Date:17:27, 18 January 2012
Author:siebrand
Status:ok
Tags:languagegetmagic 
Comment:
Add display_point and display_points are separate entries in $magicWords.
Modified paths:
  • /trunk/extensions/Maps/Maps.i18n.magic.php (modified) (history)
  • /trunk/extensions/Maps/Maps.settings.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/Maps.i18n.magic.php
@@ -11,7 +11,8 @@
1212 /** English (English) */
1313 $magicWords['en'] = array(
1414 'display_map' => array( 0, 'display_map' ),
15 - 'display_point' => array( 0, 'display_point', 'display_points' ),
 15+ 'display_point' => array( 0, 'display_point' ),
 16+ 'display_points' => array( 0, 'display_points' ),
1617 'geocode' => array( 0, 'geocode' ),
1718 'geodistance' => array( 0, 'geodistance' ),
1819 'finddestination' => array( 0, 'finddestination' ),
@@ -29,7 +30,6 @@
3031 /** Arabic (العربية) */
3132 $magicWords['ar'] = array(
3233 'display_map' => array( 0, 'عرض_الخريطة' ),
33 - 'display_point' => array( 0, 'نقطة_العرض', 'نقاط_العرض' ),
3434 'geocode' => array( 0, 'كود_جغرافي' ),
3535 'geodistance' => array( 0, 'مسافة_جغرافية' ),
3636 'finddestination' => array( 0, 'إيجاد_الوجهة' ),
@@ -40,7 +40,6 @@
4141 /** Egyptian Spoken Arabic (مصرى) */
4242 $magicWords['arz'] = array(
4343 'display_map' => array( 0, 'عرض_الخريطه', 'عرض_الخريطة', 'display_map' ),
44 - 'display_point' => array( 0, 'نقطة_العرض', 'نقاط_العرض', 'display_point', 'display_points' ),
4544 'geocode' => array( 0, 'كود_جغرافي', 'geocode' ),
4645 'geodistance' => array( 0, 'مسافه_جغرافيه', 'مسافة_جغرافية', 'geodistance' ),
4746 'finddestination' => array( 0, 'إيجاد_الوجهه', 'إيجاد_الوجهة', 'finddestination' ),
@@ -55,7 +54,6 @@
5655
5756 /** Chechen (Нохчийн) */
5857 $magicWords['ce'] = array(
59 - 'display_point' => array( 0, 'гайта_тlадам', 'показать_точку', 'display_point', 'display_points' ),
6058 'geocode' => array( 0, 'геагишар', 'геокод', 'geocode' ),
6159 );
6260
@@ -96,6 +94,7 @@
9795 $magicWords['it'] = array(
9896 'display_map' => array( 0, 'mostra_mappa' ),
9997 'display_point' => array( 0, 'mostra_punto', 'mostra_punti' ),
 98+ 'display_points' => array( 0, 'mostra_punti' ),
10099 'coordinates' => array( 0, 'coordinate' ),
101100 'distance' => array( 0, 'distanza' ),
102101 );
@@ -124,7 +123,6 @@
125124 /** Macedonian (Македонски) */
126125 $magicWords['mk'] = array(
127126 'display_map' => array( 0, 'прикажи_карта' ),
128 - 'display_point' => array( 0, 'прикажи_точка', 'прикажи_точки' ),
129127 'geocode' => array( 0, 'геокод' ),
130128 'geodistance' => array( 0, 'георастојание' ),
131129 'finddestination' => array( 0, 'најдиодредница' ),
@@ -135,7 +133,6 @@
136134 /** Malayalam (മലയാളം) */
137135 $magicWords['ml'] = array(
138136 'display_map' => array( 0, 'ഭൂപടം_പ്രദർശിപ്പിക്കുക' ),
139 - 'display_point' => array( 0, 'ബിന്ദു_പ്രദർശിപ്പിക്കുക', 'ബിന്ദുക്കൾ_പ്രദർശിപ്പിക്കുക' ),
140137 'geodistance' => array( 0, 'ഭൗമദൂരം' ),
141138 'finddestination' => array( 0, 'ലക്ഷ്യംതിരയുക' ),
142139 'coordinates' => array( 0, 'നിർദ്ദേശാങ്കങ്ങൾ' ),
@@ -178,7 +175,8 @@
179176 /** Portuguese (Português) */
180177 $magicWords['pt'] = array(
181178 'display_map' => array( 0, 'mostrar_mapa', 'display_map' ),
182 - 'display_point' => array( 0, 'mostrar_ponto', 'mostrar_pontos', 'display_point', 'display_points' ),
 179+ 'display_point' => array( 0, 'mostrar_ponto', 'mostrar_pontos' ),
 180+ 'display_points' => array( 0, 'mostrar_pontos' ),
183181 'geocode' => array( 0, 'geocódigo', 'geocode' ),
184182 'geodistance' => array( 0, 'geodistância', 'geodistance' ),
185183 'finddestination' => array( 0, 'encontrardestino', 'finddestination' ),
@@ -207,7 +205,6 @@
208206 /** Serbian (Cyrillic script) (‪Српски (ћирилица)‬) */
209207 $magicWords['sr-ec'] = array(
210208 'display_map' => array( 0, 'прикажи_мапу' ),
211 - 'display_point' => array( 0, 'прикажи_тачку', 'прикажи_тачке' ),
212209 'finddestination' => array( 0, 'пронађиодредиште', 'пронађи_одредиште' ),
213210 'coordinates' => array( 0, 'координате' ),
214211 'distance' => array( 0, 'раздаљина' ),
@@ -216,7 +213,6 @@
217214 /** Serbian (Latin script) (‪Srpski (latinica)‬) */
218215 $magicWords['sr-el'] = array(
219216 'display_map' => array( 0, 'prikaži_mapu' ),
220 - 'display_point' => array( 0, 'prikaži_tačku', 'prikaži_tačke' ),
221217 'geocode' => array( 0, 'geografski_kod' ),
222218 'geodistance' => array( 0, 'geografska_razdaljina' ),
223219 'finddestination' => array( 0, 'pronađi_odredište' ),
Index: trunk/extensions/Maps/Maps.settings.php
@@ -1,5 +1,4 @@
22 <?php
3 -
43 /**
54 * File defining the settings for the Maps extension.
65 * Changing one of these settings can be done by assigning to $egMapsSettings.
@@ -77,4 +76,4 @@
7877 $setting->setMessage( 'maps-setting-' . $setting->getName() );
7978 }
8079
81 -return $s;
\ No newline at end of file
 80+return $s;

Status & tagging log