Globalization in ASP.NET MVC using Smart internationalization for ASP.NET

suggest change

Versions

The i18n library targets ASP.NET on .NET Framework 4.0 through 4.6.1.

Remarks

Smart internationalization for ASP.NET page

The benefit of this approach is that you don’t have to clutter controllers and other classes with code to look up values from .resx files. You simply surround text in [[[triple brackets.]]] (The delimiter is configurable.) An HttpModule looks for a translation in your .po file to replace the delimited text. If a translation is found, the HttpModule substitutes the translation. If no translation is found, it removes the triple brackets and renders the page with the original untranslated text.

.po files are a standard format for supplying translations for applications, so there are a number of applications available for editing them. It’s easy to send a .po file to a non-technical user so that they can add translations.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents