Closed Bug 1418061 Opened 8 years ago Closed 6 years ago

In the new FF57 date input widget with pt locale days of the week appear as segunda, terça, quarta,... These are too long and appear superimposed and scroll bars show up.

Categories

(Core :: Layout: Form Controls, defect, P3)

defect

Tracking

()

VERIFIED FIXED
mozilla70
Tracking Status
firefox70 --- verified

People

(Reporter: jmatos, Assigned: jfkthame)

References

(Blocks 1 open bug)

Details

(Whiteboard: cldr-data-done)

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171116103757 Steps to reproduce: Open a date input widget with FF57 on Linux or Windows with pt locale. For instance https://math.tecnico.ulisboa.pt/seminars Actual results: Days of the week appear in full as "segunda", "terça", "quarta", "quinta", "sexta", "sábado", "domingo". These words are too long for the input wiget and they get superimposed and scroll bars appear. Expected results: Taking a hint from paper calendars days of the week should be abbreviated as "Seg", "Ter", "Qua", "Qui", "Sex", Sáb", "Dom".
Blocks: datetime
Status: UNCONFIRMED → NEW
Component: pt-PT / Portuguese → Layout: Form Controls
Ever confirmed: true
Product: Mozilla Localizations → Core
Attached image S
Screenshot on pt-PT build.
I have the feeling this needs to be reported to CLDR https://www.unicode.org/cldr/charts/32/by_type/date_&_time.gregorian.html#304f66ebdb632c8f en: sun pt: dom pt_PT: domingo
@zibi I'm looking at http://cldr.unicode.org/index/bug-reports Do you know more about the process to request changes to CLDR data? In the meantime, I guess the problem needs also a fix on the layout side (max-width for the label and hide overflow?)
Flags: needinfo?(gandalf)
(In reply to Francesco Lodolo [:flod] (traveling, slow answers, back Nov 22) from comment #3) > In the meantime, I guess the problem needs also a fix on the layout side > (max-width for the label and hide overflow?) Wouldn't that just make errors in localizations harder to detect? I think the reporter is right, it's a localization error - these names are expected to be abbreviations.
(In reply to Mats Palmgren (:mats) from comment #4) > (In reply to Francesco Lodolo [:flod] (traveling, slow answers, back Nov 22) > from comment #3) > > In the meantime, I guess the problem needs also a fix on the layout side > > (max-width for the label and hide overflow?) > > Wouldn't that just make errors in localizations harder to detect? It might (you'd likely still see half a character, if we hide the overflow and not truncate the label), but the layout should also not break like this. > I think the reporter is right, it's a localization error - > these names are expected to be abbreviations. In case, that's CLDR error, those translations are not Mozilla's.
Whiteboard: cldr-data
> Do you know more about the process to request changes to CLDR data? You file a bug in their ticket system and propose a change :)
Flags: needinfo?(gandalf)
One thing I like to do is also reference such ticket in our Bugzilla's "See Also" if there's a bug for the change you're requesting in CLDR, but that's just my practice to easily remember where to look for updates.
Priority: -- → P3
We should already be using SHORT https://searchfox.org/mozilla-central/source/toolkit/content/widgets/datetimepopup.xml#153 But for some reasons we're picking up either wide or abbreviated https://github.com/unicode-cldr/cldr-dates-modern/blob/master/main/pt-PT/ca-gregorian.json#L105 NI for zibi to figure out if it's a bug in ICU
Flags: needinfo?(gandalf)
Whiteboard: cldr-data → cldr-data-completed
Whiteboard: cldr-data-completed → cldr-data-done

Although hacking in ad-hoc tweaks for specific languages/locales is ugly and non-scalable, I think we should consider applying some kind of fix here so that the calendar looks OK for pt-PT users, while we wait for the ICU/CLDR questions to be resolved upstream. The current behavior of the date picker is really bad for this locale, and it should be trivial for us to work around it, e.g. by just using "pt" in place of "pt-PT" when building the calendar.

Pushed by jkew@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2799cfb271ca Use the generic pt locale in place of pt-PT when constructing date picker, to avoid over-long day names. r=flod
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
Assignee: nobody → jfkthame

Reproduced the initial issue using an old affected version of Firefox (57.0 pt-PT). Verified that months are abbreviated now on 70.0b9 across platforms (macOS 10.13, Ubuntu 18.04 64bit and Windows 10 64bit).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: