Closed Bug 1013096 Opened 10 years ago Closed 10 years ago

[Calendar] Month View: don't hard-code date structures

Categories

(Firefox OS Graveyard :: Gaia::Calendar, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.0 S3 (6june)

People

(Reporter: flod, Assigned: mmedeiros)

References

Details

(Keywords: l12y)

Attachments

(1 file)

Noticed today while testing Gaia master: date format in the new month view is wrong in Italian ("Full_day, short_month day_number" doesn't make sense).

Then I realized I'm not responsible for this error
https://github.com/mozilla-b2g/gaia/blob/master/apps/calendar/js/views/months_day.js#L46-L49

If you need it, please define a new localizable string for this date format, don't hard-code it.

One other note about the changes landed in bug 951069: text-transform: uppercase; is bad (see bug 830002).
Assignee: nobody → mmedeiros
created a new date format specific for the MonthsDay View header.
Attachment #8429590 - Flags: review?(francesco.lodolo)
Attachment #8429590 - Flags: review?(evanxd)
Target Milestone: --- → 2.0 S3 (6june)
Comment on attachment 8429590 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/19692

Switching to feedback since I'm not a real reviewer.

I left a comment on GH about the key name (very minor nit), this is definitely better.

Code-wise (which is not really my area): I think we're trying to move away from using .innerHTML (bug 992473), but that could be part of a more general code update for Calendar.
https://groups.google.com/forum/#!topic/mozilla.dev.gaia/YfkmG_FTA3k
Attachment #8429590 - Flags: review?(francesco.lodolo) → feedback+
Comment on attachment 8429590 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/19692

Hi Miller,

Nice works!
Just a nit for naming of `months-day-header` label.
Attachment #8429590 - Flags: review?(evanxd) → review+
landed into master! https://github.com/mozilla-b2g/gaia/commit/124f3bcf4d35763b9acfbc2c4bd1b3eeab170fa9
Status: NEW → RESOLVED
Closed: 10 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: