Skip to content

Commit

Permalink
Refactor #9819 TransAlias plugin - Add translation table
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Apr 11, 2013
1 parent cba9cfb commit 1c0fa74
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 2 deletions.
57 changes: 57 additions & 0 deletions assets/plugins/transalias/transliterations/dutch.php
@@ -0,0 +1,57 @@
<?php
/**
* Common transliteration table dutch
*/
return array (
'&'=>'-en-','%'=>'','\''=>'',
'À'=>'A','Á'=>'A','Â'=>'A','Ã'=>'A','Ä'=>'Ae','Å'=>'A','Æ'=>'E','Ā'=>'A','Ą'=>'A','Ă'=>'A',
'Ç'=>'C','Ć'=>'C','Č'=>'C','Ĉ'=>'C','Ċ'=>'C',
'Ď'=>'D','Đ'=>'D',
'È'=>'E','É'=>'E','Ê'=>'E','Ë'=>'E','Ē'=>'E','Ę'=>'E','Ě'=>'E','Ĕ'=>'E','Ė'=>'E',
'Ĝ'=>'G','Ğ'=>'G','Ġ'=>'G','Ģ'=>'G',
'Ĥ'=>'H','Ħ'=>'H',
'Ì'=>'I','Í'=>'I','Î'=>'I','Ï'=>'I','Ī'=>'I','Ĩ'=>'I','Ĭ'=>'I','Į'=>'I','İ'=>'I',
'IJ'=>'J','Ĵ'=>'J',
'Ķ'=>'K',
'Ľ'=>'L','Ĺ'=>'L','Ļ'=>'L','Ŀ'=>'L',
'Ñ'=>'N','Ń'=>'N','Ň'=>'N','Ņ'=>'N','Ŋ'=>'N',
'Ò'=>'O','Ó'=>'O','Ô'=>'O','Õ'=>'O','Ö'=>'Oe','Ø'=>'O','Ō'=>'O','Ő'=>'O','Ŏ'=>'O',
'Œ'=>'E',
'Ŕ'=>'R','Ř'=>'R','Ŗ'=>'R',
'Ś'=>'S','Ş'=>'S','Ŝ'=>'S','Ș'=>'S',
'Ť'=>'T','Ţ'=>'T','Ŧ'=>'T','Ț'=>'T',
'Ù'=>'U','Ú'=>'U','Û'=>'U','Ü'=>'Ue','Ū'=>'U','Ů'=>'U','Ű'=>'U','Ŭ'=>'U','Ũ'=>'U','Ų'=>'U',
'Ŵ'=>'W',
'Ŷ'=>'Y','Ÿ'=>'Y',
'Ź'=>'Z','Ż'=>'Z',
'à'=>'a','á'=>'a','â'=>'a','ã'=>'a','ä'=>'ae','å'=>'a','æ'=>'e','ā'=>'a','ą'=>'a','ă'=>'a',
'ç'=>'c','ć'=>'c','č'=>'c','ĉ'=>'c','ċ'=>'c',
'ď'=>'d','đ'=>'d',
'è'=>'e','é'=>'e','ê'=>'e','ë'=>'e','ē'=>'e','ę'=>'e','ě'=>'e','ĕ'=>'e','ė'=>'e',
'ƒ'=>'f',
'ĝ'=>'g','ğ'=>'g','ġ'=>'g','ģ'=>'g',
'ĥ'=>'h','ħ'=>'h',
'ì'=>'i','í'=>'i','î'=>'i','ï'=>'i','ī'=>'i','ĩ'=>'i','ĭ'=>'i','į'=>'i','ı'=>'i',
'ij'=>'j','ĵ'=>'j',
'ķ'=>'k','ĸ'=>'k',
'ł'=>'l','ľ'=>'l','ĺ'=>'l','ļ'=>'l','ŀ'=>'l',
'ñ'=>'n','ń'=>'n','ň'=>'n','ņ'=>'n','ʼn'=>'n','ŋ'=>'n',
'ò'=>'o','ó'=>'o','ô'=>'o','õ'=>'o','ö'=>'oe','ø'=>'o','ō'=>'o','ŏ'=>'o',
'œ'=>'e',
'ŕ'=>'r','ř'=>'r','ŗ'=>'r',
'ù'=>'u','ú'=>'u','û'=>'u','ü'=>'ue','ū'=>'u','ů'=>'u','ű'=>'u','ŭ'=>'u','ũ'=>'u','ų'=>'u',
'ŵ'=>'w',
'ÿ'=>'y','ŷ'=>'y',
'ż'=>'z','ź'=>'z',
'ß'=>'ss','ſ'=>'s',
'Α'=>'A','Ά'=>'A','Β'=>'B','Γ'=>'G','Δ'=>'D','Ε'=>'E','Έ'=>'E','Ζ'=>'Z','Η'=>'I','Ή'=>'I',
'Θ'=>'TH','Ι'=>'I','Ί'=>'I','Ϊ'=>'I','Κ'=>'K','Λ'=>'L','Μ'=>'M','Ν'=>'N','Ξ'=>'KS','Ο'=>'O',
'Ό'=>'O','Π'=>'P','Ρ'=>'R','Σ'=>'S','Τ'=>'T','Υ'=>'Y','Ύ'=>'Y','Ϋ'=>'Y','Φ'=>'F','Χ'=>'X',
'Ψ'=>'PS','Ω'=>'O','Ώ'=>'O','α'=>'a','ά'=>'a','β'=>'b','γ'=>'g','δ'=>'d','ε'=>'e','έ'=>'e',
'ζ'=>'z','η'=>'i','ή'=>'i','θ'=>'th','ι'=>'i','ί'=>'i','ϊ'=>'i','ΐ'=>'i','κ'=>'k','λ'=>'l',
'μ'=>'m','ν'=>'n','ξ'=>'ks','ο'=>'o','ό'=>'o','π'=>'p','ρ'=>'r','σ'=>'s','τ'=>'t','υ'=>'y',
'ύ'=>'y','ϋ'=>'y','ΰ'=>'y','φ'=>'f','χ'=>'x','ψ'=>'ps','ω'=>'o','ώ'=>'o',
'š'=>'s', 'ž'=>'z', 'ý'=>'y', 'ô'=>'o', 'ť'=>'t',
'Š'=>'S', 'Ž'=>'Z', 'Ý'=>'Y', 'Ô'=>'O',
'+'=>'plus','='=>'is','€'=>'euro','$'=>'dollar','%'=>'procent','@'=>'at','!'=>'-','#'=>'-'
);
4 changes: 2 additions & 2 deletions install/assets/plugins/transalias.tpl
Expand Up @@ -5,12 +5,12 @@
* Human readible URL translation supporting multiple languages and overrides
*
* @category plugin
* @version 1.0.1
* @version 1.0.2
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License (GPL)
* @package modx
* @subpackage modx.plugins.transalias
* @author Olivier B. Deland, additions by Mike Schell, rfoster
* @internal @properties &table_name=Trans table;list;common,russian,german,czech,utf8,utf8lowercase;utf8lowercase &char_restrict=Restrict alias to;list;lowercase alphanumeric,alphanumeric,legal characters;legal characters &remove_periods=Remove Periods;list;Yes,No;No &word_separator=Word Separator;list;dash,underscore,none;dash &override_tv=Override TV name;string;
* @internal @properties &table_name=Trans table;list;common,russian,dutch,german,czech,utf8,utf8lowercase;utf8lowercase &char_restrict=Restrict alias to;list;lowercase alphanumeric,alphanumeric,legal characters;legal characters &remove_periods=Remove Periods;list;Yes,No;No &word_separator=Word Separator;list;dash,underscore,none;dash &override_tv=Override TV name;string;
* @internal @events OnStripAlias
* @internal @modx_category Manager and Admin
* @internal @installset base, sample
Expand Down

0 comments on commit 1c0fa74

Please sign in to comment.