Index: trunk/extensions/Translate/groups/Mwlib/Mwlibrl.yaml |
— | — | @@ -14,3 +14,12 @@ |
15 | 15 | targetPattern: mwlib.rl/mwlib/rl/locale/%CODE%/LC_MESSAGES/mwlib.rl.po |
16 | 16 | codeMap: |
17 | 17 | 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 |
1 | 24 | + native |