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?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chipie created an issue. See original summary.

Chipie’s picture

Maybe it's a caching issue, I'm not sure, but it seems that module_invoke_all('i18n_string_info'); in i18n_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().

function my_mdoule_init() {
  // missing i18n text groups modules
  $i18n_modules = [
    'i18n_block',
    'rules_i18n',
    'i18nviews',
    'i18n_field_group',
    'i18n_node',
    'i18n_menu',
    'i18n_taxonomy'
  ];
  foreach ($i18n_modules as $module) {
    if (module_exists($module)) {
      // include i18N_[MODULE].i18n.inc
      module_load_include('inc', $module, $module . '.i18n');
    }
  }
}
donquixote’s picture

Chipie’s picture

After 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.

Chipie’s picture

Status: Active » Closed (works as designed)
Chipie’s picture