Your gettext problem
- From: Martin Baulig <martin home-of-linux org>
- To: Carlos Perelló Marín <carlos gnome-db org>
- Cc: gnome-2-0-list gnome org
- Subject: Your gettext problem
- Date: 27 Aug 2001 23:58:57 +0200
Hi Carlos,
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);
- 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].
--
Martin Baulig
martin gnome org (private)
baulig suse de (work)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]