[Top][All Lists]

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

Re: [bug-gettext] Bug#682580: xgettext: fails to properly replace some p

From: Daiki Ueno
Subject: Re: [bug-gettext] Bug#682580: xgettext: fails to properly replace some placeholders in output .pot (PACKAGE, YEAR, C. HOLDER) (fwd)
Date: Thu, 03 Sep 2015 10:19:45 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Francesco Poli <address@hidden> writes:

>> I don't think it is boring nor error prone -- it just means to
>> concatenate two files.
> Well, not really just a file concatenation... More a job for sed or
> awk, as I said. But this would be the case, if you automated the task.

I actually pushed this to the git master:

It is only 5 lines and even smaller than a similar example quoted in the
Autoconf manual:

> Please support these cases as well, at least by adding a
> --same-copyright option (without arguments) that produces
> a .pot file with
> replaced by
>   # This file is copyrighted by the PACKAGE package's copyright holders
>   # and by the translators listed below.
> Of course, PACKAGE should be replaced by the argument of the
> --package-name option, where available.

If I were going to address all such cases, I would rather add a single
general-purpose --header-file=FILE option.  That would be equivalent to
my proposal using sed, and I don't think it worth doing since the sed
snippet is fairly simple.

Daiki Ueno

reply via email to

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