threads / discuss / 25719

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

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

## tl;dr

2 messages between Nov 11, 2010 and Nov 12, 2010.

replies: 1people: 2as markdown or json

Michał Kiedrowicz· Nov 11, 2010, 23:10 UTC · lore
Hi,
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.

$ gettext --version gettext (GNU gettext-runtime) 0.18.1

-- 
regards,
Michał Kiedrowicz
Ævar Arnfjörð Bjarmason· Nov 12, 2010, 00:06 UTC · re: Michał Kiedrowicz · lore

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

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.

← back to recent threads