r112199 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112198‎ | r112199 | r112200 >
Date:12:56, 23 February 2012
Author:amire80
Status:ok
Tags:i18nreview 
Comment:
Added Ahirani support.
Modified paths:
  • /trunk/extensions/Narayam/Narayam.i18n.php (modified) (history)
  • /trunk/extensions/Narayam/Narayam.php (modified) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.ahr-inscript.js (added) (history)
  • /trunk/extensions/Narayam/resources/ext.narayam.rules.ahr.js (added) (history)

Diff [purge]

Index: trunk/extensions/Narayam/resources/ext.narayam.rules.ahr-inscript.js
@@ -0,0 +1,12 @@
 2+/**
 3+ * InScript regular expression rules table for Ahirani language
 4+ * Based on CDAC's "Enhanced InScript Keyboard Layout 5.2" for Marathi
 5+ * @author Amir E. Aharoni
 6+ * @date 2012-02-23
 7+ * License: GPLv3
 8+ */
 9+
 10+// copy the rules from Marathi InScript.
 11+ahr_inscript_scheme = $.narayam.getScheme( 'mr-inscript' );
 12+ahr_inscript_scheme.namemsg = 'narayam-ahr-inscript';
 13+jQuery.narayam.addScheme( 'ahr-inscript', ahr_inscript_scheme );
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.ahr-inscript.js
___________________________________________________________________
Added: svn:eol-style
114 + native
Index: trunk/extensions/Narayam/resources/ext.narayam.rules.ahr.js
@@ -0,0 +1,11 @@
 2+/**
 3+ * Transliteration based keyboard for Ahirani, based on Marathi
 4+ * @author Amir E. Aharoni ([[User:Amire80]])
 5+ * @date 2012-02-23
 6+ * License: GPLv3
 7+ */
 8+
 9+// copy the rules from Marathi transliteration.
 10+ahr_scheme = $.narayam.getScheme( 'mr' );
 11+ahr_scheme.namemsg = 'narayam-ahr';
 12+jQuery.narayam.addScheme( 'ahr', ahr_scheme );
Property changes on: trunk/extensions/Narayam/resources/ext.narayam.rules.ahr.js
___________________________________________________________________
Added: svn:eol-style
113 + native
Index: trunk/extensions/Narayam/Narayam.i18n.php
@@ -23,6 +23,8 @@
2424 'narayam-checkbox-tooltip' => 'To toggle input method on and off', // FIXME: better message
2525 'narayam-enable-preference' => 'Enable input method',
2626 'narayam-more-imes' => 'More input methods',
 27+ 'narayam-ahr' => 'Ahirani Transliteration',
 28+ 'narayam-ahr-inscript' => '>Ahirani InScript',
2729 'narayam-am' => 'Amharic Transliteration',
2830 'narayam-as' => 'Assamese Transliteration',
2931 'narayam-as-avro' => 'Assamese Avro',
Index: trunk/extensions/Narayam/Narayam.php
@@ -50,6 +50,10 @@
5151 // Array mapping language codes and scheme names to module names
5252 // Custom schemes can be added here
5353 $wgNarayamSchemes = array(
 54+ 'ahr' => array(
 55+ 'ahr' => 'ext.narayam.rules.ahr',
 56+ 'ahr-inscript' => 'ext.narayam.rules.ahr-inscript',
 57+ ),
5458 'am' => array(
5559 'am' => array( 'ext.narayam.rules.am', 'beta' ),
5660 ),
@@ -109,7 +113,7 @@
110114 ),
111115 'mr' => array(
112116 'mr' => 'ext.narayam.rules.mr',
113 - 'mr-inscript' => 'ext.narayam.rules.mr',
 117+ 'mr-inscript' => 'ext.narayam.rules.mr-inscript',
114118 ),
115119 'ne' => array(
116120 'ne' => array( 'ext.narayam.rules.ne', 'beta' ),
@@ -207,6 +211,8 @@
208212 'narayam-help',
209213 'narayam-toggle-ime',
210214 'narayam-more-imes',
 215+ 'narayam-ahr',
 216+ 'narayam-ahr-inscript',
211217 'narayam-am',
212218 'narayam-as',
213219 'narayam-as-avro',
@@ -266,6 +272,15 @@
267273 'jquery.cookie',
268274 ),
269275 );
 276+
 277+$wgResourceModules['ext.narayam.rules.ahr'] = $narayamTpl + array(
 278+ 'scripts' => 'resources/ext.narayam.rules.ahr.js',
 279+ 'dependencies' => 'ext.narayam.rules.mr',
 280+);
 281+$wgResourceModules['ext.narayam.rules.ahr-inscript'] = $narayamTpl + array(
 282+ 'scripts' => 'resources/ext.narayam.rules.ahr-inscript.js',
 283+ 'dependencies' => 'ext.narayam.rules.mr-inscript.js',
 284+);
270285 $wgResourceModules['ext.narayam.rules.am'] = $narayamTpl + array(
271286 'scripts' => 'resources/ext.narayam.rules.am.js',
272287 'dependencies' => 'ext.narayam.core',
@@ -474,4 +489,3 @@
475490 'scripts' => 'resources/ext.narayam.rules.tcy.js',
476491 'dependencies' => 'ext.narayam.rules.kn',
477492 );
478 -

Sign-offs

UserFlagDate
Siebrandinspected08:22, 24 February 2012
Siebrandtested08:22, 24 February 2012

Follow-up revisions

RevisionCommit summaryAuthorDate
r112200Follow up to r112119, corrected typo.amire8013:14, 23 February 2012

Status & tagging log