Yii-Transliteration-Helper ¶
Help transliteration ported from Drupal Transliteration module.
INSTALL ¶
Put the Transliteration.php and transliteration directory into application.components, ext.components or ext.helpers.
Include it in your config.
'import' => array(
'application.components.*',
// 'ext.components.*',
// 'ext.helpers.*',
That's it.
USAGE ¶
// Transliterate a string
$text = Transliteration::text($text);
// Convert special character into ASCII one, with Lowercase
$lowercased_filename = Transliteration::file($filename);
// Or just replace special chars and keep the case as normal
$filename = Transliteration::file($filename, FALSE);
UPDATE FROM DRUPAL ¶
- Download the latest transliteration module from Drupal transliteration module
- Copy the
datafolder in this module to oldtransliterationfolder. - That's it.
Thanks!
Help me a lot.
The github source is broken (404).
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.