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

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

Re: xgettext: one comment for multiple translations


From: Bruno Haible
Subject: Re: xgettext: one comment for multiple translations
Date: Fri, 2 Aug 2002 21:51:06 +0200 (CEST)

Karl Eichwalder writes:

> For the line:
> 
> /* comment */
> func(_("str1"), _("str2"));
> 
> xgettext should create (at least it would be better):
> 
> #. comment
> msgid "str1"
> msgstr ""
> 
> #. comment
> msgid "str2"
> msgstr ""
> 
> Right now comment is included only by the first string.

Thanks for the suggestion. But your proposal has the drawback that the
simple introduction of whitespace would change the POT file:

    /* comment */
    func(_("str1"), _("str2"));

vs.

    /* comment */
    func(_("str1"),
         _("str2"));

I think it's easier for everyone if each comment applies to a single
message,

The workaround/solution for you is obviously to repeat the comment:

    /* comment */
    func(_("str1"),
         /* comment */
         _("str2"));

Bruno



reply via email to

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