Closed Bug 1169309 Opened 10 years ago Closed 10 years ago

Separate the concat from the pretranslate step

Categories

(Firefox OS Graveyard :: Gaia::Build, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(b2g-master fixed)

RESOLVED FIXED
2.2 S14 (12june)
Tracking Status
b2g-master --- fixed

People

(Reporter: stas, Assigned: stas)

References

Details

Attachments

(1 file)

These two operations are now done together. We could clean the code up a bit by separating them.
Assignee: nobody → stas
Attachment #8612347 - Flags: review?(rchien)
Blocks: 1169361
Attachment #8612347 - Flags: review?(rchien) → review+
I think I accidentally fixed a bug with pretranslation. On current master, GAIA_DEFAULT_LOCALE correctly sets the lang and dir attributes on <html> but doesn't actually localize the DOM. I'm not sure why, but my PR appears to have fixed this.
Clarification: this only happens to qps-* locales.
Hey Ricky, thanks for the review. I'd like to have a quick question before I'm ready to merge this. I realized that this._optimize was only called when the document was localization-enabled, i.e. it linked to l10n.js and definded localization resources. Was this intended? I'll keep this the same way in the PR, but I'm wondering if it was a bug. https://github.com/mozilla-b2g/gaia/pull/30291#discussion_r31310121
Flags: needinfo?(rchien)
Yah, it's bug. We should do optimize event if there's no l10n.js nor localization in html but only ignore l10n optimize method. We should file a bug to fix it.
Flags: needinfo?(rchien)
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.2 S14 (12june)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: