r74026 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74025‎ | r74026 | r74027 >
Date:16:37, 30 September 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Experimental support for Mifos
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)
  • /trunk/extensions/Translate/groups/Mifos (added) (history)
  • /trunk/extensions/Translate/groups/Mifos/Checker.php (added) (history)
  • /trunk/extensions/Translate/groups/Mifos/Mifos.yaml (added) (history)
  • /trunk/extensions/Translate/groups/Mifos/README (added) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/Mifos/Checker.php
@@ -0,0 +1,21 @@
 2+<?php
 3+
 4+/**
 5+ * Implements MessageChecker for Mifos.
 6+ *
 7+ * @file
 8+ * @author Niklas Laxström
 9+ * @copyright Copyright © 2010, Niklas Laxström
 10+ * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
 11+ */
 12+
 13+/**
 14+ * Message checks for Mifos
 15+ *
 16+ * @ingroup MessageCheckers
 17+ */
 18+class MifosMessageChecker extends MessageChecker {
 19+ protected function MifosVariablesCheck( $messages, $code, &$warnings ) {
 20+ return parent::parameterCheck( $messages, $code, $warnings, '/{[0-9]}/' );
 21+ }
 22+}
Property changes on: trunk/extensions/Translate/groups/Mifos/Checker.php
___________________________________________________________________
Added: svn:eol-style
123 + native
Index: trunk/extensions/Translate/groups/Mifos/README
@@ -0,0 +1,10 @@
 2+== Setup ==
 3+ cd %GROUPROOT%
 4+ git clone git://mifos.git.sourceforge.net/gitroot/mifos/head mifos
 5+
 6+Add to your LocalSettings.php:
 7+ wfAddNamespace( 1230, 'Mifos' );
 8+ $wgTranslateGroupFiles[] = "$IP/extensions/Translate/groups/Mifos/Mifos.yaml"
 9+
 10+== Export ==
 11+???
Index: trunk/extensions/Translate/groups/Mifos/Mifos.yaml
@@ -0,0 +1,46 @@
 2+TEMPLATE:
 3+ BASIC:
 4+ namespace: NS_MIFOS
 5+
 6+ CHECKER:
 7+ class: MifosMessageChecker
 8+ checks:
 9+ - MifosVariablesCheck
 10+
 11+ AUTOLOAD:
 12+ MifosMessageChecker: Checker.php
 13+
 14+
 15+---
 16+BASIC:
 17+ id: out-mifos-0-all
 18+ label: All Mifos messages
 19+ description: "<div class=error>'''WARNING:''' Development of support for this product is under construction. We are working with developers to improve i18n.</div>[[Translating:Mifos|Mifos]] is a microloan and savings management platform, used by microfinance institutions to end world poverty."
 20+ meta: yes
 21+ class: AggregateMessageGroup
 22+
 23+GROUPS:
 24+ - out-mifos-*
 25+
 26+---
 27+BASIC:
 28+ id: out-mifos-questionnaire
 29+ label: Mifos - Questionnaire
 30+ class: FileBasedMessageGroup
 31+
 32+MANGLER:
 33+ class: StringMatcher
 34+ prefix: questionnaire-
 35+ patterns:
 36+ - "*"
 37+
 38+FILES:
 39+ class: JavaFFS
 40+ sourcePattern: %GROUPROOT%/mifos/questionnaire/src/main/resources/org/mifos/platform/questionnaire/ui/localizedProperties/questionnaire_messages_%CODE%.properties
 41+ definitionFile: %GROUPROOT%/mifos/questionnaire/src/main/resources/org/mifos/platform/questionnaire/ui/localizedProperties/questionnaire_messages.properties
 42+ targetPattern: mifos/questionnaire/src/main/resources/org/mifos/platform/questionnaire/ui/localizedProperties/questionnaire_messages_%CODE%.properties
 43+
 44+TAGS:
 45+ ignored:
 46+ - questionnaire-questionnaire.create.question.*
 47+ - questionnaire-questionnaire.create.question.group.*
Index: trunk/extensions/Translate/Translate.php
@@ -295,7 +295,7 @@
296296 '/^ext/' => array( 'ext' ),
297297 '/^wikia/' => array( 'wikia' ),
298298 '/^out-ihris/' => array( 'ihris' ),
299 - '/^out-mantis/' => array( 'mantis' ),
 299+ '/^out-mifos/' => array( 'mifos' ),
300300 '/^out-okawix/' => array( 'okawix' ),
301301 '/^out-osm/' => array( 'osm' ),
302302 '/^out-shapado/' => array( 'shapado' ),

Status & tagging log