Index: trunk/extensions/ArticleAssessmentPilot/ArticleAssessmentPilot.i18n.php |
— | — | @@ -37,11 +37,8 @@ |
38 | 38 | You may wish to re-rate it.", |
39 | 39 | |
40 | 40 | # Links get rewritten in javascript. |
41 | | - # FIXME: These links are invalid. Translation is impossible because you cannot save pages with such links. |
42 | | - # The parser strips the pipe and saves as "[[Show]]". |
43 | | - # Even customization in MediaWiki namespace is impossible therefore. |
44 | | - 'articleassessment-results-show' => "(Results hidden. [[|Show]] them.)", |
45 | | - 'articleassessment-results-hide' => "([[|Hide results]])", |
| 41 | + 'articleassessment-results-show' => "(Results hidden. [[#|Show]] them.)", |
| 42 | + 'articleassessment-results-hide' => "([[#|Hide results]])", |
46 | 43 | ); |
47 | 44 | |
48 | 45 | /** Message documentation (Message documentation) |
Index: trunk/extensions/ArticleAssessmentPilot/js/ArticleAssessment.js |
— | — | @@ -99,16 +99,16 @@ |
100 | 100 | .text( instructions ) |
101 | 101 | .end() |
102 | 102 | .find( '.article-assessment-rate-feedback' ) |
103 | | - .html( feedback.replace( /\[\[([^\|\]]*)\|([^\|\]]*)\]\]/, '<a href="' + wgArticlePath + '">$2</a>' ) ) |
| 103 | + .html( feedback.replace( /\[\[([^\|\]]*)\|([^\|\]]*)\]\]/g, '<a href="' + wgArticlePath + '">$2</a>' ) ) |
104 | 104 | .end() |
105 | 105 | .find( '#article-assessment-ratings legend' ) |
106 | 106 | .text( articlerating ) |
107 | 107 | .end() |
108 | 108 | .find( '.article-assessment-show-ratings' ) |
109 | | - .html( resultsshow.replace( /\[\[\|([^\]]*)\]\]/, '<a href="#">$1</a>' ) ) |
| 109 | + .html( resultsshow.replace( /\[\[#\|([^\]]*)\]\]/, '<a href="#">$1</a>' ) ) |
110 | 110 | .end() |
111 | 111 | .find( '.article-assessment-hide-ratings') |
112 | | - .html( resultshide.replace( /\[\[\|([^\]]*)\]\]/, '<a href="#">$1</a>' ) ) |
| 112 | + .html( resultshide.replace( /\[\[#\|([^\]]*)\]\]/, '<a href="#">$1</a>' ) ) |
113 | 113 | .end(); |
114 | 114 | for ( var i = 0; i < settings.fieldMessages.length; i++ ) { |
115 | 115 | var $field = $( settings.fieldHTML ), |
— | — | @@ -392,4 +392,4 @@ |
393 | 393 | $( document ).ready( function () { |
394 | 394 | $.ArticleAssessment.fn.init( ); |
395 | 395 | } ); //document ready |
396 | | -} )( jQuery ); |
\ No newline at end of file |
| 396 | +} )( jQuery ); |