dart-lang / i18n

A general mono-repo for Dart i18n and l10n packages.
BSD 3-Clause "New" or "Revised" License
63 stars 36 forks source link

turkish dateformat #318

Closed DartBot closed 9 years ago

DartBot commented 9 years ago

Originally opened as dart-lang/sdk#20315

This issue was originally filed by chanhdinh2...@gmail.com


What steps will reproduce the problem? 1. 2. 3.

What is the expected output? What do you see instead?

What version of the product are you using?

On what operating system?

What browser (if applicable)?

Please provide any additional information below.

DartBot commented 9 years ago

This comment was originally written by chanhd...@gmail.com


Sorry accidentally hit enter.

What steps will reproduce the problem?

  1. Use DateFormat to get the MMMd() pattern in Turkish

What is the expected output? What do you see instead? i suppose to get "d MMM" but getting "d MMMM" instead

What version of the product are you using? intl: any

On what operating system? OS X 10.9.4

Please provide any additional information below. looked at tr.json file MMMd is return d MMMM. Also notice MMMEd is returning d MMMM EEE. Both return 1 extra M than it should be

DartBot commented 9 years ago

Comment by kasperl


cc @alan-knight. Added Area-Pkg, Pkg-Intl, Triaged labels.

DartBot commented 9 years ago

Comment by alan-knight


What Intl version are you looking at? Looking at the current version (0.11.4) in tr.json I see    'MMM d' : 'd MMM' The CLDR data were updated to version 25 in version 0.10.0.

In the current version I do see MMMEd as you describe. That's what ICU is giving us for a Gregorian calendar in Turkish locale. See http://www.unicode.org/repos/cldr-aux/json/25/main/tr/ca-gregorian.json

We simplify the calendar data by bringing it down to one per locale. There are 18 different calendars listed for 'tr' locale at http://www.unicode.org/repos/cldr-aux/json/25/main/tr/ and we don't want to include the data for all of them.

I suspect you're expecting data more like what's in the generic or islamic-civil calendar files there, where it does use only MMM. It seems odd that Gregorian would use MMMM. It may be a bug in CLDR, and I've asked our internationalization people about that.


Added NeedsInfo label.

DartBot commented 9 years ago

Comment by alan-knight


See also
http://st.unicode.org/cldr-apps/v#/tr/Gregorian/7f7bdb9593a8cc11

DartBot commented 9 years ago

This comment was originally written by chanhdi...@gmail.com


Hi, thanks for the responses. Looks like my version is old. I'll update. Yeah It's weird that they use MMMM when i ask for MMM for tr where other languages use the correct thing.

Any way MMMd is what I needed. Thanks again.

Chanh,

DartBot commented 9 years ago

Comment by alan-knight


OK, marking as AssumedStale.


Added AssumedStale label.