Dead and Fictional Languages, Now Supported
Mood

Geeky
A lot of languages are unsupported in Movable Type, having it be a world wide platform is a difficult undertaking (having manuals, interfaces, and more in a language you do not speak is a daunting task). And so, understandably, they only have a limited number of languages to choose from for Date/Time settings.
There are more languages supported then in the drop down menu, and a simple one line hack can add it to your menu. Unfortunately all you would write in is the name of the language, and you would just have to trust to the fact that the perl module (which is MT's method of calling in the names of months and days, this information is not actually listed in any files) contains the correct Months and Days of the Week, if they have the language at all.
Two languages I was interested in listing were Latin (for this site) and the Elvish of Middle Earth (for fun and because I knew it would amuse my fiance).
Latin being a dead language, and Elvish being a fictional one, I am not sure if they have those supported. Though a certain support forum suggested they might have the former, though not the latter.
After sniffing around I found this support forum which contained some php that did essentially what I wanted it to do. Translate my Dates to a language I could manually enter in, without having to go through the bother of hacking any files.
So for those who might, for some bizzare reason, want to have all of their dates display in Latin, or Elvish, simply paste in the correct code in place of your <MTEntryDate> tag.
For Latin:$date = "<$MTEntryDate format="%A/%e/%B"$>"; $separate = explode("/", $date); $day = array ("Monday" => "Lunae", "Tuesday" => "Martis", "Wednesday" => "Mercurii", "Thursday" => "Iovis", "Friday" => "Veneris", "Saturday" => "Saturni", "Sunday" => "Dominica"); $month = array ("January" => "Januarius", "February" =>"Februarius", "March" =>"Martius", "April" => "Aprilis", "May" =>"Maius", "June" => "Iunius", "July" => "Iulius", "August" => "Augustus", "September" => "September", "October" => "October", "November" =>"Novembris", "December" => "December"); echo ($day[$separate[0]]); echo (", "); echo ($separate[1]); echo (" "); echo ($month[$separate[2]]);
For Elvish:$date = "<$MTEntryDate format="%A/%e/%B"$>"; $separate = explode("/", $date); $day = array ("Monday" => "Elenya", "Tuesday" => "Anarya", "Wednesday" => "Isilya", "Thursday" => "Alduya", "Friday" => "Menelya", "Saturday" => "Valanya", "Sunday" => "Tarion"); $month = array ("January" => "Narvinye", "February" =>"Nenime", "March" =>"Sulime", "April" => "Viresse", "May" =>"Lotesse", "June" => "Narie", "July" => "Cermie", "August" => "Urime", "September" => "Yavannie", "October" => "Narquelie", "November" =>"Hisime", "December" => "Ringare"); echo ($day[$separate[0]]); echo (", "); echo ($separate[1]); echo (" "); echo ($month[$separate[2]]);
Posted by Bitsy at 04:15 PM Comments
- Please verify your humanity to post a comment.
- If you wish to subscribe to the post, leave a valid email address.
- Click "br" to insert a line break.