International alias plugin - Translation Map for greek

Phoca plugins - support for all Phoca plugins except Phoca Gallery plugins
ggppdk
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 27 Jun 2011, 11:25

International alias plugin - Translation Map for greek

Post by ggppdk »

Hello,
Thank you for you plugin, you saved me quite some time to write such a plugin myself.

Can you incorporate the Greek mapping of characters?

Code: Select all

// GREEK
		if ($grLang == 1) {
      $hrLangFrom = array('α', 'β', 'γ', 'δ', 'ε', 'ζ', 'η', 'θ',  'η', 'ι', 'κ', 'λ', 'μ', 'ν', 'ξ',  'ο', 'π', 'ρ', 'σ', 'τ', 'υ', 'φ', 'χ', 'ψ',  'ω', 'Α', 'Β', 'Γ', 'Δ', 'Ε', 'Ζ', 'Η', 'Θ',  'Ι', 'Κ', 'Λ', 'Μ', 'Ν', 'Ξ',  'Ο', 'Π', 'Ρ', 'Σ', 'Τ', 'Υ', 'Φ', 'Χ', 'Ψ',  'Ω', 'Ά', 'Έ', 'Ή', 'Ί', 'Ύ', 'Ό', 'Ώ', 'ά', 'έ', 'ή', 'ί', 'ύ', 'ό', 'ώ', 'ΰ', 'ΐ', 'ϋ', 'ϊ', 'ς', '«', '»' );
      $hrLangTo   = array('a', 'b', 'g', 'd', 'e', 'z', 'h', 'th', 'i', 'i', 'k', 'l', 'm', 'n', 'ks', 'o', 'p', 'r', 's', 't', 'u', 'f', 'x', 'ps', 'o', 'A', 'B', 'G', 'D', 'E', 'Z', 'I', 'Th', 'I', 'K', 'L', 'M', 'N', 'Ks', 'O', 'P', 'R', 'S', 'T', 'Y', 'F', 'X', 'Ps', 'O', 'A', 'E', 'I', 'I', 'U', 'O', 'O', 'a', 'e', 'i', 'i', 'u', 'o', 'o', 'u', 'i', 'u', 'i', 's', '_', '_' );
			$langFrom		= array_merge ($langFrom, $hrLangFrom);
			$langTo			=  array_merge ($langTo, $hrLangTo);
		}
		
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: International alias plugin - Translation Map for greek

Post by Jan »

Hi, thank you for the code, added to 1.0.3:

https://www.phoca.cz/news/30-phoca-news/ ... ias-plugin

Jan
If you find Phoca extensions useful, please support the project
Post Reply