This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Gcc and message catalogs


On Wed, 15 Nov 2000, Philipp Thomas wrote:

> > Well, I did get the gettext from cvs as it said in that file, compiled it.
> > But still, xgettext does not accept "--defines" as a flag.
>
> Oops, that's my fault :( The CVS gettext does look into #define by default,
> so the switch isn't needed. You should see that for instance the help texts
> from gcc/config/i386/i386.h for TARGET_SWITCHES do turn up in gcc.pot.
>
> I totally forgot to make that change in the gcc CVS. I'll fix that when I'm
> back at work. Sorry again.

It have not been fixed yet. Here is a patch that removes that flag. You
can not recreate the gcc.pot file without this patch.

The pot file in the cvs have not been uupdated in a long, long time. Maybe
it's time to do so by someone with cvs access. Remember that you MUST have
the cvs version of gettext since the last released version 0.10.35 from
august 1999 is not enough for gcc.

ps. Should I attach the patch or inline it in the letter? In this case
it's just a one line fix, so it's easy in either case, but in the future?

ps2. I still can't use the translation since gcc is broken.

/Dennis

----------------------------------------

$ cvs diff gcc/po/Makefile.in.in
Index: gcc/po/Makefile.in.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/po/Makefile.in.in,v
retrieving revision 1.9
diff -u -w -r1.9 Makefile.in.in
--- Makefile.in.in	2001/01/31 01:30:40	1.9
+++ Makefile.in.in	2001/02/27 06:43:48
@@ -90,7 +90,7 @@
 $(srcdir)/$(PACKAGE).pot: $(POTFILES)
 	$(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
 	  --add-comments --keyword=_ --keyword=N_ \
-	  --files-from=$(srcdir)/POTFILES.in --defines \
+	  --files-from=$(srcdir)/POTFILES.in \
 	&& test ! -f $(PACKAGE).po \
 	   || ( rm -f $(srcdir)/$(PACKAGE).pot \
 		&& mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]