Bug 22726 - Can't Display Month or Day with Thai culture / th-TH
Summary: Can't Display Month or Day with Thai culture / th-TH
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 3.8.0
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2014-09-07 20:28 UTC by Chris Hardy [MSFT]
Modified: 2017-07-10 07:25 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 22726 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Chris Hardy [MSFT] 2014-09-07 20:28:14 UTC
On a Mac using Xamarin Studio, with both Xamarin.iOS and a console app and the strings dayName and monthName are empty when using the Thai culture. On Windows with Visual Studio console app the strings dayName and monthName have the correct day and month when using the Thai culture.

DateTime testTime = new DateTime (2014, 1, 1);

//CultureInfo culture = CultureInfo.CreateSpecificCulture("en-GB");
//CultureInfo culture = CultureInfo.CreateSpecificCulture("ar-SA");
//CultureInfo culture = CultureInfo.CreateSpecificCulture("zh-CN");
CultureInfo culture = CultureInfo.CreateSpecificCulture("th-TH");

string dayName = testTime.ToString ("dddd", culture);
string monthName = testTime.ToString ("MMMM", culture);

Console.WriteLine ("Culture name : {0}", culture.Name);
Console.WriteLine ("Day name : {0}", dayName);
Console.WriteLine ("Month name : {0}", monthName);

Version information

Xamarin Studio
Version 5.4 (build 194)
Installation UUID: c396d030-fdb3-403e-b41c-8cf9b3c835dc
	Mono 3.8.0 ((no/45d0ba1)
	GTK+ 2.24.23 (Raleigh theme)

	Package version: 308000009

Version: 4.17.0 (Business Edition)
Android SDK: /Users/username/Library/Developer/Xamarin/android-sdk-mac_x86
	Supported Android versions:
		2.1    (API level 7)
		2.2    (API level 8)
		2.3    (API level 10)
		3.0    (API level 11)
		3.1    (API level 12)
		4.0    (API level 14)
		4.0.3  (API level 15)
		4.1    (API level 16)
		4.2    (API level 17)
		4.3    (API level 18)
		4.4    (API level 19)
		4.4.87 (API level 20)
		4.5    (API level 21)
Java SDK: /usr
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

Apple Developer Tools
Xcode 6.0 (6256.20)
Build 6A280n

Version: (Business Edition)

Version: (Business Edition)
Hash: a0e77ba
Build date: 2014-09-03 21:01:43-0400

Build Information
Release ID: 504000194
Git revision: 5d7a7ac2e9cbb44f88bead09f1dcb37d5930d023
Build date: 2014-09-04 10:25:57-04
Xamarin addins: d815976eecec2d2d4b3778a55123ac775663fb8c
Comment 2 Marek Safar 2014-09-08 07:55:01 UTC
We are using CLDR as source of data and unfortunately data for thai-budhistics calendar are not filled yet (e.g. culture.DateTimeFormat.DayNames gives you empty values)
Thought anyone who knows Thai can contribute them.
Comment 3 Lei Bramley 2014-09-08 10:28:15 UTC
As I mentioned in the bug, it is possible to use Visual Studio and standard .net console app to get all the month and day names in Thai, could you use those to fill out the Thai Calendar fields?
Comment 4 Miguel de Icaza [MSFT] 2014-09-08 10:34:42 UTC
Hello Lei,

This would likely be a copyright violation as we do not own the data.
Comment 6 Marek Safar 2014-09-08 10:49:11 UTC
If you need complete Thai support then we are missing following data

Comment 7 Lei Bramley 2014-09-08 12:38:30 UTC
I've put a request in for this data.

In the meantime I've realised that all the DateTimeFormat properties are get/set so I've just filled them in for myself when the Thai culture is selected.

Comment 8 Miguel de Icaza [MSFT] 2014-09-08 12:44:21 UTC
Hello Lei,

Thanks, getting this data from an organically produced source would allow us to ship this data.

Comment 9 Pynne 2017-07-10 07:25:14 UTC
Is there any update on this issue? My app is going to release and now experience this in my app when set language to Thai.