r42056 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42055‎ | r42056 | r42057 >
Date:20:41, 13 October 2008
Author:demon
Status:old
Tags:
Comment:
(bug 15203) Add plural support for mv_existing_categories
Modified paths:
  • /trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php (modified) (history)
  • /trunk/extensions/MetavidWiki/languages/MV_Messages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MetavidWiki/includes/MV_MetavidInterface/MV_Overlay.php
@@ -593,7 +593,7 @@
594594 if ( $mvMetaCategoryHelper ) {
595595 // list each category with a little - next to it that removes its respective hidden field.
596596 $i = 0;
597 - $o .= '<tr><td>' . wfMsg( 'mv_existing_categories' ) . '</td><td>';
 597+ $o .= '<tr><td>' . wfMsgExt( 'mv_existing_categories', array( 'parsemag', 'escapenoentities' ), count( $metaData['categories'] ) ) . '</td><td>';
598598 $o .= '<div id="mv_ext_cat_container_' . htmlspecialchars( $mvd_id ) . '"></div>';
599599 foreach ( $metaData['categories'] as $cat => $page ) {
600600 $catTitle = Title::newFromText( $cat, NS_CATEGORY );
Index: trunk/extensions/MetavidWiki/languages/MV_Messages.php
@@ -179,7 +179,7 @@
180180 'mv_advanced_edit' => 'Advanced edit',
181181 'mv_basic_edit' => 'Basic edit',
182182 'mv_remove_category' => 'Remove category',
183 - 'mv_existing_categories' => 'categories:',
 183+ 'mv_existing_categories' => '{{PLURAL:$1|category|categories}}:',
184184 'mv_add_category' => 'Add a categorization',
185185 'mv_basic_text_desc' => 'Text description (optional)',
186186

Status & tagging log