http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90958
Revision: 90958
Author: janpaul123
Date: 2011-06-28 14:12:40 +0000 (Tue, 28 Jun 2011)
Log Message:
-----------
Better directions to Wikimedia Commons.
Modified Paths:
--------------
trunk/extensions/WikiLove/WikiLove.i18n.php
trunk/extensions/WikiLove/WikiLove.php
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
Modified: trunk/extensions/WikiLove/WikiLove.i18n.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.i18n.php 2011-06-28 14:10:55 UTC (rev
90957)
+++ trunk/extensions/WikiLove/WikiLove.i18n.php 2011-06-28 14:12:40 UTC (rev
90958)
@@ -24,7 +24,7 @@
'wikilove-get-started-list-2' => 'Add details to your WikiLove',
'wikilove-get-started-list-3' => 'Send your WikiLove!',
'wikilove-add-details' => 'Add details',
- 'wikilove-image' => 'Enter an image from Wikimedia Commons:',
+ 'wikilove-image' => 'Enter an image filename:',
'wikilove-select-image' => 'Select an image:',
'wikilove-header' => 'Enter a header:',
'wikilove-title' => 'Enter a title:',
@@ -48,6 +48,9 @@
'wikilove-summary' => '/* $1 */ new WikiLove message',
'wikilove-what-is-this' => "What is this?",
'wikilove-anon-warning' => 'Note: This user is not registered, he or
she many not notice this message.',
+ 'wikilove-commons-text' => 'You can find images by browsing $1.',
+ 'wikilove-commons-link' => 'Wikimedia Commons',
+ 'wikilove-commons-url' => 'http://commons.wikimedia.org',
);
/** Message documentation (Message documentation)
@@ -58,6 +61,7 @@
'wikilove-preview' => 'Title. Noun.',
'wikilove-barnstar-header' => 'See [[:wikipedia:Barnstar]]. Probably
not literally translatable.',
'wikilove-image-example' => 'The filename should be an actual image on
Wikimedia Commons.',
+ 'wikilove-commons-text' => '$1 gets replaced by a link with
wikilove-commons-link as caption and wikilove-commons-url as URL',
);
/** Bulgarian (Български)
Modified: trunk/extensions/WikiLove/WikiLove.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.php 2011-06-28 14:10:55 UTC (rev
90957)
+++ trunk/extensions/WikiLove/WikiLove.php 2011-06-28 14:12:40 UTC (rev
90958)
@@ -126,6 +126,9 @@
'wikilove-err-gallery-again',
'wikilove-what-is-this',
'wikilove-anon-warning',
+ 'wikilove-commons-text',
+ 'wikilove-commons-link',
+ 'wikilove-commons-url',
),
'dependencies' => array(
'jquery.ui.dialog',
Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
===================================================================
--- trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
2011-06-28 14:10:55 UTC (rev 90957)
+++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
2011-06-28 14:12:40 UTC (rev 90958)
@@ -84,6 +84,9 @@
<label for="mw-wikilove-image"
id="mw-wikilove-image-label"><html:msg key="wikilove-image"/></label>\
<span class="mw-wikilove-note"
id="mw-wikilove-image-note"><html:msg key="wikilove-image-example"/></span>\
<input type="text" class="text" id="mw-wikilove-image"/>\
+ <div id="mw-wikilove-commons-text">\
+ ' + mw.msg( 'wikilove-commons-text', '<a href="' + mw.msg(
'wikilove-commons-url' ) +'" target="_blank">' + mw.msg(
'wikilove-commons-link' ) +'</a>' ) + '\
+ </div>\
<label for="mw-wikilove-message"
id="mw-wikilove-message-label"><html:msg key="wikilove-enter-message"/></label>\
<span class="mw-wikilove-note"
id="mw-wikilove-message-note"><html:msg key="wikilove-omit-sig"/></span>\
<textarea id="mw-wikilove-message"></textarea>\
@@ -244,7 +247,7 @@
$( '#mw-wikilove-title' ).val( currentTypeOrSubtype.title || ''
);
// show or hide image label and textbox depending on fields
configuration
- $( '#mw-wikilove-image, #mw-wikilove-image-label,
#mw-wikilove-image-note' )
+ $( '#mw-wikilove-image, #mw-wikilove-image-label,
#mw-wikilove-image-note, #mw-wikilove-commons-text' )
.toggle( $.inArray( 'image',
currentTypeOrSubtype.fields ) >= 0 );
// set the new text for the image textbox
Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
===================================================================
--- trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
2011-06-28 14:10:55 UTC (rev 90957)
+++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.css
2011-06-28 14:12:40 UTC (rev 90958)
@@ -226,6 +226,10 @@
resize: none;
}
+/*#mw-wikilove-dialog*/ #mw-wikilove-commons-text {
+ margin: 5px 0px 5px 15px;
+}
+
/* add details gallery */
/*#mw-wikilove-dialog*/ #mw-wikilove-gallery {
min-height: 40px;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs