Hello,
I'm wondering if it is possible to call on a function in the Transliteration module that could reverse transliterate a word (or a string of words) into a specified language?
Specifically I'm looking to take individual parts of a transliterated Russian URL and use the real words (in Cyrillic) to execute a search. I'm trying to deal with URLs from an old site that is being replaced by a new Drupal site. When the old URLs come in, instead of giving a 404 page, I want to see if the transliterated words in the URL could be used to find a matching Drupal node and redirect to it.
Thanks!
..jon
Comments
Comment #1
amateescu commentedI'm afraid that this is not possible, transliteration is a one-way only operation.
In your use case, I suggest searching the transliterated words directly because that feature is implemented in 7.x-3.x-dev with this commit: http://drupalcode.org/project/transliteration.git/commit/26ae882765a1788...
Comment #2
jonmcl commentedThanks!
I will take a look at the 7.x-3.x-dev version. That looks promising.
Update:
It works perfectly!
Thank you !
..jon
Comment #3
amateescu commentedGlad I could help :)