ASP.NET Core Model Binding Error Messages Localization

To customize framework model binding error messages, you need to set custom accessors for different error message accessors of ModelBindingMessageProvider. Example Here you can download a full source code of what is described in this post. The repository contains example for ASP.NET Core 2.0 (VS 2017.3) and ASP.NET Core 1.1 (VS 2015): r-aghaei/AspNetCoreLocalizationSample Also here … Read more

How to localize the documentation of a .NET library [closed]

One strategy, which would require some coordination with the Sandcastle XSLT files, would be to use the xml:lang attribute on your XML documentation. Visual Studio 2010 allows multiple tags to remain (although you may get complaints about duplicate tags). /// <summary> /// Gets or sets the fill size of the load operation. /// </summary> /// … Read more

How to remove localization from file

This is a pretty stupid way, but the only one I found out working if you want to restore the default: Move the xib or Storyboard files from the Base.lprojfolder to your main project folder back (within the Finder). Delete the reference of the XIB/Storyboard files (in XCode) Reimport all of them back to your … Read more

Android: Get missing translations for strings-resources

This isn’t automated, but it’s very fast. In Eclipse, to go Window->Show View->Other->Android->Resource Explorer. Now, under the Resource Explorer tab at the bottom (or wherever you’ve moved it to) look under String. Each string should have the same number of versions if you have a complete translation, so you can scan down the list in … Read more

Non-English texts in Stripe possible?

For further reference: While you can’t use human messages on stripe errors to be displayed directly on localized pages, you can take advantage of response.error.code to provide your own translations. var errorMessages = { incorrect_number: “The card number is incorrect.”, invalid_number: “The card number is not a valid credit card number.”, invalid_expiry_month: “The card’s expiration … Read more