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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

smk-ka’s picture

Status: Active » Needs review
FileSize
765 bytes

The 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!?)

netbjarne’s picture

FileSize
901 bytes
40.75 KB

Hi

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?

Freso’s picture

Subscribing.

smk-ka’s picture

Sorry, 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()

netbjarne’s picture

Tried (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

smk-ka’s picture

Version: 6.x-1.0 » 6.x-2.0
Status: Needs review » Fixed

Now that #255646: Add a language parameter to transliteration_get() has been fixed, this patch has finally landed in the 2.0 branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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