[Mono-dev] Mono.Unix.Catalog.Init where does it get the locale from?

Vladimir Dimitrov vlad.dimitrov at gmail.com
Thu Mar 13 09:49:37 EDT 2008

Hi guys,

On windows when I set 

 Thread.CurrentThread.CurrentCulture = new CultureInfo (config.Localization)


I can change the localization of the current thread and if I call
Catalog.Init after that the localization is properly initialized, and
Catalog.GetString gives me correct string from the localization setup I have
for my application.

But if use the same code on Linux Catalog.GetString does not respect the
changes I made and does not return the messages for the localization I set.

If I use 

LANG=cs_CZ.utf8 mono MyApp.exe


Then everything is fine and the localization works. Is there something I am
doing wrong or is this a bug in Mono.Unix?




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20080313/241d015f/attachment-0001.html 

More information about the Mono-devel-list mailing list