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.
After clearing the cache, all text groups appear at /admin/config/regional/translate/i18n_string:
When I reload the page, most of the text groups disappear:
Any Ideas?
Comment | File | Size | Author |
---|---|---|---|
Bildschirmfoto 2017-03-21 um 21.13.15.png | 24.48 KB | Chipie | |
Bildschirmfoto 2017-03-21 um 21.17.44.png | 42.43 KB | Chipie |
Comments
Comment #2
Chipie CreditAttribution: Chipie commentedMaybe it's a caching issue, I'm not sure, but it seems that
module_invoke_all('i18n_string_info');
ini18n_string_group_info()
does not invoke all i18n_string_info hooks in all enabled modules.My workaround ist to include the missing modules in
hook_init()
.Comment #3
donquixote CreditAttribution: donquixote as a volunteer commentedComment #4
Chipie CreditAttribution: Chipie commentedAfter spending some time debugging this, I found out, that the problem was that module_hook_info() did not retrieve the hook i18n_string_info() from cache.
After applying the patch from #1415278-10: Using entity_get_info in a hook_hook_info results in an incomplete module_implements cache. the problem was fixed.
Comment #5
Chipie CreditAttribution: Chipie commentedComment #6
Chipie CreditAttribution: Chipie commented