Re: Your gettext problem
- From: Carlos Perelló Marín <carlos gnome-db org>
- To: Martin Baulig <martin home-of-linux org>
- Cc: gnome-2-0-list gnome org
- Subject: Re: Your gettext problem
- Date: 30 Aug 2001 00:13:19 +0200
El d_ 27 Aug 2001 23:58:57 +0200, Martin Baulig escribi_
> Hi Carlos,
>
Hi
> I looked at your test program and found a bug in it - after fixing the bug,
> everything works fine.
>
> - in Makefile.am, you need to set TEST_LOCALEDIR to the directory where it
> actually installes your *.mo files - normally $(datadir)/locale
>
> - in the main() function of your program, you must call
>
> setlocale (LC_ALL, "");
> bindtextdomain (PACKAGE, TEST_LOCALEDIR);
I had bindtextdomain, but I sended you the wrong version :-(
My problem was that i forgot the setlocale call.
Thanks!!!!!
Now it works and also glade2 ;-)
>
> - you need to define `_' to use dgettext for your own strings, not gettext -
> like this: #define _(String) dgettext(PACKAGE, string).
>
> [FIXME: not 100% sure about this, but this made it work for me].
Yes, it works but I think that if I use textdomain (PACKAGE); I could
use gettext instead of dgettext, couldn't I?
Bye and excuse me.
>
> --
> Martin Baulig
> martin gnome org (private)
> baulig suse de (work)
--
Carlos Perelló Marín
mailto:carlos gnome-db org
mailto:carlos hispalinux es
http://www.gnome-db.org
http://www.Hispalinux.es
Valencia - Spain
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]