Index: trunk/extensions/MostRevisors/MostRevisors_body.php |
— | — | @@ -129,9 +129,11 @@ |
130 | 130 | if ( !is_null( $title ) ) { |
131 | 131 | $skin = $wgUser->getSkin(); |
132 | 132 | $link = $row->page_is_redirect |
133 | | - ? '<span class="allpagesredirect">' . $skin->makeKnownLinkObj( $title ) . '</span>' |
134 | | - : $skin->makeKnownLinkObj( $title ); |
135 | | - $link .= " - $row->value " . wfMsg( 'mostrevisors-users' ); |
| 133 | + ? '<span class="allpagesredirect">' . $skin->makeKnownLinkObj( $title ) . '</span>' |
| 134 | + : $skin->makeKnownLinkObj( $title ); |
| 135 | + $link .= ' ' . wfMsgExt( 'mostrevisors-users', array( 'parsemag'), $row->value ); |
| 136 | + // FIXME: check if target page of the link below exists before linking to it. |
| 137 | + // FIXME: move brackets from code into message, see http://www.mediawiki.org/wiki/Internationalisation#Symbols.2C_colons.2C_brackets.2C_etc._are_parts_of_messages |
136 | 138 | if ( $wgMostRevisorsLinkContributors == True ) $link .= " (" . $skin->makeKnownLinkObj( Title::makeTitleSafe( - 1, 'Contributors/' . $title ), wfMsg( 'mostrevisors-viewcontributors' ) ) . ")"; |
137 | 139 | return( "<li>{$link}</li>\n" ); |
138 | 140 | } else { |
Index: trunk/extensions/MostRevisors/MostRevisors.i18n.php |
— | — | @@ -19,11 +19,11 @@ |
20 | 20 | 'mostrevisors-submit' => 'Go', |
21 | 21 | 'mostrevisors-showredir' => 'Show redirect pages', |
22 | 22 | 'mostrevisors-hideredir' => 'Hide redirect pages', |
| 23 | + 'mostrevisors-users' => '- $1 {{PLURAL:$1|editor|editors}}', |
23 | 24 | 'mostrevisors-viewcontributors' => 'View main contributors', |
24 | 25 | //'mostrevisors-text' => 'Show [[Special:MostRevisions|pages with the most revisors]], starting from [[MediaWiki:Mostrevisors-limit-few-revisors|{{MediaWiki:Mostrevisors-limit-few-revisors}} revisors]].', |
25 | 26 | |
26 | 27 | // Settings. Do not translate these messages. |
27 | | - 'mostrevisors-users' => 'editors', |
28 | 28 | 'mostrevisors-limit-few-revisors' => '1', |
29 | 29 | ); |
30 | 30 | |