Closed
Bug 838166
Opened 11 years ago
Closed 9 years ago
Consider refactoring how we react to missing entities while localizing document
Categories
(L20n :: HTML Bindings, defect)
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
Next
People
(Reporter: zbraniecki, Unassigned)
Details
(Keywords: APIchange)
An idea from bug 801663 is to change how we react to missing entities while localizing the document. We then adjust l20n-xml code to: - switch this flag on on localizationReady when it begins localizing nodes - when it encounters a node that is missing (and throws exception) it ignites fallback context loading asynchronously and add this node to the list of nodes that will be localized when fallback context is ready - it continues localizing nodes, and if it encounters more nodes that cannot be translated it adds them to that list - when subcontext is loaded it localizes those that were waiting - it fires DocumentLocalized only when all nodes are localized - on firing DocumentLocalized it switches off the dontFallback flag to off - if DocumentLocalized has loaded and the developer programmatically asks for an entity that we don't have, we load fallback context synchronously. - before DocumentLocalized we encourage to use getAsync or prepare for get throwing
Updated•11 years ago
|
Updated•11 years ago
|
Assignee: gandalf → nobody
Priority: P1 → --
Target Milestone: 1.0 beta → Next
Updated•11 years ago
|
Flags: blocking-parkcity+
Comment 1•9 years ago
|
||
We moved to async-only API in the meantime, so this is no longer relevant.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•