Closed Bug 818015 Opened 12 years ago Closed 12 years ago

Order of variables for date elements is wrong for locales in Homescreen

Categories

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

defect

Tracking

(blocking-basecamp:-)

RESOLVED FIXED
blocking-basecamp -

People

(Reporter: pascalc, Assigned: stas)

References

Details

Attachments

(2 files)

Attached image screenshot of the bug
On the Home Screen, the date is badly displayed in French, the words are translated but the format uses English syntax.

The lockscreen does not have this bug.

Lockscreen: mardi 4 décembre
Homescreen: mardi, décembre 4

I see that with a Firefox OS Desktop client based on the mozilla-beta repo + the gaia repo

I have a small patch that fixes that locally. Will do a pull request referencing this bug
Attachment #689185 - Flags: review?(kaze)
Comment on attachment 689185 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g/gaia/pull/6804

Unless I miss something, the fix you propose would not work in English.

The real fix would be to understand why the _('longDateFormat') string is not properly returned. This looks like an initialization issue (e.g. init before l10n is ready).
Attachment #689185 - Flags: review?(kaze) → review-
However, this bug remains valid and should be fixed ASAP. Nominating for blocking-basecamp.
blocking-basecamp: --- → ?
Blocks bug 811242 which is bb+.
Blocks: 811242
Assignee: nobody → kaze
Target Milestone: --- → B2G C2 (20nov-10dec)
blocking-basecamp: ? → +
Priority: -- → P3
OK, turns out the problem is a pure l10n one: the code works fine but the homescreen/locales/*.properties files are not up-to-date. As _('longDateFormat') is not defined for French (nor for any other supported locale in this repository…), the English format is used instead.

Pike and/or Staś, would you please update the Gaia repository with the *.properties files for [ar], [fr] and [zh-TW] from your repo?
Assignee: kaze → l10n
Target Milestone: B2G C2 (20nov-10dec) → ---
stas said that he's doing another migration before going on PTO
Assignee: l10n → stas
I opened https://github.com/mozilla-b2g/gaia/pull/6863.  I'll probably open a new bug, too.
Depends on: 818999
From our read, this doesn't impact any 1.0 shipping locales. We can revisit for a future version.
blocking-basecamp: + → -
fixed by bug 818999
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: