Closed Bug 1066347 Opened 10 years ago Closed 9 years ago

Separate concatenated l10n JSON per HTML file

Categories

(Firefox OS Graveyard :: Gaia::L10n, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S10 (17apr)

People

(Reporter: zbraniecki, Assigned: zbraniecki)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
stas
: review+
rickychien
: review+
Details | Review
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.
Depends on: 1022767
Priority: -- → P3
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.
Attached file pull request
Assignee: nobody → gandalf
Status: NEW → ASSIGNED
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 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+
Comment on attachment 8590149 [details] [review]
pull request

Ricky?
Attachment #8590149 - Flags: review?(ricky060709)
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+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
We'll need to fix the langpack builder to use the same file names for JSONs: https://github.com/zbraniecki/langpack-builder/pull/5
Depends on: 1153917
Depends on: 1155084
Target Milestone: --- → 2.2 S10 (17apr)
Depends on: 1163732
Depends on: 1175393
No longer depends on: 1175393
Depends on: 1225429
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: