mozilla-b2g/gaia — pull request #7867 by gtorodelvalle (2013-01-30 17:07:30+00:00)
Title: Bug 835329 - [DIALER] Timer is not appearing during an outgoing call (r=@etiennesegonzac)

The localization feature was not working in the Comms incoming and outgoing attention screens due to a problem in the lazy loading of this feature.

The source of the problem in this code snippet: https://github.com/mozilla-b2g/gaia/blob/master/shared/js/l10n.js#L949

More concretely, in the case of the incoming/outgoing attention screen, the lazy loading of the localization feature in the Comms app caused the previously mentioned code snippet to be executed with document.readyState equal to 'interactive' and consequently the listener added via document.addEventListener('DOMContentLoaded', l10nStartup) never ran (since the DOMContentLoaded has been already fired, if not the document.readyState wouldn't be 'interactive') and consequently the l10nStartup function was never executed which was causing the localization capabilities to fail ;-999