Index: trunk/extensions/CodeReview/CodeReview.i18n.php |
— | — | @@ -18,6 +18,7 @@ |
19 | 19 | 'code-prop-changes' => 'Status & tagging log', |
20 | 20 | 'code-desc' => '[[Special:Code|Code review tool]] with [[Special:RepoAdmin|Subversion support]]', |
21 | 21 | 'code-no-repo' => 'No repository configured!', |
| 22 | + 'code-load-diff'=> 'Loading diff…', |
22 | 23 | 'code-notes' => 'review notes', |
23 | 24 | 'code-authors' => 'authors', |
24 | 25 | 'code-tags' => 'tags', |
Index: trunk/extensions/CodeReview/CodeRevisionView.php |
— | — | @@ -290,19 +290,19 @@ |
291 | 291 | $hilite = new CodeDiffHighlighter(); |
292 | 292 | return $hilite->render( $diff ); |
293 | 293 | } |
294 | | - |
| 294 | + |
295 | 295 | protected function stubDiffLoader() { |
296 | | - global $wgOut, $wgScriptPath; |
| 296 | + global $wgOut, $wgScriptPath, $wgCodeReviewStyleVersion; |
297 | 297 | $encRepo = Xml::encodeJsVar( $this->mRepo->getName() ); |
298 | 298 | $encRev = Xml::encodeJsVar( $this->mRev->getId() ); |
299 | | - $wgOut->addScriptFile( "$wgScriptPath/extensions/CodeReview/codereview.js" ); |
| 299 | + $wgOut->addScriptFile( "$wgScriptPath/extensions/CodeReview/codereview.js?$wgCodeReviewStyleVersion" ); |
300 | 300 | $wgOut->addInlineScript( |
301 | 301 | "addOnloadHook( |
302 | 302 | function() { |
303 | 303 | CodeReview.loadDiff($encRepo,$encRev); |
304 | 304 | } |
305 | 305 | );" ); |
306 | | - return "Loading diff..."; |
| 306 | + return wfMsg( 'code-load-diff' ); |
307 | 307 | } |
308 | 308 | |
309 | 309 | protected function formatComments() { |
Index: trunk/extensions/CodeReview/CodeReview.php |
— | — | @@ -96,8 +96,9 @@ |
97 | 97 | $wgSubversionProxy = false; |
98 | 98 | $wgSubversionProxyTimeout = 30; // default 3 secs is too short :) |
99 | 99 | |
| 100 | +// Bump the version number every time you change a CodeReview .css/.js file |
| 101 | +$wgCodeReviewStyleVersion = 3; |
100 | 102 | |
101 | | -$wgCodeReviewStyleVersion = 3; |
102 | 103 | // The name of a repo which represents the code running on this wiki, used to highlight active revisions |
103 | 104 | $wgWikiSVN = 'MediaWiki'; |
104 | 105 | |