r30809 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30808‎ | r30809 | r30810 >
Date:20:43, 10 February 2008
Author:grondin
Status:old
Tags:
Comment:
Localisation updates for extensions messages from Betawikic$
* Add new internationalization messages
* Fix bug messages
Modified paths:
  • /trunk/extensions/EditUser/EditUser.i18n.php (modified) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats.i18n.php (modified) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats.php (modified) (history)
  • /trunk/extensions/UsageStatistics/SpecialUserStats_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EditUser/EditUser.i18n.php
@@ -18,6 +18,14 @@
1919 'edituser-dosearch' => 'Search',
2020 );
2121
 22+/** Breton (Brezhoneg)
 23+ * @author Fulup
 24+ */
 25+$messages['br'] = array(
 26+ 'edituser-username' => 'Anv',
 27+ 'edituser-dosearch' => 'Klask',
 28+);
 29+
2230 /* Finnish
2331 * @author Jack Phoenix
2432 */
@@ -28,6 +36,17 @@
2937 'edituser-dosearch' => 'Hae',
3038 );
3139
 40+/** French (Français)
 41+ * @author Grondin
 42+ */
 43+$messages['fr'] = array(
 44+ 'edituser-desc' => "Permet aux utilisateurs disposant de certains privilèges d'éditer les préférences des autres utilisateurs.",
 45+ 'edituser' => "Éditer l'utilisateur",
 46+ 'edituser-logout' => 'Ferme la session utilisateur',
 47+ 'edituser-username' => 'Nom',
 48+ 'edituser-dosearch' => 'Rechercher',
 49+);
 50+
3251 /** Dutch (Nederlands)
3352 * @author Siebrand
3453 */
@@ -38,4 +57,3 @@
3958 'edituser-username' => 'Naam',
4059 'edituser-dosearch' => 'Zoeken',
4160 );
42 -
Index: trunk/extensions/UsageStatistics/SpecialUserStats_body.php
@@ -217,9 +217,15 @@
218218 $csv_pages .= "$pages,";
219219 }
220220 }
221 - $wgOut->AddWikiText("== Individual user $type edits statistics ==");
 221+ if ($type == 'cumulative') {
 222+ $nature = wfMsg('usagestatisticscumulative-text');
 223+ }
 224+ else {
 225+ $nature = wfMsg ('usagestatisticsincremental-text');
 226+ }
 227+ $wgOut->AddWikiText("== ". wfMsg ('usagestatistics-editindividual', $nature) ." ==");
222228 $wgOut->AddWikiText("<pre>$csv$csv_edits</pre>");
223 - $wgOut->AddWikiText("== Individual user $type pages statistics ==");
 229+ $wgOut->AddWikiText("== ". wfMsg ('usagestatistics-editpages', $nature) ." ==");
224230 $wgOut->AddWikiText("<pre>$csv$csv_pages</pre>");
225231
226232 return;
@@ -272,7 +278,7 @@
273279 cal2.showNavigationDropdowns();
274280 </SCRIPT>
275281 <A HREF='#' onClick=\"cal2.select(document.forms[0].end,'anchor2','MM/dd/yyyy'); return false;\" NAME='anchor2'
276 -ID='anchor2'>select</A>
 282+ID='anchor2'>". wfMsg('usagestatisticscalselect')."</A>
277283 </td>
278284 </tr>
279285 </table>
Index: trunk/extensions/UsageStatistics/SpecialUserStats.i18n.php
@@ -10,6 +10,7 @@
1111 $messages['en'] = array(
1212 'specialuserstats' => 'Usage Statistics',
1313 'usagestatistics' => 'Usage Statistics',
 14+ 'usagestatistics-desc' => 'Show individual user and overall wiki usage statistics',
1415 'usagestatisticsfor' => '<h2>Usage statistics for [[:user:$1|$1]]</h2>',
1516 'usagestatisticsallusers' => 'All Users',
1617 'usagestatisticsinterval' => 'Interval',
@@ -24,8 +25,12 @@
2526 'usagestatisticsintervalweek' => 'Week',
2627 'usagestatisticsintervalmonth' => 'Month',
2728 'usagestatisticsincremental' => 'Incremental',
 29+ 'usagestatisticsincremental-text' => 'incremental',
2830 'usagestatisticscumulative' => 'Cumulative',
 31+ 'usagestatisticscumulative-text' => 'cumulative',
2932 'usagestatisticscalselect' => 'Select',
 33+ 'usagestatistics-editindividual' => 'Individual user $1 edits statistics',
 34+ 'usagestatistics-editpages' => ' Individual user $1 pages statistics',
3035 );
3136
3237 /** Arabic (العربية)
@@ -97,6 +102,15 @@
98103 'usagestatisticsbadstartend' => '<b>Невалидна <i>Начална</i> и/или <i>Крайна</i> дата!</b>',
99104 );
100105
 106+/** Breton (Brezhoneg)
 107+ * @author Fulup
 108+ */
 109+$messages['br'] = array(
 110+ 'usagestatisticsintervalday' => 'Deiz',
 111+ 'usagestatisticsintervalweek' => 'Sizhun',
 112+ 'usagestatisticsintervalmonth' => 'Miz',
 113+);
 114+
