Index: trunk/extensions/EmailUsers/SpecialEmailUsers.php |
— | — | @@ -106,7 +106,7 @@ |
107 | 107 | } |
108 | 108 | |
109 | 109 | function validateTarget( $value, $alldata ) { |
110 | | - global $wgEmailUsersMaxRecipients; |
| 110 | + global $wgLang, $wgEmailUsersMaxRecipients; |
111 | 111 | |
112 | 112 | if ( $alldata['target-reverse'] ) { |
113 | 113 | $recipients = count( $this->userIds ) - count( $value ); |
— | — | @@ -117,7 +117,10 @@ |
118 | 118 | if ( $recipients <= 0 ) { |
119 | 119 | return wfMsgExt( 'emailusers-norecipientselected', 'parse' ); |
120 | 120 | } else if ( $wgEmailUsersMaxRecipients > 0 && $recipients > $wgEmailUsersMaxRecipients ) { |
121 | | - return wfMsgExt( 'emailusers-toomanyrecipientsselected', 'parse' ); |
| 121 | + return wfMsgExt( |
| 122 | + 'emailusers-toomanyrecipientsselected', 'parse', |
| 123 | + $wgLang->formatNum( $wgEmailUsersMaxRecipients ) |
| 124 | + ); |
122 | 125 | } |
123 | 126 | |
124 | 127 | return true; |
Index: trunk/extensions/EmailUsers/EmailUsers.alias.php |
— | — | @@ -1,7 +1,7 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | $specialPageAliases = array(); |
5 | | - |
| 5 | + |
6 | 6 | /** English |
7 | 7 | * @author Liangent |
8 | 8 | */ |
— | — | @@ -9,6 +9,13 @@ |
10 | 10 | 'EmailUsers' => array( 'EmailUsers' ), |
11 | 11 | ); |
12 | 12 | |
| 13 | +/** Chinese (Simplified) |
| 14 | + * @author Liangent |
| 15 | + */ |
| 16 | +$specialPageAliases['zh-hans'] = array( |
| 17 | + 'EmailUsers' => array( '电邮多个用户' ), |
| 18 | +); |
| 19 | + |
13 | 20 | /** |
14 | 21 | * For backwards compatibility with MediaWiki 1.15 and earlier. |
15 | 22 | */ |
Index: trunk/extensions/EmailUsers/EmailUsers.i18n.php |
— | — | @@ -18,9 +18,9 @@ |
19 | 19 | 'emailusers' => 'E-mail users', |
20 | 20 | 'emailusers-target-reverse' => 'Send to all users except for selected ones', |
21 | 21 | |
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.', |
23 | 23 | 'emailusers-norecipientselected' => 'No recipient is selected.', |
24 | | - 'emailusers-toomanyrecipientsselected' => 'Too many recipients are selected.', |
| 24 | + 'emailusers-toomanyrecipientsselected' => 'Too many recipients are selected (max. $1).', |
25 | 25 | ); |
26 | 26 | |
27 | 27 | /** German (Deutsch) |
— | — | @@ -95,3 +95,16 @@ |
96 | 96 | 'emailusers-toomanyrecipientsselected' => 'Er zijn te veel ontvangers geselecteerd.', |
97 | 97 | ); |
98 | 98 | |
| 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 | +); |