Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Czech / Slovak Transliteration (Czechoslovak)
#1
Hello,
With assistance of Carlos (thank you) and his "cyrillic translit" and "roman translit" plugins, I created a transliteration plugin "czechoslovak translit" for Czech and Slovak languages.

What it does?
When you write a Czech/Slovak title of a page (or an article in the News Manager), this plugin transliterates the title for the url/slug in the correct way.
For example, a title
"Nejnovější články"
will be transliterated to
"nejnovejsi-clanky"
and no character is missing, which is very desirable for SEO.
Your URL with Fancy URLs will automatically look like
"yourwebpageadress.cz/nejnovejsi-clanky"
You don't have to edit the urls/slugs manually, this plugin will do it for you correctly from your title.

It's very simple, but it saves your time.

Here is the list of transliterated characters:
Code:
//special Czech chars with diacritics
    "ě"=>"e","Ě"=>"E","Å¡"=>"s","Å "=>"S","č"=>"c",
    "Č"=>"C","ř"=>"r","Ř"=>"R","ž"=>"z","Ž"=>"Z",
    "ý"=>"y","Ý"=>"Y","á"=>"a","Á"=>"A","í"=>"i",
    "Í"=>"I","é"=>"e","É"=>"E","ú"=>"u","Ú"=>"U",
    "ů"=>"u","Å®"=>"U","Ã…Â¥"=>"t","Ť"=>"T","ó"=>"o",
    "Ó"=>"O","ď"=>"d","Ď"=>"D","ň"=>"n","Ň"=>"N",
    
    //special Slovakian chars with diacritics (except those which are the same with Czech ones)
    "ä"=>"a","ĺ"=>"l","ľ"=>"l","ô"=>"o","ŕ"=>"r",
    "Ä"=>"A","Ĺ"=>"L","Ľ"=>"L","Ô"=>"O","Ŕ"=>"R",
    
    //other special chars
    " "=>"-","-"=>"-","»"=>">","."=>"."

In case you were thinking how to install this plugin, just download the .php file and copy it into /plugins folder in your GetSimple directory.

Tom


Attached Files
.php   czechoslovak_translit.php (Size: 978 bytes / Downloads: 6)
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
Reply


Messages In This Thread
Czech / Slovak Transliteration (Czechoslovak) - by TeeJay - 2013-04-05, 06:23:34



Users browsing this thread: 1 Guest(s)