Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] PATCH: po-file comment remove
Home

[Freeciv-Dev] PATCH: po-file comment remove

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] PATCH: po-file comment remove
From: Dirk Stoecker <stoecker@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 6 Sep 2000 11:43:32 +0200 (MET DST)

Hi,

as the comments copied to po-files move around in the file
with no real destination, they are a bit useless. Also I checked
all the copied comments and 99% of them are programmer comments
and not useful for translators. So here is a patch to
po/Makefile.in.in, which removes comments copy and thus also useless
comments from po-files. (removes argument --add-comments from xgettext
call).

Also added --escape to the arguments to convert the none-normal
characters to escape characters. This affects some of the gui-mui
strings, which use 0x1B escape character.

Ciao
 ____  _ _  ____  _ _    _ _  ____
|    |  |  |    |  | \  / |  |    | the cool Gremlin from Bischofswerda
|  __   |   ____|  |  \/  |  |    | WWW: http://home.pages.de/~stoecker/
|    |  |  |       |      |  |    | PGP key available on www page.
|____| _|_ |____| _|_    _|_ |____| I hope AMIGA never ends to make fun!

************************************************************************
* snail-mail: Dirk Stoecker              * e-mail:                     *
*             Geschwister-Scholl-Str. 10 * stoecker@xxxxxxxxxxxxxx     *
*             01877 Bischofswerda        * phone:                      *
*             GERMANY                    * GERMANY +49 (0)3594/706666  *
************************************************************************
diff -ur ../../freeciv-cvs/freeciv/po/Makefile.in.in ./po/Makefile.in.in
--- ../../freeciv-cvs/freeciv/po/Makefile.in.in Wed Sep  6 10:08:29 2000
+++ ./po/Makefile.in.in Wed Sep  6 10:29:59 2000
@@ -84,8 +84,7 @@
 
 $(srcdir)/$(PACKAGE).pot: $(POTFILES)
        $(XGETTEXT) --default-domain=$(PACKAGE) --directory=$(top_srcdir) \
-         --add-comments --keyword=_ --keyword=N_ \
-         --files-from=$(srcdir)/POTFILES.in \
+         --escape --keyword=_ --keyword=N_ --files-from=$(srcdir)/POTFILES.in \
        && test ! -f $(PACKAGE).po \
           || ( rm -f $(srcdir)/$(PACKAGE).pot \
                && mv $(PACKAGE).po $(srcdir)/$(PACKAGE).pot )

[Prev in Thread] Current Thread [Next in Thread]