https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113613
Revision: 113613
Author: santhosh
Date: 2012-03-12 06:31:24 +0000 (Mon, 12 Mar 2012)
Log Message:
-----------
Fix Bug 33032 : Message missing from i18n
Patch by Grunny, with some plural support related changes.
Modified Paths:
--------------
trunk/extensions/Vector/Vector.i18n.php
trunk/extensions/Vector/Vector.php
trunk/extensions/Vector/modules/ext.vector.footerCleanup.js
Modified: trunk/extensions/Vector/Vector.i18n.php
===================================================================
--- trunk/extensions/Vector/Vector.i18n.php 2012-03-12 05:28:15 UTC (rev
113612)
+++ trunk/extensions/Vector/Vector.i18n.php 2012-03-12 06:31:24 UTC (rev
113613)
@@ -22,6 +22,7 @@
'vector-simplesearch-search' => 'Search',
'vector-simplesearch-containing' => 'containing...',
'vector-noexperiments-preference' => 'Exclude me from feature
experiments',
+ 'vector-footercleanup-transclusion' => 'This page contains
{{plural:$1|transclusion|transclusions}} of <strong>$1</strong> other
{{plural:$1|page|pages}}.',
);
/** Message documentation (Message documentation)
@@ -40,6 +41,7 @@
{{Identical|Search}}',
'vector-simplesearch-containing' => 'Label used in the special item of
the search suggestions list which gives the user an option to perform a full
text search for the term.',
'vector-noexperiments-preference' => 'An option in
[[Special:Preferences]]',
+ 'vector-footercleanup-transclusion' => 'Label used in the footer while
editing to display the count of how many transclusions a page contains.',
);
/** Afrikaans (Afrikaans)
Modified: trunk/extensions/Vector/Vector.php
===================================================================
--- trunk/extensions/Vector/Vector.php 2012-03-12 05:28:15 UTC (rev 113612)
+++ trunk/extensions/Vector/Vector.php 2012-03-12 06:31:24 UTC (rev 113613)
@@ -105,6 +105,13 @@
'ext.vector.footerCleanup' => $vectorResourceTemplate + array(
'scripts' => 'ext.vector.footerCleanup.js',
'styles' => 'ext.vector.footerCleanup.css',
+ 'messages' => array (
+ 'vector-footercleanup-transclusion',
+ ),
+ 'dependencies' => array(
+ // The message require plural support at javascript.
+ 'mediawiki.jqueryMsg',
+ )
),
'ext.vector.sectionEditLinks' => $vectorResourceTemplate + array(
'scripts' => 'ext.vector.sectionEditLinks.js',
Modified: trunk/extensions/Vector/modules/ext.vector.footerCleanup.js
===================================================================
--- trunk/extensions/Vector/modules/ext.vector.footerCleanup.js 2012-03-12
05:28:15 UTC (rev 113612)
+++ trunk/extensions/Vector/modules/ext.vector.footerCleanup.js 2012-03-12
06:31:24 UTC (rev 113613)
@@ -43,10 +43,7 @@
$( '.templatesUsed ul' )
.wrap( '<div id="transclusions-list" class="collapsible-list
collapsed"></div>' )
.parent()
- // FIXME: i18n, remove link from message and let community add
link to transclusion page if it exists
- .prepend( '<label>This page contains <a
href="http://en.wikipedia.org/wiki/transclusion">transclusions</a> of <strong>'
- + transclusionCount
- + '</strong> other pages.</label>' );
+ .prepend( '<label>' + mw.msg(
'vector-footercleanup-transclusion', transclusionCount ) + '</label>' );
$( '.mw-templatesUsedExplanation' ).remove();
$( '.collapsible-list label' )
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs