Localization of ASP.NET MVC websites with GNU Gettext?
-
22-08-2019 - |
Question
This might be an unusual question, but is there any framework or at least some helper classes that would help me use GNU Gettext for localizing a C# ASP.NET MVC website? I've been using Gettext in a previous (managed code) project and really appreciate the possibility to use PoEdit for translating the resources.
I guess this would mean coding a few HtmlHelper extension methods that can extract the resource strings from Gettext. There even seems to be some kind of C# gettext wrapper, but I wasn't able to find a manual or tutorial. Any pointers would be greatly appreciated.
Thanks,
Adrian
Solution
FairlyLocal is also nice. I modified it to my own needs and am pretty happy with what it offered:
OTHER TIPS
The Mono Project website has a tutorial on how to use gettext in a C# application.
Also this post covers the specific subject of this question, although it doesn't make clear how it obtains the catalog in managed-land: http://weblogs.manas.com.ar/spalladino/2009/10/01/using-gnu-gettext-for-i18n-in-c-and-asp-net/