[Mono-dev] I18n and ASP.Net (Rolando Martínez)

Rolando Martinez rolandomartinezg at gmail.com
Wed Apr 30 16:21:53 EDT 2008


Hi Michael,
     Some moths ago, you spoke with me about the Gettext Addins inside in
MonoDevelop and now  I would like to know how to open the code for this
addins. Can I use the monodevelop for this?
Any suggestions?

Thanks a lot!!,
Rolando.


Best,
Rolando

(R)

2008/2/8 Michael Hutchinson <m.j.hutchinson at gmail.com>:

> 2008/2/7 Rolando Martinez <rolandomartinezg at gmail.com>:
> > Hi,
> >  Thanks for your answers,
> >
> >  I'm working on a application for online translation of po files
> (something
> > like a online editor of po files ) . Then I would know if I can use
> > something like this (http://www.mono-project.com/Internationalization)
> and
> > not the typical localization features (resources files).
>
> Would you be interested in sharing code with MonoDevelop's translation
> addin? We already have code to parse/edit/save po files, at
> trunk/monodevelop/main/src/addins/MonoDevelop.Gettext/ (MIT/X11
> license), and would be interested in a web based editor too :)
>
> Using gettext from an ASP.NET app would get complicated because
> libintl gets the language from the LANG environment variable, which
> would obviously cause problems trying to use multiple languages within
> a single process, i.e. a threaded web server. However, there's no
> reason in principle why you could not hack the libintl library to
> allow different 'instances' to be used from different threads, or even
> port it to C# and use the current thread's .NET culture.
>
> Once these problems were solved, you could use expressions like <%#
> GettextCatalog.GetString ("Translate me") %>. You'd also need a
> scanner for find extracting translatable strings, but MonoDevelop's
> gettext scanner could do that with a couple of regexes.
>
> FWIW, the ASP.NET quickstart page claims that the localisation model
> in 2.0 can be swapped out, but there doesn't seem to be much info on
> this.
>
> --
> Michael Hutchinson
> http://mjhutchinson.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080430/1cdf9a51/attachment.html 


More information about the Mono-devel-list mailing list