Some language codes look like "en-CA", "en-US", etc. If I perform a translation import and I put such language codes in the list of languages (which ends up stored in $options['translate_languages']), the import will fail with You can use only existing and enabled languages and not "!languages". That's because the module (for some reason) calls drupal_strtolower on $options['translate_languages'], which causes the input language codes to no longer match those in the system, throwing the above error. This patch removes the call to drupal_strtolower.

CommentFileSizeAuthor
patch.patch791 bytesjpmckinney
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jpmckinney’s picture

Status: Active » Needs review
Daniel_KM’s picture

Status: Needs review » Fixed

Hi,

This check was added in a previous commit, with a lot of other checks, but I don't remember the reason for this one.

As it's only a check, it's possible to remove it as you do to avoid this issue.

Sincerely,

Daniel Berthereau
Infodoc & Knowledge management

Status: Fixed » Closed (fixed)

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