I need transliteration in a personal module I'm developping.
Because I use transliteration module on my drupal site, I wonder how I can use functions of that module in my module.
In readme.txt, I found :

Third party developers seeking an easy way to transliterate text or file names
may use transliteration functions as follows:
if (function_exists('transliteration_get')) {
  $transliterated = transliteration_get($text, $unknown, $source_langcode);

What do I need to make it work?

Comments

smk-ka’s picture

Status: Active » Fixed

Copy and paste the above code snippet in your module where you need it. A description of the function arguments can be found here: transliteration_get() (hint: you only need to pass the text to transliterate).

sahuni’s picture

So easy, thanks for all!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.