Index: trunk/extensions/Narayam/Narayam.i18n.php |
— | — | @@ -55,6 +55,7 @@ |
56 | 56 | 'narayam-bn-inscript' => 'Bengali InScript', |
57 | 57 | 'narayam-bn-nkb' => 'Bengali NKB', |
58 | 58 | 'narayam-ur' => 'Urdu standard', |
| 59 | + 'narayam-de' => 'German', |
59 | 60 | 'narayam-gu' => 'Gujarati transliteration', |
60 | 61 | ); |
61 | 62 | |
— | — | @@ -461,6 +462,7 @@ |
462 | 463 | 'narayam-bn-avro' => 'Bengalisch (Avro)', |
463 | 464 | 'narayam-bn-inscript' => 'Bengalisch (InScript)', |
464 | 465 | 'narayam-bn-nkb' => 'Bengalisch (NKB)', |
| 466 | + 'narayam-de' => 'Deutsch', |
465 | 467 | ); |
466 | 468 | |
467 | 469 | /** Greek (Ελληνικά) |
Index: trunk/extensions/Narayam/js/ext.narayam.rules.de.js |
— | — | @@ -0,0 +1,24 @@ |
| 2 | +/** |
| 3 | + * German input method (umlauts and sz), using ~ as the compose key. |
| 4 | + * @author Erik Moeller ([[User:Eloquence]]) |
| 5 | + * @date 2011-11-20 |
| 6 | + * License: Public domain |
| 7 | + */ |
| 8 | + |
| 9 | +(function() { |
| 10 | + |
| 11 | +var rules = []; |
| 12 | +var chars = {A: 'Ä', O: 'Ö', U: 'Ü', a: 'ä', o: 'ö', u: 'ü', s: 'ß', S: 'ß'}; |
| 13 | +jQuery.each( chars, function( ascii, special ) { |
| 14 | + rules.push( [ '~' + ascii, '~' , special ] ); |
| 15 | +}); |
| 16 | + |
| 17 | +jQuery.narayam.addScheme( 'de', { |
| 18 | + 'namemsg': 'narayam-de', |
| 19 | + 'extended_keyboard': false, |
| 20 | + 'lookbackLength': 1, |
| 21 | + 'keyBufferLength': 1, |
| 22 | + 'rules': rules |
| 23 | +} ); |
| 24 | + |
| 25 | +})(jQuery); |
Property changes on: trunk/extensions/Narayam/js/ext.narayam.rules.de.js |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 26 | + native |
Index: trunk/extensions/Narayam/Narayam.php |
— | — | @@ -61,6 +61,9 @@ |
62 | 62 | 'bn-inscript' => 'ext.narayam.rules.bn-inscript', |
63 | 63 | 'bn-nkb' => 'ext.narayam.rules.bn-nkb', |
64 | 64 | ), |
| 65 | + 'de' => array( |
| 66 | + 'de' => 'ext.narayam.rules.de', |
| 67 | + ), |
65 | 68 | 'brx' => array( |
66 | 69 | 'brx-inscript' => 'ext.narayam.rules.brx-inscript', |
67 | 70 | ), |
— | — | @@ -163,6 +166,7 @@ |
164 | 167 | 'narayam-as-avro', |
165 | 168 | 'narayam-as-bornona', |
166 | 169 | 'narayam-as-inscript', |
| 170 | + 'narayam-de', |
167 | 171 | 'narayam-brx-inscript', |
168 | 172 | 'narayam-eo', |
169 | 173 | 'narayam-hi', |
— | — | @@ -230,6 +234,10 @@ |
231 | 235 | 'scripts' => 'js/ext.narayam.rules.bn-nkb.js', |
232 | 236 | 'dependencies' => 'ext.narayam.core', |
233 | 237 | ); |
| 238 | +$wgResourceModules['ext.narayam.rules.de'] = $narayamTpl + array( |
| 239 | + 'scripts' => 'js/ext.narayam.rules.de.js', |
| 240 | + 'dependencies' => 'ext.narayam.core', |
| 241 | +); |
234 | 242 | $wgResourceModules['ext.narayam.rules.brx-inscript'] = $narayamTpl + array( |
235 | 243 | 'scripts' => 'js/ext.narayam.rules.brx-inscript.js', |
236 | 244 | 'dependencies' => 'ext.narayam.core', |