Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -194,6 +194,7 @@ |
195 | 195 | 'code-field-comments' => '{{Identical|Notes}}', |
196 | 196 | 'code-field-path' => '{{Identical|Path}}', |
197 | 197 | 'code-field-select' => '{{Identical|Select}}', |
| 198 | + 'code-rev-id' => 'Modify the raw numeric revision ID (which is in $1) to the standard display format (rNNN). This probably shouldn\'t be localised as the hot-linking within comments only recognises rNNN and having another representation of this in the interface will cause confusion. In all other messages which take a revision ID as a parameter, the revision ID will already have been expanded using this message, so you should not include the \'r\' in the message itself.', |
198 | 199 | 'code-rev-author' => '{{Identical|Author}}', |
199 | 200 | 'code-rev-date' => '{{Identical|Date}}', |
200 | 201 | 'code-rev-message' => '{{Identical|Comment}}', |
— | — | @@ -235,6 +236,7 @@ |
236 | 237 | 'codereview-email-body3' => '* <code>$1</code> – Number of the revision where a regression has been introduced |
237 | 238 | * <code>$2</code> – URL to the revision |
238 | 239 | * <code>$3</code> – Commit message for the revision', |
| 240 | + 'code-repo-not-found' => 'Message displayed when the requested repository does not exist in the wiki\'s repo definitions. $1 is the name that was requested, and will be fully escaped before output.', |
239 | 241 | 'repoadmin-new-button' => '{{Identical|Create}}', |
240 | 242 | 'repoadmin-edit-button' => '{{Identical|OK}}', |
241 | 243 | 'right-repoadmin' => '{{doc-right}}', |
Index: trunk/extensions/CodeReview/ui/SpecialCode.php |
— | — | @@ -96,9 +96,7 @@ |
97 | 97 | // repository list with an appropriate message. |
98 | 98 | if ( !$view->mRepo ) { |
99 | 99 | $view = new CodeRepoListView(); |
100 | | - $wgOut->addHTML( "<p>" |
101 | | - . wfMsg( 'code-repo-not-found', $params[0] ) |
102 | | - . "</p>" ); |
| 100 | + $wgOut->addWikiMsg( 'code-repo-not-found', wfEscapeWikiText( $params[0] ) ); |
103 | 101 | } |
104 | 102 | } |
105 | 103 | $view->execute(); |