Date: Tue, 19 Mar 2002 20:03:58 -0800 From: Shawn Wagner To: lablgtk at kaba.or.jp Subject: Re: How do I set the locale in lablgtk? Message-ID: <20020319200358.E825 at speakeasy.org> Mail-Followup-To: lablgtk at kaba.or.jp References: <20020313202926.GA1883 at adept.co.za> <20020314120032O.garrigue at kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020314120032O.garrigue at kurims.kyoto-u.ac.jp>; from garrigue at kurims.kyoto-u.ac.jp on Thu, Mar 14, 2002 at 12:00:32PM +0900 On Thu, Mar 14, 2002 at 12:00:32PM +0900, Jacques Garrigue wrote: > From: Johann Spies > > I want to change the language of e.g. the calendar widget to use the > > af_ZA locale. How do I do that? > > You should set manually the LC_ALL or LANG environment variables, > before starting your program. Note that you also need to set > GTK_SETLOCALE for this setting to be used. > I'm working on a general utility library, including an interface to the C setlocale() function, that lets you change the locale directly from ocaml. Haven't tried using it and lablgtk at the same time, but it should hopefully work without blowing anything up too badly, as long as the locale is set before GMain.Main.init. http://raevnos.pennmush.org/code/ocaml-stew-0.6.0.tar.gz There's not much in the way of documentation yet, but I hope it shouldn't be too hard to figure out. -- Shawn Wagner shawnw@speakeasy.org