[MonoDevelop] Translations
Michael Hutchinson
m.j.hutchinson at gmail.com
Tue May 5 02:48:27 EDT 2009
On Fri, May 1, 2009 at 2:24 PM, Patricio Palma <patriciopalma at ic.uach.cl> wrote:
> Gtk window with only a label named label1 and label1.Text="My Label".
> So, adding translations project (Spanish) to the solution I can translate
> the string "My Label" to "Mi etiqueta".
> using Mono.Unix.Catalog.GetString("My Label") obviously.
> After to compile it I can see the directory
> some/path/Debug/locale/es/LC_MESSAGES/es.mo
> but launching my app It steel using English strings.
>
> $ env | grep LANG
> LANG=es_ES.UTF-8
> GDM_LANG=es_ES.UTF-8
>
> What is wrong?
Did you initialise the catalogue?
Catalog.Init("yourappname","path/to/locale");
http://www.mono-project.com/I18N_with_Mono.Unix
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Monodevelop-list
mailing list