[GRASS5] GRASS internationalization
Alex Shevlakov
alex at asrv.fcpf.ru
Tue Feb 26 09:49:10 EST 2002
Hi,
to begin with i18n using gettext, there are several proposals:
1. Create a new src/locale directory to keep the locale .po and .mo
files, which would be installed in $prefix/grass5 unchanged by 'make install'
.
We need to keep the .po files inside the grass dist directory to remove them
with rm -rf /usr/local/grass5 (which is brute).
2. Checks for gettext must be added to configure.in, and new include file
'glocale.h' should be something like:
#ifdef __gettext__
#include <libintl.h>
#define _(str) gettext(str)
#else
#define _(str) str
#endif
3. Gmakefiles would have something like:
LOCALEDIR = $(INST_DIR)/locale
PACKAGE = "g.select.pg"
DEFS = -Wall -DLOCALEDIR=\"$(LOCALEDIR)\" -DPACKAGE=\"$(PACKAGE)\"
EXTRA_CFLAGS = $(PQINCPATH) $(DEFS)
(INST_DIR has to be added to 'head.in' for this).
4. Each module would be rewritten with gettext independently.
I just tested this sceme (and commited 2 modules for those who want to test ).
--alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20020226/9b0b9600/attachment.bin
More information about the grass-dev
mailing list