MonoTouch CurrentUICulture

When I change the Language of the emulator or the device this change is not reflected in neither Thread.CurrentUICulture nor CultureInfo.CurrentUICulture. Is this by design?

Answers


Presently there is not glue between CultureInfo and NSLocale. I'm not sure we can have an exact match between the two (different lists) and, even on match, there would be small subtle differences that could cause trouble when porting code.

However it could be worth investigating adding a MonoTouch-specific CultureInfo that would use the current NSLocale settings. If you think this would solve your problem then please fill a bug report (priority Enhancement) to http://bugzilla.xamarin.com so it can be priorized for future releases.

I had to make a similar fix to allow .NET TimeZoneInfo to work properly on devices (that will be available in MonoTouch 5.2 and 5.1 betas).


Need Your Help

Is there any point to writing your own validation framework for MVC beta or do you expect one will be released soon?

asp.net-mvc validation

There have been plenty of questions on MVC validation but so far the answer has been pretty much inconclusive.

PHP version of ASP.NET's SqlCacheDependency

php asp.net mysql caching sqlcachedependency

I find the SqlCacheDependency very useful when writing C# ASP.NET applications, and would love to use something similar in my PHP applications. Can anyone suggest something?