dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.12k stars 1.57k forks source link

turkish dateformat #20315

Closed DartBot closed 9 years ago

DartBot commented 10 years ago

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 10 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

kasperl commented 10 years ago

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

alan-knight commented 10 years ago

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.

alan-knight commented 10 years ago

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

DartBot commented 10 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,

alan-knight commented 10 years ago

OK, marking as AssumedStale.


Added AssumedStale label.

DartBot commented 9 years ago

This issue has been moved to dart-lang/i18n#318.