Tag Archives: i18n

Translating route names in ASP NET MVC

One of the web applications we develop has support for multiple languages, and we got the request to have also the route names translated. As such, a user visiting the site in english and navigating to the stores page should be redirected to example.com/stores, whereas a spanish customer should see example.com/comercios in the URL bar. … more

Posted in Blogs | Tagged , , |

Gettext C# Utilities

The Gettext C# Utilities GNU project, containing convenient classes, templates, scripts and tools for easily implementing gettext i18n support for C# and ASP NET applications, has been polished up and version 1.0 is ready for download. I’ve written walkthroughs in the wiki pages detailing how to add gettext support for a simple console project, using … more

Posted in Blogs | Tagged , , |

Javascript strings translation with gettext

In a previous post I mentioned a few ways of dealing with i18n of strings in ASP.NET pages with gettext. Now it’s time for javascript code. Although javascript code in ASP.NET pages can be internationalized using the <%= %> syntax, pure js files are not processed, and therefore a different mechanism for dealing with javascript … more

Posted in Blogs | Tagged , , |

Gettext i18n strings in ASP.NET controls

In the last post I blogged about using gettext to internationalize strings in C#. However, using the Messages.T("Hello world") syntax in ASP.NET can be a little cumbersome. Luckily, ASP.NET controls can work as a solution for this issue. Adding a simple control which we will name just “t” (and place it in namespace “t” as … more

Posted in Blogs | Tagged , , , |

Using GNU Gettext for i18n in C# and ASP.NET

We are in the process of dealing with the internationalization and localization of one of our open source web applications, which is fully developed using C# and ASP.NET MVC. Although ASP.NET already provides easy support for i18n via the usage of resx resource files, these are not very user friendly for translators. A resx file … more

Posted in Blogs | Tagged , , , |