For example, I would like this default ASP.NET MVC 4 validation message: The value \'qsdqsdqs\' is not valid for Montant to be displayed in french.
I f
Actually using ResX Manager. Visual Studio menu Tools -> Extensions and Updates -> search for "resx" in Online tools.
With its helpers all my strings are accessed like "Res.SomeTranslatedString".
Now with credits to everybody above, let's translate a registration viewmodel message for a boolean property to check if user accepted terms and conditions. With the above tool i have put the string into Res.YouMustAcceptTermsAndConditions. Then we modify the viewmodel code:
Was:
public class RegisterViewModel
{
[Required]
[Range(typeof(bool), "true", "true", ErrorMessage = "You must accept terms and conditions.")]
[Display(Name = "Agree to terms.")]
public bool AgreeTerms { get; set; }
Became:
public class RegisterViewModel
{
[Required]
[Range(typeof(bool), "true", "true", ErrorMessageResourceType = typeof(Res), ErrorMessageResourceName = "YouMustAcceptTermsAndConditions")]
[Display(Name = "Agree to terms.")]
public bool AgreeTerms { get; set; }
Now you see that we have the [Display] still untranslated.. The solution is here: https://stackoverflow.com/a/3877154/7149454