http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93724
Revision: 93724 Author: siebrand Date: 2011-08-02 10:34:23 +0000 (Tue, 02 Aug 2011) Log Message: ----------- Add plural support for 'ameta-keywordsadd' and more tweaks to improve usability. Modified Paths: -------------- trunk/extensions/AdvancedMeta/AdvancedMeta.i18n.php trunk/extensions/AdvancedMeta/AdvancedMeta.php Modified: trunk/extensions/AdvancedMeta/AdvancedMeta.i18n.php =================================================================== --- trunk/extensions/AdvancedMeta/AdvancedMeta.i18n.php 2011-08-02 10:20:49 UTC (rev 93723) +++ trunk/extensions/AdvancedMeta/AdvancedMeta.i18n.php 2011-08-02 10:34:23 UTC (rev 93724) @@ -13,8 +13,8 @@ 'ameta-desc' => 'Allows per page meta settings (robots, keywords, description) and change title', 'ameta-metasettings' => 'Meta settings', 'ameta-titlealias' => 'Title alias:', - 'ameta-keywordsadd' => 'the following keywords are added to all pages:', - 'ameta-keywordsmodify' => 'can be modified at Mediawiki:Globalkeywords', + 'ameta-keywordsadd' => 'The following {{PLURAL:$1|keyword is|$1 keywords are}} added to all pages:', + 'ameta-keywordsmodify' => 'Keywords can be modified at [[Mediawiki:Globalkeywords]].', ); /** Message documentation (Message documentation) Modified: trunk/extensions/AdvancedMeta/AdvancedMeta.php =================================================================== --- trunk/extensions/AdvancedMeta/AdvancedMeta.php 2011-08-02 10:20:49 UTC (rev 93723) +++ trunk/extensions/AdvancedMeta/AdvancedMeta.php 2011-08-02 10:34:23 UTC (rev 93724) @@ -198,7 +198,7 @@ <br /><strong>" . wfMsg( 'ameta-titlealias' ) . "</strong><br /> <input type='text' name='wpTitleAlias' id='wpTitleAlias' value='{$meta['titlealias']}' size='64'> - <br /><strong>Keywords:</strong> <small>" . wfMsg( 'ameta-keywordsadd' ) . "<a href='javascript:;' title='" . wfMsg( 'ameta-keywordsmodify' ) . "'>" . htmlspecialchars( str_replace( "$1", $wgTitle, $addedkeywords ) ) . "</a> + <br /><strong>Keywords:</strong> <small>" . wfMessage( 'ameta-keywordsadd', count( $addedkeywords ) )->text() . "<a href='javascript:;' title='" . wfMsg( 'ameta-keywordsmodify' ) . "'>" . htmlspecialchars( str_replace( "$1", $wgTitle, $addedkeywords ) ) . "</a> </small><br /> <textarea tabindex='4' name='wpKeywords' id='wpKeywords' rows='1' cols='{$cols}'{$ew}>{$meta['keywords']}</textarea> _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs