[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

flex with gettext support?



There exist some PO files for flex in the archive of the Free
Translation Project.  Flex already has the support, but it won't be
built with NLS by default, because of the license.  But there is no
problem to distribute flex Debian package with gettext enabled.

But what should be done for this?  I know how to enable gettext in its
C code (the patch below).  But how could I gather PO files and make
them installed to the proper places?

When I get enough information, I will submit a bug report to flex.

Thanks in advance,


diff -u flex-2.5.4a.orig/flexdef.h flex-2.5.4a/flexdef.h
--- flex-2.5.4a.orig/flexdef.h  Sat Oct  2 16:22:26 1999
+++ flex-2.5.4a/flexdef.h       Sat Oct  2 16:23:30 1999
@@ -68,7 +68,8 @@
 /* As an aid for the internationalization patch to flex, which
  * is maintained outside this distribution for copyright reasons.
  */
-#define _(String) (String)
+#include <libintl.h>
+#define _(String) gettext (String)
 
 /* Always be prepared to generate an 8-bit scanner. */
 #define CSIZE 256


Reply to: