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.
Although the JS language file cache is invalidated when a strings is removed, or when new strings are imported, it is not invalidated when a string is edited. This was causing "TRANSLATE TEXT" keep being displayed in l10n_client (via JavaScript) event though it was translated in the database. Noticed originally by Alexander Hass at http://drupal.org/node/217884
I've reproduced the problem and found a simple fix to be applied to Drupal. It makes the editing invalidate the JS cache, so that new changes appear in JS translations as well.
Comment | File | Size | Author |
---|---|---|---|
invalidate_js_on_string_edit.patch | 590 bytes | Gábor Hojtsy | |
Comments
Comment #1
Gábor HojtsyCommitted at http://drupal.org/cvs?commit=138900 for Drupal 6. Should be committed to Drupal 7 still.
Comment #2
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #3
hass CreditAttribution: hass commentedthx
Comment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.