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.
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 CreditAttribution: jpmckinney commentedComment #2
Daniel_KM CreditAttribution: 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