[Mono-dev] Patch for Math.cs and MathTest.cs
Miguel de Icaza
miguel at novell.com
Fri Mar 16 12:49:55 EDT 2007
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);
>
More information about the Mono-devel-list
mailing list