A few weeks ago I wrote about how to replace special characters in Propels sluggable behaviour if iconv does not work. Now I want to publish the classes I have written for this.

Usage is like this:

echo Skoch_Translit::trans('Schüler'); // Schueler
echo Skoch_Translit::trans('ありがとう'); // arigatou
echo Skoch_Translit::trans('ljubičast'); // ljubicast

// or with object to configure

$adapters = array(
    new Skoch_Translit_Latin(),
$translit = new Skoch_Translit($adapters);
echo $translit->translit('Schüler'); // Schueler
echo $translit->translit('ありがとう'); // ありがとう


The comments section is a test at the moment. I might decide to remove it again. If you have any questions you can also send an e-mail to blog@stefan-koch.name. The software (Commento) is running on my own server.