Closed Bug 373350 Opened 18 years ago Closed 18 years ago

Days in minimonth should not be shrinked to one character

Categories

(Calendar :: Sunbird Only, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: thorsten.fritz, Assigned: mschroeder)

References

Details

Attachments

(3 files, 2 obsolete files)

In german, the days in minimonth are displayed "Mo" "Di" "Mi "Do" "F" "Sa" "So". Only Friday has one character, so this should be changed so that all days have two characters.
Confirmed. After Bug 317607 being fixed the abbreviations for the day names are now retrieved from localization language and not calculated from the full OS day names. Currently also the abbreviations from localization will be shorten automatically: http://lxr.mozilla.org/mozilla1.8/source/calendar/resources/content/datetimepickers/minimonth.xml#217 This should not be done as it will result in unwanted or uncommon abbreviations. For example in German the minimonth header should be "Mo Di Mi Do Fr Sa So" and not "Mo Di Mi Do F Sa So".
Attached patch Patch v1 (obsolete) — — Splinter Review
Removed "retrieve day names from OS" and "shrinking of day names" parts.
Assignee: nobody → mschroeder
Status: NEW → ASSIGNED
Attachment #259215 - Flags: first-review?(lilmatt)
Comment on attachment 259215 [details] [diff] [review] Patch v1 Better patch in preparation.
Attachment #259215 - Attachment is obsolete: true
Attachment #259215 - Flags: first-review?(lilmatt)
Attached patch Patch v2 (obsolete) — — Splinter Review
Removed "retrieve day names from OS", "shrinking of day names" parts and combined for-loops.
Attachment #259222 - Flags: first-review?(lilmatt)
Comment on attachment 259222 [details] [diff] [review] Patch v2 The fallback to get the dates from the OS should not be removed. It might be needed if somebody tries to use the datepicker outside calendar. You could set a bool when you needed to use the fallback, and later only shrink when the bool is set.
Attachment #259222 - Flags: first-review?(lilmatt) → first-review-
Attached patch Patch v3 — — Splinter Review
Shrinking of day names only if fallback to OS format.
Attachment #259222 - Attachment is obsolete: true
Attachment #262133 - Flags: review?(mvl)
Blocks: 377405
Comment on attachment 262133 [details] [diff] [review] Patch v3 r=mvl
Attachment #262133 - Flags: review?(mvl) → review+
Whiteboard: [checkin needed after 0.5]
Blocks: 383451
Doesn't this patch conflict with the patch in Bug 364672?
Attached patch Merged patch — — Splinter Review
Merged patch for the conflicting patches from bug 373350 (this one) and 364672.
Checked in merged patch on HEAD and MOZILLA_1_8_BRANCH -> FIXED
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Whiteboard: [checkin needed after 0.5]
Target Milestone: --- → 0.7
Attached image Screenshot —
Some of the day names in my minimonth are still one character (see screenshot). U.S. English Lightning 0.7pre 2007080305
(In reply to comment #11) > Some of the day names in my minimonth are still one character Because they are specified as one character only -> everything is OK http://lxr.mozilla.org/mozilla/source/calendar/locales/en-US/chrome/calendar/dateFormat.properties#83
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: