r113356 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113355‎ | r113356 | r113357 >
Date:10:33, 8 March 2012
Author:raymond
Status:ok
Tags:i18nreview 
Comment:
r113303: Consistency tweaks in preparation for adding extension to translatewiki.net
* Fix description message key
* First 'en', 2nd 'qqq', than the translations
Modified paths:
  • /trunk/extensions/SideBarMenu/SideBarMenu.i18n.php (modified) (history)
  • /trunk/extensions/SideBarMenu/SideBarMenu.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SideBarMenu/SideBarMenu.i18n.php
@@ -1,25 +1,32 @@
22 <?php
3 -$messages = array();
4 -
5 -/** Message documentation (Message documentation)
 3+/**
 4+ * Internationalisation file for extension SideBarMenu
65 *
 6+ * @file
 7+ * @ingroup Extensions
78 */
8 -$messages['qqq'] = array(
9 - 'sidebarmenu-extension-description' => '{{desc}}',
10 - 'sidebarmenu-parser-input-error' => '$1 is the error message returned',
11 - 'sidebarmenu-parser-syntax-error' => '$1 is the line which failed to be parsed',
12 - 'sidebarmenu-js-init-error' => 'General error message',
13 - 'sidebarmenu-parser-menuitem-expanded-null' => 'parser.menuitem.expanded is a configuration property'
14 -);
159
 10+$messages = array();
 11+
1612 /** English
1713 * @author Kim Eik
1814 */
1915 $messages['en'] = array(
20 - 'sidebarmenu-extension-description' => 'A simple sidebar menu parser which creates collapsable/expandable menus and sub-menus.',
 16+ 'sidebarmenu-desc' => 'A simple sidebar menu parser which creates collapsable/expandable menus and sub-menus',
2117 'sidebarmenu-parser-input-error' => 'Parser returned with error: $1',
2218 'sidebarmenu-parser-syntax-error' => 'Could not parse "$1", make sure the syntax is correct.',
2319 'sidebarmenu-js-init-error' => 'Failed loading JavaScript resources.',
24 - 'sidebarmenu-parser-menuitem-expanded-null' => '\'parser.menuitem.expanded\' should be true or false, instead it\'s null.'
 20+ 'sidebarmenu-parser-menuitem-expanded-null' => '"parser.menuitem.expanded" should be true or false, instead it is null.'
2521 );
2622
 23+/** Message documentation (Message documentation)
 24+ * @author Kim Eik
 25+ */
 26+$messages['qqq'] = array(
 27+ 'sidebarmenu-desc' => '{{desc}}',
 28+ 'sidebarmenu-parser-input-error' => '$1 is the error message returned',
 29+ 'sidebarmenu-parser-syntax-error' => '$1 is the line which failed to be parsed',
 30+ 'sidebarmenu-js-init-error' => 'General error message',
 31+ 'sidebarmenu-parser-menuitem-expanded-null' => 'parser.menuitem.expanded is a configuration property'
 32+);
 33+
Index: trunk/extensions/SideBarMenu/SideBarMenu.php
@@ -23,7 +23,7 @@
2424 'version' => 0.1,
2525 'author' => 'Kim Eik',
2626 'url' => 'https://www.mediawiki.org/wiki/Extension:SideBarMenu',
27 - 'descriptionmsg' => 'sidebarmenu-extension.description'
 27+ 'descriptionmsg' => 'sidebarmenu-desc'
2828 );
2929
3030

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113303fixed more i18n, replaced dots for dashesnetbrain21:32, 7 March 2012

Status & tagging log