Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.i18n.php |
— | — | @@ -422,10 +422,9 @@ |
423 | 423 | |
424 | 424 | /* Front-end: feedback link close button */ |
425 | 425 | 'articlefeedbackv5-disable-flyover-title' => 'Remove this tool?', |
426 | | - 'articlefeedbackv5-disable-flyover-help-goto' => 'To remove $1, go to', |
| 426 | + 'articlefeedbackv5-disable-flyover-help' => 'To remove $1, go to $2 and check $3', |
427 | 427 | 'articlefeedbackv5-disable-flyover-help-emphasis-text' => 'Article Feedback', |
428 | 428 | 'articlefeedbackv5-disable-flyover-help-location' => 'My preferences > Appearance', |
429 | | - 'articlefeedbackv5-disable-flyover-help-direction' => 'and check', |
430 | 429 | 'articlefeedbackv5-disable-flyover-prefbutton' => 'Go to my preferences', |
431 | 430 | |
432 | 431 | ); |
— | — | @@ -703,10 +702,12 @@ |
704 | 703 | * <code>$3</code> – URL directly to feedback location |
705 | 704 | * <code>$4</code> – The help link.', |
706 | 705 | 'articlefeedbackv5-disable-flyover-title' => 'Title of the tooltip that pops up when you click the close button on a feedback trigger link, explaining how to remove the Article Feedback tool', |
707 | | - 'articlefeedbackv5-disable-flyover-help-goto' => 'Help text for the tooltip that pops up when you click the close button on a feedback trigger link, explaining where to go to remove the Article Feedback tool. <code>$1</code>: Emphasized name of the tool (text is {{msg-mw|articlefeedbackv5-disable-flyover-help-emphasis-text}})', |
708 | | - 'articlefeedbackv5-disable-flyover-help-emphasis-text' => 'The emphasis text for {{msg-mw|articlefeedbackv5-disable-flyover-help-goto}}', |
709 | | - 'articlefeedbackv5-disable-flyover-help-location' => 'A short indication of where to go to change your Article Feedback preferences, immediately below {{msg-mw|articlefeedbackv5-disable-flyover-help-goto}}', |
710 | | - 'articlefeedbackv5-disable-flyover-help-direction' => 'Help text for what to do once you get to the preferences panel (name of checkbox will be on the line below)', |
| 706 | + 'articlefeedbackv5-disable-flyover-help' => 'Help text for the tooltip that pops up when you click the close button on a feedback trigger link, explaining how to remove the Article Feedback tool. |
| 707 | +* <code>$1</code>: Emphasized name of the tool ({{msg-mw|articlefeedbackv5-disable-flyover-help-emphasis-text}}) |
| 708 | +* <code>$2</code>: The location of the preference panel ({{msg-mw|articlefeedbackv5-disable-flyover-help-location}}) |
| 709 | +* <code>$3</code>: The label of the checkbox ( {{msg-mw|articlefeedbackv5-disable-preference}})', |
| 710 | + 'articlefeedbackv5-disable-flyover-help-emphasis-text' => 'The emphasis text for {{msg-mw|articlefeedbackv5-disable-flyover-help}} (the name of the tool)', |
| 711 | + 'articlefeedbackv5-disable-flyover-help-location' => 'A short indication of where to go to change your Article Feedback preferences, inside {{msg-mw|articlefeedbackv5-disable-flyover-help}}', |
711 | 712 | 'articlefeedbackv5-disable-flyover-prefbutton' => 'The text of the big glossy button used to send the user to their preferences in the tooltip that pops up when you click the close button on a feedback trigger link, explaining how to remove the Article Feedback tool', |
712 | 713 | ); |
713 | 714 | |
Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.css |
— | — | @@ -1138,7 +1138,8 @@ |
1139 | 1139 | } |
1140 | 1140 | |
1141 | 1141 | /* Disable flyover */ |
1142 | | -.tipsy-inner { |
| 1142 | +.articleFeedbackv5-disable-flyover-tip-A .tipsy-inner, |
| 1143 | +.articleFeedbackv5-disable-flyover-tip-E .tipsy-inner { |
1143 | 1144 | padding: 0; |
1144 | 1145 | border-color: #888; |
1145 | 1146 | max-width: 40em; |
— | — | @@ -1148,16 +1149,19 @@ |
1149 | 1150 | margin-bottom: 5px; |
1150 | 1151 | font-size: 0.9em; |
1151 | 1152 | } |
1152 | | -.tipsy-arrow { |
| 1153 | +.articleFeedbackv5-disable-flyover-tip-A .tipsy-arrow, |
| 1154 | +.articleFeedbackv5-disable-flyover-tip-E .tipsy-arrow { |
1153 | 1155 | /* @embed */ |
1154 | 1156 | background-image: url(images/tipsy-flyover.png); |
1155 | 1157 | width: 23px; |
1156 | 1158 | height: 11px; |
1157 | 1159 | } |
1158 | | -.tipsy-nw .tipsy-arrow { |
| 1160 | +.articleFeedbackv5-disable-flyover-tip-A.tipsy-nw .tipsy-arrow, |
| 1161 | +.articleFeedbackv5-disable-flyover-tip-E.tipsy-nw .tipsy-arrow { |
1159 | 1162 | margin-top: -6px; |
1160 | 1163 | } |
1161 | | -.tipsy-se .tipsy-arrow { |
| 1164 | +.articleFeedbackv5-disable-flyover-tip-A.tipsy-se .tipsy-arrow, |
| 1165 | +.articleFeedbackv5-disable-flyover-tip-E.tipsy-se .tipsy-arrow { |
1162 | 1166 | margin-top: -11px; |
1163 | 1167 | } |
1164 | 1168 | .articleFeedbackv5-disable-flyover { |
Index: trunk/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js |
— | — | @@ -245,12 +245,7 @@ |
246 | 246 | <a id="articleFeedbackv5-noteflyover-close" class="articleFeedbackv5-form-flyover-closebutton" href="#"></a>\ |
247 | 247 | </div>\ |
248 | 248 | <div class="articleFeedbackv5-form-flyover">\ |
249 | | - <div class="articleFeedbackv5-disable-flyover-help" >\ |
250 | | - <p class="articleFeedbackv5-disable-flyover-help-goto"></p>\ |
251 | | - <p>"<html:msg key="disable-flyover-help-location" />"</p>\ |
252 | | - <p><html:msg key="disable-flyover-help-direction" /></p>\ |
253 | | - <p>"<html:msg key="disable-preference" />"</p>\ |
254 | | - </div>\ |
| 249 | + <div class="articleFeedbackv5-disable-flyover-help" ></div>\ |
255 | 250 | <div class="articleFeedbackv5-flyover-footer">\ |
256 | 251 | <a class="articleFeedbackv5-disable-flyover-button" target="_blank"><html:msg key="disable-flyover-prefbutton" /></a>\ |
257 | 252 | </div>\ |
— | — | @@ -2274,10 +2269,10 @@ |
2275 | 2270 | // and it needs to show up if the site subhead (e.g., "From Wikipedia, the free |
2276 | 2271 | // encyclopedia") is not visible for any reason. |
2277 | 2272 | if ( $( '#siteSub' ).filter( ':visible' ).length ) { |
2278 | | - $link.prepend( ' | ' ); |
| 2273 | + $link.prepend( ' ' + mw.msg('pipe-separator') + ' ' ); |
2279 | 2274 | $( '#siteSub' ).append( $link ); |
2280 | 2275 | } else if ( $( 'h1.pagetitle + p.subtitle' ).filter( ':visible' ).length ) { |
2281 | | - $link.prepend( ' | ' ); |
| 2276 | + $link.prepend( ' ' + mw.msg('pipe-separator') + ' ' ); |
2282 | 2277 | $( 'h1.pagetitle + p.subtitle' ).append( $link ); |
2283 | 2278 | } else if ( $( '#mw_contentholder .mw-topboxes' ).length ) { |
2284 | 2279 | $( '#mw_contentholder .mw-topboxes' ).after( $link ); |
— | — | @@ -2921,12 +2916,16 @@ |
2922 | 2917 | var full = mw.html.escape( mw.msg( fulltext ) ); |
2923 | 2918 | for ( var i = 1; i < arguments.length; i++ ) { |
2924 | 2919 | var sub = arguments[i]; |
2925 | | - var re = new RegExp("\\$" + i); |
2926 | | - full = full.replace( re, mw.html.element( |
| 2920 | + var re = new RegExp("\\$" + i, 'g'); |
| 2921 | + if ( sub.tag == 'quotes' ) { |
| 2922 | + full = full.replace( re, '"' + mw.msg( sub.text ) + '"' ); |
| 2923 | + } else { |
| 2924 | + full = full.replace( re, mw.html.element( |
2927 | 2925 | 'tag' in sub ? sub.tag : 'a', |
2928 | 2926 | $.articleFeedbackv5.attribs( sub ), |
2929 | 2927 | mw.msg( sub.text ) |
2930 | 2928 | ).toString() ); |
| 2929 | + } |
2931 | 2930 | } |
2932 | 2931 | return full; |
2933 | 2932 | }; |
— | — | @@ -3549,11 +3548,17 @@ |
3550 | 3549 | $flyover.find( '.articleFeedbackv5-disable-flyover' ) |
3551 | 3550 | .addClass( 'articleFeedbackv5-disable-flyover-' + linkId ); |
3552 | 3551 | |
3553 | | - $flyover.find( '.articleFeedbackv5-disable-flyover-help-goto' ) |
| 3552 | + $flyover.find( '.articleFeedbackv5-disable-flyover-help' ) |
3554 | 3553 | .html( $.articleFeedbackv5.buildLink( |
3555 | | - 'articlefeedbackv5-disable-flyover-help-goto', { |
| 3554 | + 'articlefeedbackv5-disable-flyover-help', { |
3556 | 3555 | tag: 'strong', |
3557 | 3556 | text: 'articlefeedbackv5-disable-flyover-help-emphasis-text' |
| 3557 | + }, { |
| 3558 | + tag: 'quotes', |
| 3559 | + text: 'articlefeedbackv5-disable-flyover-help-location', |
| 3560 | + }, { |
| 3561 | + tag: 'quotes', |
| 3562 | + text: 'articlefeedbackv5-disable-preference', |
3558 | 3563 | } ) ); |
3559 | 3564 | |
3560 | 3565 | var prefLink = mw.config.get( 'wgScript' ) + '?' + |
Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php |
— | — | @@ -147,12 +147,13 @@ |
148 | 148 | 'articlefeedbackv5-transparency-terms-linktext', |
149 | 149 | 'parentheses', |
150 | 150 | 'articlefeedbackv5-disable-flyover-title', |
151 | | - 'articlefeedbackv5-disable-flyover-help-goto', |
| 151 | + 'articlefeedbackv5-disable-flyover-help', |
152 | 152 | 'articlefeedbackv5-disable-flyover-help-emphasis-text', |
153 | 153 | 'articlefeedbackv5-disable-flyover-help-location', |
154 | 154 | 'articlefeedbackv5-disable-flyover-help-direction', |
155 | 155 | 'articlefeedbackv5-disable-flyover-prefbutton', |
156 | 156 | 'articlefeedbackv5-disable-preference', |
| 157 | + 'pipe-separator', |
157 | 158 | ), |
158 | 159 | 'dependencies' => array( |
159 | 160 | 'jquery.appear', |