Back Reply to topic
Chaly 
(started thread)
Offizier · Webmaster 
Topics: 404
Posts: 2107
Location: Bad Honnef
Playing:  Guildwars2 (Drakkar See)
Ingame:  Chaly Flavour
Years registered: * * * * * * * * * * * * * * * * * * * * * *
solved: converting german vowels Posted: Post 01:58 Sun - Jun 29, 2008

age of conan doesn't understand the special vowels (characters like "ö", "ä", "ü")
one day a funny funcom programmer thought: "hey! i like my job and as i'm a skilled html-programmer why should i use html-code to translate them? let's complicate it to the top!"
so this is what we have to do:

1) we have a german text in a variable, let's say we have this:
Code:
$germantext=" 'babybot is a badbad boy' is sth like 'unser böttchen ist ein scheißblöder kärlschn' ";

2) before we can send this to the aoc - chat we have to translate the characters for the server:
Code:
$translatedtext = strtr(utf8_encode($germantext),array("ä" => "ä__","ö" => "ö___","ü" => "ü___","Ä" => "Ä_","Ö" => "Ö_","Ü" => "Ü_","ß" => "ß_"));


i'll ask noer if he want to add this to the aocchat.php .. anyway: it will be integrated in the next ragebot.

note: i integrated the translation with 0.7.1. you should consider the built-in translation as a double-translation like this WON'T WORK:
Code:
$translatedtext = strtr(utf8_encode($germantext),array("ä" => "ä__","ö" => "ö___","ü" => "ü___","Ä" => "Ä_","Ö" => "Ö_","Ü" => "Ü_","ß" => "ß_"));
$doubletranslated = strtr(utf8_encode($translatedtext ),array("ä" => "ä__","ö" => "ö___","ü" => "ü___","Ä" => "Ä_","Ö" => "Ö_","Ü" => "Ü_","ß" => "ß_"));
Reply with quote



_________________

Chalys Gimpnesstheory (2003) Die Theorie der expotentiellen Bullshits den Gimps bei gleichbleibendem Anteil produzieren.
Back Reply to topic