[Patch Preview] move module-init and locale setup from scm to C
Chris Shoemaker
c.shoemaker at cox.net
Thu Jan 12 16:51:30 EST 2006
On Wed, Jan 11, 2006 at 10:14:17AM -0500, David Hampton wrote:
> On Wed, 2006-01-11 at 11:31 +0100, Christian Stimming wrote:
>
> > Err... no, that's not correct. gtk_init() as well as gtk_set_locale()
> > initializes internationalization support *for GTK+*. We still need to
> > initialize i18n support *for gnucash*.
> >
> > This is achieved by the four functions that we currently have -- the 3
> > from Chris' patch plus setlocale(). Your previous post about
> > setlocale(), which was identical to mine, was correct.
>
> >From the gtk_set_locale() documentation:
>
> In detail - sets the current locale according to the program
> environment. This is the same as calling the C library function
> setlocale (LC_ALL, "") but also takes care of the locale specific
> setup of the windowing system used by GDK.
>
> I looked into the gtk 2.6 sources and it does, in fact, make a call to
> setlocale (LC_ALL, "").
Nice. It seems that calling gtk_init() allows even people who don't
know much about i18l to get this right.
-chris
More information about the gnucash-devel
mailing list