101115 /** Deutsch (German)
102116 * @author Katharina Wolkwitz
103117 */
@@ -145,18 +159,29 @@
146160 * @author Grondin
147161 */
148162 $messages['fr'] = array(
149 - 'specialuserstats' => "Statistiques d'utilisation",
150 - 'usagestatistics' => 'Statistiques Utilisation',
151 - 'usagestatisticsfor' => '<h2>Statistiques Utilisation pour [[:user:$1|$1]]</h2>',
152 - 'usagestatisticsallusers' => 'Tous les utilisateurs',
153 - 'usagestatisticsinterval' => 'Intervalle',
154 - 'usagestatisticstype' => 'Type',
155 - 'usagestatisticsstart' => 'Date de début',
156 - 'usagestatisticsend' => 'Date de fin',
157 - 'usagestatisticssubmit' => 'Générer les statistiques',
158 - 'usagestatisticsnostart' => '* <font color=red>Entrer une date de début</font>',
159 - 'usagestatisticsnoend' => '* <font color=red>Entrer une date de fin</font>',
160 - 'usagestatisticsbadstartend' => '<b>Mauvais format de date de <i>début</i> ou de <i>fin</i> !</b>',
 163+ 'specialuserstats' => "Statistiques d'utilisation",
 164+ 'usagestatistics' => 'Statistiques Utilisation',
 165+ 'usagestatistics-desc' => 'Affiche les statistiques individuelles des utilisateurs ainsi que l’utilisation sur l’ensemble du wiki.',
 166+ 'usagestatisticsfor' => '<h2>Statistiques Utilisation pour [[:user:$1|$1]]</h2>',
 167+ 'usagestatisticsallusers' => 'Tous les utilisateurs',
 168+ 'usagestatisticsinterval' => 'Intervalle',
 169+ 'usagestatisticstype' => 'Type',
 170+ 'usagestatisticsstart' => 'Date de début',
 171+ 'usagestatisticsend' => 'Date de fin',
 172+ 'usagestatisticssubmit' => 'Générer les statistiques',
 173+ 'usagestatisticsnostart' => '* <font color=red>Entrer une date de début</font>',
 174+ 'usagestatisticsnoend' => '* <font color=red>Entrer une date de fin</font>',
 175+ 'usagestatisticsbadstartend' => '<b>Mauvais format de date de <i>début</i> ou de <i>fin</i> !</b>',
 176+ 'usagestatisticsintervalday' => 'Jour',
 177+ 'usagestatisticsintervalweek' => 'Semaine',
 178+ 'usagestatisticsintervalmonth' => 'Mois',
 179+ 'usagestatisticsincremental' => 'Incrémentale',
 180+ 'usagestatisticsincremental-text' => 'incrémentales',
 181+ 'usagestatisticscumulative' => 'Cumulative',
 182+ 'usagestatisticscumulative-text' => 'cumulatives',
 183+ 'usagestatisticscalselect' => 'Sélectionner',
 184+ 'usagestatistics-editindividual' => 'Éditions statistiques $1 par utilisateur',
 185+ 'usagestatistics-editpages' => 'Statistiques $1 des pages par seul utilisateur',
161186 );
162187
163188 /** Galician (Galego)
Index: trunk/extensions/UsageStatistics/SpecialUserStats.php
@@ -2,12 +2,13 @@
33 if (!defined('MEDIAWIKI')) die();
44
55 $wgExtensionCredits['specialpage'][] = array(
6 - 'name' => 'UserStats',
7 - 'version' => 'v1.3',
8 - 'author' => 'Paul Grinberg',
9 - 'email' => 'gri6507 at yahoo dot com',
10 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Usage_Statistics',
11 - 'description' => 'Show individual user and overall wiki usage statistics'
 6+ 'name' => 'UserStats',
 7+ 'version' => '1.3',
 8+ 'author' => 'Paul Grinberg',
 9+ 'email' => 'gri6507 at yahoo dot com',
 10+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Usage_Statistics',
 11+ 'description' => 'Show individual user and overall wiki usage statistics',
 12+ 'descriptionmsg' => 'usagestatistics-desc',
1213 );
1314
1415 $wgAutoloadClasses['SpecialUserStats'] = dirname(__FILE__) . '/SpecialUserStats_body.php';

Status & tagging log