bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: Suggestions for po.m4


From: Bruno Haible
Subject: Re: Suggestions for po.m4
Date: Tue, 22 Feb 2005 17:47:28 +0100
User-agent: KMail/1.5

Stepan Kasal wrote:
> My second suggestion concerns the "tags" used by intltool, see:
> http://cvs.gnome.org/viewcvs/intltool/intltool.m4?rev=1.82&view=auto
>
> The tags can either be at the beginning:
>       [type: xyz] src/file.c
> or on a separate line:
>       [encoding: UTF-8]
>
> Couldn't GNU gettext support this notation in POTFILES.in?  It would mean
> changing the command to:
>
>    sed <"$ac_given_srcdir/$ac_dir/POTFILES.in" \
>       -e '/^#/d' -e 's/^[[].*[]] *//' -e '/^[   ]*$/d' -e "s,^,       
> $top_srcdir/," |
>       sed -e '$!s/$/ \\/' >"$ac_dir/POTFILES"

I think the correct way to support this would be to change the [type: xyz] to
   xgettext -L xyz
options, the [encoding: UTF-8] to xgettext --from-code=UTF-8 options,
and use multiple xgettext invocations.

In intltool's syntax, the extent of these tags is not clear. Do they
apply to the following file only, or to all following files? In any case,
this syntax does not appear to be very appropriate for structured
information. Poor man's XML, I would say. Do you have a better proposal?

Bruno





reply via email to

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