Closed Bug 825224 Opened 12 years ago Closed 7 years ago

Make DEBUG=1 profiles pick up l10n files correctly

Categories

(Firefox OS Graveyard :: GonkIntegration, defect)

defect
Not set
normal

Tracking

(blocking-basecamp:-)

RESOLVED WONTFIX
blocking-basecamp -

People

(Reporter: Pike, Unassigned)

Details

Attachments

(1 file)

There were a bunch of assumptions in our hack of httpd.js to support hg locale repos inside gaia/locales that are no longer true. I've patched that locally to work reliably again, and didn't find any issues in ftu, contacts, homescreen and shared/date. Requesting blocking-basecamp to support both localizers as well as developers to quickly test against the localization content as it is in hg.
There were a bunch of complicated assumptions, I boiled them down to: resolve '..' first, so you end up with top-level paths to either /shared/.. or /apps/.. . remove 'locales' from the path parts find the locale code in the file name, and remove it try to load localeCode + moddedPath.join('/')
Assignee: nobody → l10n
Status: NEW → ASSIGNED
Attachment #696314 - Flags: review?(kaze)
Not a blocker. Please request uplift on the patches (assuming they are safe, etc)
blocking-basecamp: ? → -
FYI, this blends with build/multilocale.py -i --target=shared --target=apps/browser de to modify the ini files to hook up a particular locale.
Comment on attachment 696314 [details] fix up httpd.js to just drop /locales/, find and replace the locale code. Also resolves .. Trying Vivien for the PR review here.
Attachment #696314 - Flags: review?(kaze) → review?(21)
Comment on attachment 696314 [details] fix up httpd.js to just drop /locales/, find and replace the locale code. Also resolves .. To be honest since this code has been written by stas I will be comfortable is stas review it.
Attachment #696314 - Flags: review?(21) → review?(stas)
Pike, I know you've rebased your patch recently, can you push -f to your branch so that I can test it?
I think I pushed it, https://github.com/mozilla-b2g/gaia/pull/7229/commits talks about March 20.
Comment on attachment 696314 [details] fix up httpd.js to just drop /locales/, find and replace the locale code. Also resolves .. Ah, you're right. I tested the patch and indeed it picks up the l10n files from gaia-l10n repos correctly also for communications/*. (I still had troubles with caching and had to first access the file by typing it's URL in the address bar, but this has nothing to do with this patch.)
Attachment #696314 - Flags: review?(stas) → review+
Stumbled upon this bug and bug 824978 today, not sure what to make of them (the second one looks like a WONTFIX at this point).
Needinfo'ing myself to look at this on Wednesday.
Flags: needinfo?(stas)
Unassigning myself, I'm not actively working on this, and I'm not sure if I will anytime soon.
Assignee: l10n → nobody
Clearly I didn't get to work on this either. I wonder, should we just kill this feature and clean up the httpd.js and the Makefile?
Flags: needinfo?(stas) → needinfo?(l10n)
Grumble, https://dxr.mozilla.org/mozilla-central/search?q=path%3A%2Fhttpd.js&case=true. Regarding the actual question, I haven't kept track on fx os l10n, and I don't know if anybody actually uses this feature. Ask in .l10n?
Flags: needinfo?(l10n)
Firefox OS is not being worked on
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: