[Mono-dev] Patch for Math.cs and MathTest.cs
Andreas Nahr
ClassDevelopment at A-SoftTech.com
Fri Mar 16 21:59:13 EDT 2007
Locale.GetText even has a Locale.GetText(String formatString, Object[]
params) convenience overload.
Greetings
Andreas
-----Ursprüngliche Nachricht-----
Von: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] Im Auftrag von Miguel de
Icaza
Gesendet: Freitag, 16. März 2007 17:50
An: Andreas Nahr
Cc: 'Dennis Hayes'; mono-devel-list at lists.ximian.com
Betreff: Re: [Mono-dev] Patch for Math.cs and MathTest.cs
Hello,
> Locale.GetText ("The value '" + mode + "' is not valid for this usage
> of the type MidpointRounding.")
>
> That is not going to work, because you would have to localize every
> possible concatenated string combination. Moreover tools wouldn't be
> able to extract the neccessary string data.
Yup, the above code should be:
String.Format (Locale.GetText ("The value {0} is not valid for this
usage of the type MidpointRounding"), mode);
>
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list