Closed
Bug 817286
Opened 13 years ago
Closed 13 years ago
[l10n] l10n.js failed if locale ini imports non-exist propertie files
Categories
(Firefox OS Graveyard :: Gaia, defect, P1)
Firefox OS Graveyard
Gaia
Tracking
(blocking-basecamp:+)
People
(Reporter: johnshih.bugs, Assigned: kaze)
References
Details
(Whiteboard: [target:12/21])
Attachments
(1 file)
## Environment :
Unagi phone, build 2012-11-30
Build info:
gaia master : ccf5f69acf7cb9f1831ecc69d7c518c243c74c3a
mozilla-beta : 6c14548dbd4e
## Repro :
1. Enter settings app
2. Enable the Language page
3. Launch the language selection page
4. Press Hebrew first, verify the layout will left-right reverse
5. Press Francis or Mandarin
## Expected:
* The layout will reverse back
## Actual:
* Didn't reverse back
## Note:
* Only English works normally
Updated•13 years ago
|
blocking-basecamp: ? → +
Priority: -- → P2
It also happened in FTU
Summary: [Settings][Language] The layout won't reverse back after switch from Hebrew to Francis or Mandarin → [FTU][Settings][Language] The layout won't reverse back after switch from Hebrew to Francis or Mandarin
Comment 3•13 years ago
|
||
I discovered the root cause about this issue. I can take this one if it becomes BB+ issue. Thanks
Comment 4•13 years ago
|
||
(In reply to Steve Chung from comment #3)
> I discovered the root cause about this issue. I can take this one if it
> becomes BB+ issue. Thanks
Please document your progress by writing it down here, or at least upload an WIP patch.
Comment 7•13 years ago
|
||
The root cause is because the localize event does not dispatch when locale file path set in ini but no actual locale file matched. It will make localization failed if we forget to update the responding locale file that set in ini. Although Fr and zh-TW is not the target language for V1, we should have better error handling for l10n parsing because such scenario could be reproduced easily in the future.
blocking-basecamp: - → ?
Summary: [FTU][Settings][Language] The layout won't reverse back after switch from Hebrew to Francis or Mandarin → [FTU][Settings][Language]Language is not applied after switch to zh-TW and French in language settings
Comment 8•13 years ago
|
||
Update title, see comment 7.
Pike, do you think fragile l10n bug like this should block?
Component: Gaia::Settings → Gaia
OS: Mac OS X → All
Hardware: x86 → All
Summary: [FTU][Settings][Language]Language is not applied after switch to zh-TW and French in language settings → [l10n] l10n.js failed if locale ini imports non-exists properties files
Updated•13 years ago
|
Summary: [l10n] l10n.js failed if locale ini imports non-exists properties files → [l10n] l10n.js failed if locale ini imports non-exist propertie files
Comment 9•13 years ago
|
||
Yes, we need this. We need confidence that the builds we do are stable against broken localizations. Right now, on any issue with a localized builds, the emails end with a pointer "and then there's this bug, who knows if it's affecting it".
Comment 10•13 years ago
|
||
BB-. Do we have a concrete example of where this is a problem for the langauges that we are shipping with?
blocking-basecamp: ? → -
Priority: P2 → P4
Comment 11•13 years ago
|
||
I can't commit to provide working localizations for either 1.0 nor 1.1 without this bug being fixed. Given that we're taking string changes on a daily basis still, there's no point to restrict the impact of this bug on current problems, but any of the pending changes can break the build to be untestable.
blocking-basecamp: - → ?
Comment 12•13 years ago
|
||
Would removing the non-working locales from the language list in Settings fix this problem?
Flags: needinfo?(l10n)
| Assignee | ||
Comment 13•13 years ago
|
||
Steve, please let me know if you have a better patch in mind.
NOTE: If blocking-basecamp+ is set, just land it for now.
[Approval Request Comment]
Bug caused by (feature/regressing bug #): ?
User impact if declined: some apps (e.g. FTU) are broken if any l10n resource is missing
Testing completed: manual
Risk to taking this patch (and alternatives if risky): that’s just a try…catch
Attachment #690892 -
Flags: review?(schung)
Attachment #690892 -
Flags: approval-gaia-master?(21)
Comment 14•13 years ago
|
||
(In reply to Ben Francis [:benfrancis] from comment #12)
> Would removing the non-working locales from the language list in Settings
> fix this problem?
With the constraint that we won't be providing localizations, like I alerted at in my previous comment.
Glancing at the pull request, that should also address the issue.
Flags: needinfo?(l10n)
Comment 15•13 years ago
|
||
Comment on attachment 690892 [details]
quick and dirty patch
I think using try/catch is also the method I will apply in this fixing(for non-existing URL), thanks!
Attachment #690892 -
Flags: review?(schung) → review+
Comment 16•13 years ago
|
||
Trage: Steve can you explain the problem more fully and why it prevents localisation from working. From the description it sounds like there's only an issue if the .properties file is missing.
Comment 17•13 years ago
|
||
Is this a dup of bug 816978? We could just land the bug there since it's already blocking+'d
Flags: needinfo?(nobody)
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → kaze
| Assignee | ||
Comment 18•13 years ago
|
||
Right, Daniel just pinged me about it. Can someone put a bb+ label on this one please?
Comment 20•13 years ago
|
||
Thanks for the info Tim
blocking-basecamp: ? → +
Flags: needinfo?(nobody)
Priority: P4 → P1
Updated•13 years ago
|
Whiteboard: [target:12/21]
Target Milestone: --- → B2G C3 (12dec-1jan)
| Assignee | ||
Updated•13 years ago
|
Attachment #690892 -
Flags: approval-gaia-master?(21)
| Assignee | ||
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 21•13 years ago
|
||
I just installed master gaia on unagi and Spanish is working perfectly, thanks!
| Assignee | ||
Comment 22•13 years ago
|
||
Glad to read this, thanks for your early feedback!
Comment 23•13 years ago
|
||
(In reply to Ben Francis [:benfrancis] from comment #20)
> Thanks for the info Tim
Cool, I just realized I needinfo?'d nobody!
Comment 24•13 years ago
|
||
(In reply to Steve Chung from comment #15)
> Comment on attachment 690892 [details]
> quick and dirty patch
>
> I think using try/catch is also the method I will apply in this fixing(for
> non-existing URL), thanks!
Kaze, I would say this deserves filing a platform bug and a mention of that bug number in the code. Would you file that bug please?
Flags: needinfo?(kaze)
Comment 25•13 years ago
|
||
Verified on Unagi device Build ID: 20130103070201
Status: RESOLVED → VERIFIED
Flags: needinfo?(kaze)
You need to log in
before you can comment on or make changes to this bug.
Description
•