Index: trunk/extensions/Gadgets/Gadgets.i18n.php |
— | — | @@ -33,7 +33,9 @@ |
34 | 34 | 'gadgets-pagetext' => "Below is a list of special gadgets users can enable on their [[Special:Preferences|preferences page]], as defined by the [[MediaWiki:Gadgets-definition|definitions]]. |
35 | 35 | This overview provides easy access to the system message pages that define each gadget's description and code.", |
36 | 36 | 'gadgets-uses' => 'Uses', |
37 | | - 'gadgets-required-rights' => 'Requires the {{PLURAL:$2|$1 right|following rights: $1}}.', |
| 37 | + 'gadgets-required-rights' => 'Requires the following {{PLURAL:$2|right|rights}}: |
| 38 | + |
| 39 | +$1', |
38 | 40 | 'gadgets-default' => 'Enabled for everyone by default.', |
39 | 41 | 'gadgets-export' => 'Export', |
40 | 42 | 'gadgets-export-title' => 'Gadget export', |
— | — | @@ -68,7 +70,7 @@ |
69 | 71 | |
70 | 72 | See [http://meta.wikimedia.org/wiki/Special:Gadgets Gadgets page in meta.wikimedia.org]", |
71 | 73 | 'gadgets-required-rights' => 'Parameters: |
72 | | -* $1 - a list. |
| 74 | +* $1 - a list in wikitext. |
73 | 75 | * $2 - the number of items in list $1 for PLURAL use.', |
74 | 76 | 'gadgets-export' => 'Used on [[Special:Gadgets]]. This is a verb, not noun. |
75 | 77 | {{Identical|Export}}', |
— | — | @@ -2775,7 +2777,9 @@ |
2776 | 2778 | 'gadgets-pagetext' => '以下是一个按照[[MediaWiki:Gadgets-definition]]定义的特殊小工具列表,用户可以在他们的参数设置页面中激活它们。 |
2777 | 2779 | 通过这个概览可以方便的获得系统信息页面,从而可以定义每个小工具的描述以及源码。', |
2778 | 2780 | 'gadgets-uses' => '使用', |
2779 | | - 'gadgets-required-rights' => '需要{{PLURAL:$2|$1权限|以下权限:$1}}.', |
| 2781 | + 'gadgets-required-rights' => '需要以下{{PLURAL:$2|权限|权限}}: |
| 2782 | + |
| 2783 | +$1', |
2780 | 2784 | 'gadgets-default' => '默认情况下启用的每个人。', |
2781 | 2785 | 'gadgets-export' => '导出', |
2782 | 2786 | 'gadgets-export-title' => '小工具出口', |
— | — | @@ -2807,7 +2811,9 @@ |
2808 | 2812 | |
2809 | 2813 | 這個概覽提供的系統資訊頁面的簡易存取,可以定義每個小工具的描述以及原始碼。', |
2810 | 2814 | 'gadgets-uses' => '使用', |
2811 | | - 'gadgets-required-rights' => '需要{{PLURAL:$2|$1權限|以下權限:$1}}。', |
| 2815 | + 'gadgets-required-rights' => '需要以下{{PLURAL:$2|權限|權限}}: |
| 2816 | + |
| 2817 | +$1', |
2812 | 2818 | 'gadgets-default' => '預設所有人啟用。', |
2813 | 2819 | 'gadgets-export' => '匯出', |
2814 | 2820 | 'gadgets-export-title' => '匯出小工具', |
Index: trunk/extensions/Gadgets/SpecialGadgets.php |
— | — | @@ -117,11 +117,14 @@ |
118 | 118 | $lnk[] = $skin->link( $t, htmlspecialchars( $t->getText() ) ); |
119 | 119 | } |
120 | 120 | $wgOut->addHTML( $wgLang->commaList( $lnk ) ); |
121 | | - $rights = $gadget->getRequiredRights(); |
| 121 | + $rights = array(); |
| 122 | + foreach ( $gadget->getRequiredRights() as $right ) { |
| 123 | + $rights[] = '* ' . wfMessage( "right-$right" )->plain(); |
| 124 | + } |
122 | 125 | |
123 | 126 | if ( count( $rights ) ) { |
124 | 127 | $wgOut->addHTML( '<br />' . |
125 | | - wfMessage( 'gadgets-required-rights', $wgLang->commaList( $rights ), count( $rights ) )->parse() |
| 128 | + wfMessage( 'gadgets-required-rights', implode( "\n", $rights ), count( $rights ) )->parse() |
126 | 129 | ); |
127 | 130 | } |
128 | 131 | |