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 commentedCommitted to CVS HEAD. Thanks.
Comment #3
hass commentedthx
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.