git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: 'gettext -- "--cached cannot be used with --files"' does not work

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 12, 2010, 00:06 UTC
Message-ID
<AANLkTike11Hm2s6un37-jgT8rOyf=7k-Vw7M5vEs+9Vp@mail.gmail.com>
In-Reply-To
<20101112001037.6e0fef15@ivo.pl>
2010/11/12 Michał Kiedrowicz <mkiedrowicz@ivo.pl>:
Show 20 quoted lines
> I just noticed that
>
>        'gettext -- "--cached cannot be used with --files"'
>
> in git-submodule.sh generates
>
>        #: git-submodule.sh:588
>        msgid "--"
>        msgstr ""
>
> in *.po files. You can this e.g. in po/de.po.
>
> This is not what commit message says :)
>
>    gettextize: git-submodule "cached cannot be used" message
>
>    Gettextize the "--cached cannot be used with --files" message. Since
>    this message starts with "--" we have to pass "--" as the first
>    argument. This works with both GNU gettext 0.18.1 (as expected), and
>    the gettext(1) on Solaris 10.

Thanks for the report. I spotted this a while ago, meant to raise it and put it on my TODO list.

Then I forgot about it :)

Anyway, the issue is with xgettext(1), not gettext itself. I.e. the shellscript parser is broken.

Previous: Michał Kiedrowicz
Message 2 of 2 in “'gettext -- "--cached cannot be used with --files"' does not work”
  1. Michał KiedrowiczNov 11, 2010
  2. Ævar Arnfjörð BjarmasonNov 12, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.