Closed
Bug 1066347
Opened 10 years ago
Closed 10 years ago
Separate concatenated l10n JSON per HTML file
Categories
(Firefox OS Graveyard :: Gaia::L10n, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
2.2 S10 (17apr)
People
(Reporter: zbraniecki, Assigned: zbraniecki)
References
Details
Attachments
(1 file)
We currently build a single ab-CD.json per app. Apps have multiple files with different resources required.
We should build one ab-CD-file.json per HTML file.
Assignee | ||
Updated•10 years ago
|
Priority: -- → P3
Comment 1•10 years ago
|
||
It might be worth checking how many strings are shared between each HTML file and if there are many, creating a {locale}-common.json file to avoid duplication of strings in per-file JSONs.
Assignee | ||
Comment 2•10 years ago
|
||
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
Assignee | ||
Comment 3•10 years ago
|
||
Comment on attachment 8590149 [details] [review]
pull request
Ok, the patch is ready.
Stas, can you review it first? Once you're happy, I'll ask :rickychien.
I took liberty to clean up some pieces as I moved writeAST to HTMLOptimizer, especially around HTMLOptimizer's callback that has not been used at all.
The code is leaner which I like and should be less racey.
Attachment #8590149 -
Flags: review?(stas)
Comment 4•10 years ago
|
||
Comment on attachment 8590149 [details] [review]
pull request
I like that fact that this both makes more sense *and* make the code simpler :) webapp.asts was a useless abstraction. r=me, thanks!
Attachment #8590149 -
Flags: review?(stas) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8590149 [details] [review]
pull request
Ricky?
Attachment #8590149 -
Flags: review?(ricky060709)
Comment 6•10 years ago
|
||
Comment on attachment 8590149 [details] [review]
pull request
Hi there are some nits I leaved on Github, please fix it and r=me thanks!
Attachment #8590149 -
Flags: review?(ricky060709) → review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Updated•10 years ago
|
Keywords: checkin-needed
Comment 7•10 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/6e403dbb863fb9ec41bd22b6583e2eff5045d78b
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment 8•10 years ago
|
||
We'll need to fix the langpack builder to use the same file names for JSONs: https://github.com/zbraniecki/langpack-builder/pull/5
Updated•10 years ago
|
Target Milestone: --- → 2.2 S10 (17apr)
You need to log in
before you can comment on or make changes to this bug.
Description
•