Closed (fixed)
Project:
Taxonomy CSV import/export
Version:
7.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2012 at 20:13 UTC
Updated:
1 May 2012 at 01:40 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| patch.patch | 791 bytes | jpmckinney |
Comments
Comment #1
jpmckinney commentedComment #2
Daniel_KM commentedHi,
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