In l10n_update.bulk.inc around line 562-570:
elseif (!empty($context['sandbox']['refresh']['strings'])) {
// Not perfect but will give some indication of progress.
$context['finished'] = 1 - count($context['sandbox']['refresh']['strings']) / $context['sandbox']['refresh']['count'];
// Pending strings, refresh 100 at a time, get next pack.
$next = array_slice($context['sandbox']['refresh']['strings'], 0, 100);
array_splice($context['sandbox']['refresh']['strings'], 0, count($next));
// Clear cache and force refresh of JavaScript translations.
_l10n_update_refresh_translations($context['sandbox']['refresh']['languages'], $next);
}
If you are unlucky enough to hit this particular code block, you have a problem. Because there is no function called _l10n_update_refresh_translations. Tried to search quickly after similarly named functions, but could not find any.
For my use case (I am running these batch things as part of an install procedure) I can work around it. But it seems like something that should be cleaned up in some way. Not sure what the function is supposed to do (well, I have an idea, but specifically :)). So if someone could provide any pointers I would gladly provide the patch myself.
For reference (this would be what people would google for) this would produce the following error:
Fatal error: Call to undefined function _l10n_update_refresh_translations() in /path/to/drupal/sites/all/modules/contrib/l10n_update/l10n_update.bulk.inc on line 569
Comments
Comment #2
eiriksmComment #3
Sutharsan CreditAttribution: Sutharsan commented_l10n_update_refresh_translations should be a backport of the following D8 core code: