Yii 1.1: transliteration

Drupal transliteration module to Yii helper
4 followers

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

  1. Download the latest transliteration module from Drupal transliteration module
  2. Copy the data folder in this module to old transliteration folder.
  3. That's it.

RESOURCES

Total 1 comment

#18580 report it
alsantos123 at 2014/11/20 01:50pm
Thanks!

Help me a lot. The github source is broken (404).

Leave a comment

Please to leave your comment.

Create extension