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.
When your module is used within a multi-language installation, and the keyword "header" or "footer" is translated, it breaks. This is because of the scrope-parameter of drupal_add_js
.
This parameter only accepts "footer" or "header", however in respondjs.admin.inc the module don't support this two options, but the translations. A simple fix would be dont translate the option-values on line 20.
Comment | File | Size | Author |
---|---|---|---|
#1 | 1828318-1-dont-translate-scope.patch | 810 bytes | rupl |
Comments
Comment #1
ruplNice catch! I don't have an environment set up to translate Drupal, so could you try this patch against the latest dev and give me an RTBC before I commit?
Comment #2
killerpoke CreditAttribution: killerpoke commentedIt work's like a charm!
Labels are translated, values not. Thank you for your very quick response.
Comment #3
ruplAwesome! Committed #1 to dev.