On Thu, Mar 07, 2002 at 02:12:51PM -0600, Manoj Srivastava wrote: > Incidentally, the origianl i18npatch for flex lives at: > http://people.debian.org/%7Esrivasta/patches/patch-005 > Jordi says it still applies, with offsets in only two files. I > think this is a good starting point for internationalizing the beta > version. As I said, all we need are updated .po files ;-)
Additionally to Manoj's patch, the following would make it better.
Maybe adding Makefile.in.in to po/ instead a static Makefile could be
good too, but if it works like this...
--- Makefile.am.old Thu Mar 7 22:33:03 2002
+++ Makefile.am Thu Mar 7 22:32:08 2002
@@ -102,6 +102,9 @@
SUBDIRS = \
examples
+localedir = $(datadir)/locale
+INCLUDES = -Iintl -DLOCALEDIR=\"$(localedir)\" [EMAIL PROTECTED]@
+
# We have a few dependencies and rules to enumerate. (from the old
# Makefile.in by Vern)
--- main.c.old Thu Mar 7 22:34:42 2002
+++ main.c Thu Mar 7 22:40:26 2002
@@ -137,8 +137,8 @@
int i;
setlocale(LC_MESSAGES, "");
- textdomain("flex");
- bindtextdomain("flex", "/usr/share/locale");
+ textdomain(PACKAGE);
+ bindtextdomain(PACKAGE, LOCALEDIR);
#ifdef THINK_C
argc = ccommand( &argv );
--
Jordi Mallach P�rez || [EMAIL PROTECTED] || Rediscovering Freedom,
aka Oskuro in || [EMAIL PROTECTED] || Using Debian GNU/Linux
Reinos de Leyenda || [EMAIL PROTECTED] || http://debian.org
http://sindominio.net GnuPG public information: pub 1024D/917A225E
telnet pusa.uv.es 23 73ED 4244 FD43 5886 20AC 2644 2584 94BA 917A 225E
pgpaoFiZakR2J.pgp
Description: PGP signature

