https://www.mediawiki.org/wiki/Special:Code/MediaWiki/106318
Revision: 106318
Author: reedy
Date: 2011-12-15 13:33:21 +0000 (Thu, 15 Dec 2011)
Log Message:
-----------
* (bug 33159) Enable localizing the content of the 'What is this?' link on the
WikiLove interface
Modified Paths:
--------------
trunk/extensions/WikiLove/WikiLove.i18n.php
trunk/extensions/WikiLove/WikiLove.php
trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
Modified: trunk/extensions/WikiLove/WikiLove.i18n.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.i18n.php 2011-12-15 13:26:29 UTC (rev
106317)
+++ trunk/extensions/WikiLove/WikiLove.i18n.php 2011-12-15 13:33:21 UTC (rev
106318)
@@ -173,6 +173,7 @@
'wikilove-err-send-api' => 'Something went wrong when sending the
message. Please try again.',
'wikilove-summary' => '/* $1 */ new WikiLove message',
'wikilove-what-is-this' => "What is this?",
+ 'wikilove-what-is-this-link' =>
"https://www.mediawiki.org/wiki/WikiLove",
'wikilove-anon-warning' => 'Note: This user is not registered, he or
she may not notice this message.',
'wikilove-commons-text' => 'You can find images by browsing $1.',
'wikilove-commons-link' => 'Wikimedia Commons',
@@ -235,6 +236,7 @@
'wikilove-err-msg' => 'A warning shown when the message is empty.',
'wikilove-what-is-this' => '[[File:Wiki Love 002.png|thumb]]
{{Identical|What is this}}',
+ 'wikilove-what-is-this-link' => '{{optional}}',
'wikilove-commons-text' => '[[File:Wiki Love 004.png|thumb]]
$1 gets replaced by a link with {{msg-mw|wikilove-commons-link}} ("Wikimedia
Commons") as caption and {{msg-mw|wikilove-commons-url}} as URL.',
'wikilove-commons-link' => '{{optional}}',
Modified: trunk/extensions/WikiLove/WikiLove.php
===================================================================
--- trunk/extensions/WikiLove/WikiLove.php 2011-12-15 13:26:29 UTC (rev
106317)
+++ trunk/extensions/WikiLove/WikiLove.php 2011-12-15 13:33:21 UTC (rev
106318)
@@ -259,6 +259,7 @@
'wikilove-err-gallery',
'wikilove-err-gallery-again',
'wikilove-what-is-this',
+ 'wikilove-what-is-this-link',
'wikilove-anon-warning',
'wikilove-commons-text',
'wikilove-commons-link',
Modified: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
===================================================================
--- trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
2011-12-15 13:26:29 UTC (rev 106317)
+++ trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js
2011-12-15 13:33:21 UTC (rev 106318)
@@ -44,7 +44,7 @@
$button.append( '<div
class="mw-wikilove-r-cap"></div>');
$typeList.append( $( '<li tabindex="0"></li>'
).append( $button ) );
}
-
+
var commonsLink = $( '<a>' )
.attr( 'href', mw.msg(
'wikilove-commons-url' ) )
.attr( 'target', '_blank' )
@@ -74,7 +74,7 @@
<li><html:msg key="wikilove-get-started-list-2"/></li>\
<li><html:msg key="wikilove-get-started-list-3"/></li>\
</ol>\
- <p><a target="_blank" href="http://www.mediawiki.org/wiki/WikiLove">\
+ <p><a target="_blank" href="' + mw.msg( 'wikilove-what-is-this-link' )
+ '">\
<html:msg key="wikilove-what-is-this"/>\
</a></p>\
<p id="mw-wikilove-anon-warning"><strong><html:msg
key="wikilove-anon-warning"/></strong></p>\
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs