Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Traditionally, the Danish letters has been transliterated like this:
æ = ae, Æ = Ae
ø = oe, Ø = Oe
å = aa, Å = Aa
The Transliteration module seems to fail, transliterates Ø just to o and å just to a.
Best regards
Bjarne
Comment | File | Size | Author |
---|---|---|---|
#2 | Danish Transliteration.png | 40.75 KB | netbjarne |
#2 | x00.php_.txt | 901 bytes | netbjarne |
#1 | transliteration.patch | 765 bytes | smk-ka |
Comments
Comment #1
smk-ka CreditAttribution: smk-ka commentedThe transliteration tables are following a rather 'minimalistic' route, in that they are replacing foreign characters with the base ASCII letter form and ignoring language-specific conversions (except where obvious). Luckily, the Transliteration module supports enhancements, which allow you to add locale-specific variations. Please test the attached patch, which adds your proposed replacements (minus Æ/æ since from looking at the replacement tables it looks like they should already be correctly transliterated!?)
Comment #2
netbjarne CreditAttribution: netbjarne commentedHi
Thank you for your support :)
Hm, seems I cannot get it to work. I disabled and deleted the translitteration module, uploaded a new set of files, applied the patch (manually, see attached x00.php file), enabled the module, ran update.php and cron.php just to be sure, created a new node attaching a file with æøå and ÆØÅ.
As you see in the attached screenshot, the patch does not seem to have any affect.
I checked the language of the node, is is danish (da).
Any ideas?
Comment #3
Freso CreditAttribution: Freso commentedSubscribing.
Comment #4
smk-ka CreditAttribution: smk-ka commentedSorry, it was my fault, since language specific replacements never really worked. They finally should with the following patch applied: #255646: Add a language parameter to transliteration_get()
Comment #5
netbjarne CreditAttribution: netbjarne commentedTried (but failled at) applying patch #255646 - so I'm still unable to test.
If anyone with patching skills should feel like creating a patched set of files, I would still be happy to test :)
Best regards
Bjarne
Comment #6
smk-ka CreditAttribution: smk-ka commentedNow that #255646: Add a language parameter to transliteration_get() has been fixed, this patch has finally landed in the 2.0 branch.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.