[mono-android] [Monodroid] [MonoDroid] Localization
Nathan Blevins
nblevins at nathanblevins.com
Mon Mar 28 22:52:47 EDT 2011
Hey all,
Still trying to get the Localization to work on examples like this:
Console.WriteLine(String.Format("Default Locale:
{0}",System.Globalization.CultureInfo.CurrentCulture.Name));double
bigNum = 123456789.123;Console.WriteLine(string.Format("{0:N}",
bigNum));Console.WriteLine(DateTime.Now.ToShortDateString());
Looking at the bug report (
https://bugzilla.novell.com/show_bug.cgi?id=664573), it looks as if it has
been fixed, but I am still having issues. Here are the values that are
being write for the German locale.
//German.
Default Locale: //No value was written for the default locale call.
123,456,789.12 //Correct
03/29/2011 // Expected 29.03.2011
Could this be a regression?
Nathan
On Fri, Jan 14, 2011 at 10:24 AM, Jonathan Pryor <jpryor at novell.com> wrote:
> This has been filed as: https://bugzilla.novell.com/show_bug.cgi?id=664573
>
> - Jon
>
> On Jan 13, 2011, at 6:32 PM, Stephen Long wrote:
> > Hi – I sent this email yesterday, but wasn’t sure if it went through.
> Forgive me if it’s in duplicate.
> >
> >
> > Are there any problems with Localization in Preview 10?
> >
> >
> > Using something like this and changing the locale on the emulator has no
> effect:
> >
> >
> > Double bigNum = 123456789.123;
> >
> > string strDateTime = DateTime.Now.ToShortDateString();
> >
> > MyNumTextView.Text = string.Format("{0:N}", bigNum);
> >
> > MyDateTextView.Text = strDateTime;
> >
> >
> > My expectation would be that the number/date is formatted based on the
> current culture/locale on the Android device.
> >
> >
> > One other thing that I noticed is that CultureInfo.CurrentCulture.Namedoesn’t seem to be set.
> >
> >
> > Thanks,
> >
> > Stephen
> >
> > _______________________________________________
> > Monodroid mailing list
> > Monodroid at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodroid
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodroid
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110328/148ce94d/attachment.html
More information about the Monodroid
mailing list