Tongan has an language key "to" which then breaks on module_enable because of this: INDEX to (to),

This needs to be escaped somehow.

Comments

drewish’s picture

Priority: Normal » Critical

Ah yeah there's actually a few languages that will cause problems with that. I ran into that and thought I'd corrected it but that might have been with Translation Overview. My solution there was to rename all the fields to be lang_$lang_code.

drewish’s picture

I need to hit this before releasing a new version.

drewish’s picture

havok’s picture

StatusFileSize
new12.82 KB

Hi, thanks for this module :)

We are trying to use this module on the testing site of LibreOffice, but we are having problems enabling it.

I'm attaching the output Drush gave when trying to enable the module. I'm not sure what the problem is. I think is related to this issue, as we have enabled a LOT of languages, well, like 30 or so.

We are trying the last development module, but no look.

Any advice is welcome.

Thanks in advance.

drewish’s picture

Ah yeah I think you found the right issue. Let me see if I can make some time for this this evening.

drewish’s picture

Status: Active » Needs review
StatusFileSize
new6.53 KB

Only had a few minutes so here's a totally untested port of the code from Translation Overview.

michaelwheatland’s picture

Is anybody able to confirm that this patch works?
I am a part of the LibreOffice Drupal website development team and this issue is very important in our internationalisation efforts with the community.

Thanks Drewish for the fast response to this problem.

drewish’s picture