[Gnucash-changes] r13639 - gnucash/trunk - * lib/libqof/backend/file/qsf-backend.c: add <locale.h>

Christian Stimming stimming at tuhh.de
Fri Mar 17 04:32:01 EST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Neil Williams schrieb:
> On Thursday 16 March 2006 2:21 pm, Derek Atkins wrote:
>> Eh?  A GModule is just a shared library, nothing more.  There's
>> nothing special about a GModule; the g_module API is just a wrapper
>> around dlopen(), and dlsym(), pretty much.
> 
> The module is loaded by libqof which in turn does not know the identity of the 
> application. How can it? The application can't translate these strings, the 
> source does not exist in the tree when qof is used externally (e.g. 
> pilot-qof).

I think you're confusing two issues here: One is the location of the pot
translation template, which we all agree is well located in the QOF
package and hence by definition inside a "libqof" gettext domain. The
other issue is the question where the call to setlocale() should be.

I think you didn't understand that both issues have nothing to do with
each other. You can and should have your own "libqof" gettext domain (or
whatever it's called).

But the call to setlocale() basically is the decision which translation
language should be used, both inside the application and inside all
libraries that are loaded by the application (or did I get something
wrong here?). This decision should rather be left up to the application
and should not be done by a library. Which means setlocale() should
rather be called *only* by the application and only once. (The other
gettext-related functions like bindtextdomain are probably allowed to be
called in the libraries as well, but its documentation doesn't say
anything about setlocale().)

Christian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQCVAwUBRBqCEWXAi+BfhivFAQIzlQP/RpJf1wHGSWYa7vPBHkS7jAaagt7qFQv9
4RHsMUg75ZCUK6XW8+1KFWSB6+yoPH9+D4c50YF85rK2qdcKyGLC7LnXCSxqdKZf
yX2mBIeeQG9UomOIIqw+c+JuxcB8JSwM8Rkqx85UFYawzgBGEGA5NBPPzXaRme3f
PozR+H9eodI=
=4vXF
-----END PGP SIGNATURE-----


More information about the gnucash-devel mailing list