r73288 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73287‎ | r73288 | r73289 >
Date:13:51, 18 September 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Add variable checker for Mwlib
Modified paths:
  • /trunk/extensions/Translate/groups/Mwlib/Checker.php (added) (history)
  • /trunk/extensions/Translate/groups/Mwlib/Mwlibrl.yaml (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/Mwlib/Mwlibrl.yaml
@@ -14,3 +14,12 @@
1515 targetPattern: mwlib.rl/mwlib/rl/locale/%CODE%/LC_MESSAGES/mwlib.rl.po
1616 codeMap:
1717 pt-br: pt_BR
 18+
 19+CHECKER:
 20+ class: MwlibMessageChecker
 21+ checks:
 22+ - MwlibVariablesCheck
 23+ - braceBalanceCheck
 24+
 25+AUTOLOAD:
 26+ MwlibMessageChecker: Checker.php
\ No newline at end of file
Index: trunk/extensions/Translate/groups/Mwlib/Checker.php
@@ -0,0 +1,22 @@
 2+<?php
 3+/**
 4+ * Implements MessageChecker for Mwlib.
 5+ *
 6+ * @file
 7+ * @author Niklas Laxström
 8+ * @copyright Copyright © 2010, Niklas Laxström
 9+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
 10+ */
 11+
 12+/**
 13+ * Message checks for FUDforum
 14+ *
 15+ * @ingroup MessageCheckers
 16+ */
 17+class MwlibMessageChecker extends MessageChecker {
 18+
 19+ protected function MwlibVariablesCheck( $messages, $code, &$warnings ) {
 20+ return parent::parameterCheck( $messages, $code, $warnings, '/%\([a-z]+\)[a-z]/' );
 21+ }
 22+
 23+}
Property changes on: trunk/extensions/Translate/groups/Mwlib/Checker.php
___________________________________________________________________
Added: svn:eol-style
124 + native

Status & tagging log