Index: trunk/extensions/WikiLove/WikiLove.php |
— | — | @@ -126,6 +126,9 @@ |
127 | 127 | 'wikilove-err-gallery-again', |
128 | 128 | 'wikilove-what-is-this', |
129 | 129 | 'wikilove-anon-warning', |
| 130 | + 'wikilove-commons-text', |
| 131 | + 'wikilove-commons-link', |
| 132 | + 'wikilove-commons-url', |
130 | 133 | ), |
131 | 134 | 'dependencies' => array( |
132 | 135 | 'jquery.ui.dialog', |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css |
— | — | @@ -226,6 +226,10 @@ |
227 | 227 | resize: none; |
228 | 228 | } |
229 | 229 | |
| 230 | +/*#mw-wikilove-dialog*/ #mw-wikilove-commons-text { |
| 231 | + margin: 5px 0px 5px 15px; |
| 232 | +} |
| 233 | + |
230 | 234 | /* add details gallery */ |
231 | 235 | /*#mw-wikilove-dialog*/ #mw-wikilove-gallery { |
232 | 236 | min-height: 40px; |
Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -84,6 +84,9 @@ |
85 | 85 | <label for="mw-wikilove-image" id="mw-wikilove-image-label"><html:msg key="wikilove-image"/></label>\ |
86 | 86 | <span class="mw-wikilove-note" id="mw-wikilove-image-note"><html:msg key="wikilove-image-example"/></span>\ |
87 | 87 | <input type="text" class="text" id="mw-wikilove-image"/>\ |
| 88 | + <div id="mw-wikilove-commons-text">\ |
| 89 | + ' + mw.msg( 'wikilove-commons-text', '<a href="' + mw.msg( 'wikilove-commons-url' ) +'" target="_blank">' + mw.msg( 'wikilove-commons-link' ) +'</a>' ) + '\ |
| 90 | + </div>\ |
88 | 91 | <label for="mw-wikilove-message" id="mw-wikilove-message-label"><html:msg key="wikilove-enter-message"/></label>\ |
89 | 92 | <span class="mw-wikilove-note" id="mw-wikilove-message-note"><html:msg key="wikilove-omit-sig"/></span>\ |
90 | 93 | <textarea id="mw-wikilove-message"></textarea>\ |
— | — | @@ -244,7 +247,7 @@ |
245 | 248 | $( '#mw-wikilove-title' ).val( currentTypeOrSubtype.title || '' ); |
246 | 249 | |
247 | 250 | // show or hide image label and textbox depending on fields configuration |
248 | | - $( '#mw-wikilove-image, #mw-wikilove-image-label, #mw-wikilove-image-note' ) |
| 251 | + $( '#mw-wikilove-image, #mw-wikilove-image-label, #mw-wikilove-image-note, #mw-wikilove-commons-text' ) |
249 | 252 | .toggle( $.inArray( 'image', currentTypeOrSubtype.fields ) >= 0 ); |
250 | 253 | |
251 | 254 | // set the new text for the image textbox |
Index: trunk/extensions/WikiLove/WikiLove.i18n.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | 'wikilove-get-started-list-2' => 'Add details to your WikiLove', |
26 | 26 | 'wikilove-get-started-list-3' => 'Send your WikiLove!', |
27 | 27 | 'wikilove-add-details' => 'Add details', |
28 | | - 'wikilove-image' => 'Enter an image from Wikimedia Commons:', |
| 28 | + 'wikilove-image' => 'Enter an image filename:', |
29 | 29 | 'wikilove-select-image' => 'Select an image:', |
30 | 30 | 'wikilove-header' => 'Enter a header:', |
31 | 31 | 'wikilove-title' => 'Enter a title:', |
— | — | @@ -48,6 +48,9 @@ |
49 | 49 | 'wikilove-summary' => '/* $1 */ new WikiLove message', |
50 | 50 | 'wikilove-what-is-this' => "What is this?", |
51 | 51 | 'wikilove-anon-warning' => 'Note: This user is not registered, he or she many not notice this message.', |
| 52 | + 'wikilove-commons-text' => 'You can find images by browsing $1.', |
| 53 | + 'wikilove-commons-link' => 'Wikimedia Commons', |
| 54 | + 'wikilove-commons-url' => 'http://commons.wikimedia.org', |
52 | 55 | ); |
53 | 56 | |
54 | 57 | /** Message documentation (Message documentation) |
— | — | @@ -58,6 +61,7 @@ |
59 | 62 | 'wikilove-preview' => 'Title. Noun.', |
60 | 63 | 'wikilove-barnstar-header' => 'See [[:wikipedia:Barnstar]]. Probably not literally translatable.', |
61 | 64 | 'wikilove-image-example' => 'The filename should be an actual image on Wikimedia Commons.', |
| 65 | + 'wikilove-commons-text' => '$1 gets replaced by a link with wikilove-commons-link as caption and wikilove-commons-url as URL', |
62 | 66 | ); |
63 | 67 | |
64 | 68 | /** Bulgarian (Български) |