r81145 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81144‎ | r81145 | r81146 >
Date:18:23, 28 January 2011
Author:liangent
Status:deferred
Tags:
Comment:
Add one parameter to a message and translations in zh-hans
Modified paths:
  • /trunk/extensions/EmailUsers/EmailUsers.alias.php (modified) (history)
  • /trunk/extensions/EmailUsers/EmailUsers.i18n.php (modified) (history)
  • /trunk/extensions/EmailUsers/SpecialEmailUsers.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EmailUsers/SpecialEmailUsers.php
@@ -106,7 +106,7 @@
107107 }
108108
109109 function validateTarget( $value, $alldata ) {
110 - global $wgEmailUsersMaxRecipients;
 110+ global $wgLang, $wgEmailUsersMaxRecipients;
111111
112112 if ( $alldata['target-reverse'] ) {
113113 $recipients = count( $this->userIds ) - count( $value );
@@ -117,7 +117,10 @@
118118 if ( $recipients <= 0 ) {
119119 return wfMsgExt( 'emailusers-norecipientselected', 'parse' );
120120 } else if ( $wgEmailUsersMaxRecipients > 0 && $recipients > $wgEmailUsersMaxRecipients ) {
121 - return wfMsgExt( 'emailusers-toomanyrecipientsselected', 'parse' );
 121+ return wfMsgExt(
 122+ 'emailusers-toomanyrecipientsselected', 'parse',
 123+ $wgLang->formatNum( $wgEmailUsersMaxRecipients )
 124+ );
122125 }
123126
124127 return true;
Index: trunk/extensions/EmailUsers/EmailUsers.alias.php
@@ -1,7 +1,7 @@
22 <?php
33
44 $specialPageAliases = array();
5 -
 5+
66 /** English
77 * @author Liangent
88 */
@@ -9,6 +9,13 @@
1010 'EmailUsers' => array( 'EmailUsers' ),
1111 );
1212
 13+/** Chinese (Simplified)
 14+ * @author Liangent
 15+ */
 16+$specialPageAliases['zh-hans'] = array(
 17+ 'EmailUsers' => array( '电邮多个用户' ),
 18+);
 19+
1320 /**
1421 * For backwards compatibility with MediaWiki 1.15 and earlier.
1522 */
Index: trunk/extensions/EmailUsers/EmailUsers.i18n.php
@@ -18,9 +18,9 @@
1919 'emailusers' => 'E-mail users',
2020 'emailusers-target-reverse' => 'Send to all users except for selected ones',
2121
22 - 'emailusers-norecipient' => 'There is no one you can send mail to.',
 22+ 'emailusers-norecipient' => 'There is no one you can send e-mail to.',
2323 'emailusers-norecipientselected' => 'No recipient is selected.',
24 - 'emailusers-toomanyrecipientsselected' => 'Too many recipients are selected.',
 24+ 'emailusers-toomanyrecipientsselected' => 'Too many recipients are selected (max. $1).',
2525 );
2626
2727 /** German (Deutsch)
@@ -95,3 +95,16 @@
9696 'emailusers-toomanyrecipientsselected' => 'Er zijn te veel ontvangers geselecteerd.',
9797 );
9898
 99+/** Chinese (Simplified)
 100+ * @author Liangent
 101+ */
 102+$messages['zh-hans'] = array(
 103+ 'emailusers-desc' => '允许用户给多个收件人发送电子邮件',
 104+
 105+ 'emailusers' => '给多个用户发送邮件',
 106+ 'emailusers-target-reverse' => '发送给除了选定用户的所有用户',
 107+
 108+ 'emailusers-norecipient' => '没有用户可以接收电子邮件。',
 109+ 'emailusers-norecipientselected' => '没有选择收件人。',
 110+ 'emailusers-toomanyrecipientsselected' => '选择了太多收件人(最多$1个)。',
 111+);

Follow-up revisions

RevisionCommit summaryAuthorDate
r81148Follow-up r81145: Use PLURALraymond19:08, 28 January 2011

Status & tagging log