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

Re: Bikeshedding advice on the ab/i18n-scripts series

From
Junio C Hamano <gitster@pobox.com>
Date
May 16, 2011, 21:40 UTC
Message-ID
<7vvcxajpda.fsf@alter.siamese.dyndns.org>
In-Reply-To
<BANLkTi=FLWFzMFG5DgQiaN9kYW3pozJ6HQ@mail.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 15 quoted lines
> On Mon, May 16, 2011 at 23:26, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> Ævar Arnfjörð Bjarmason wrote:
>>
>>> That would require us to start extracting strings from all "say"
>>> functions. The reason we have only "gettext" and "eval_gettext" is so
>>> xgettext can extract them.
>>
>> Isn't that what the xgettext -k parameter is for?
>
> I'm not saying we can't use xgettext to extract these things. I'm
> saying I don't think it's a good idea.
>
>     $ git --no-pager grep say git-submodule.sh
>     git-submodule.sh:                       say "$(eval_gettext
> "Entering '\$prefix\$path'")"
Oh, I didn't mean to say "we _must_ call that _say_".

The discussion suggested to me that we may want two variants, one that takes an incomplete single line and outputs a single complete line, and the other that takes whatever the caller gives and outputs the translated lines without further butchering the tail end. I missed that Jonathan already mentioned gettext_nl and that is fine as well, but if we use a function other than gettext I thought it would be better to use short and sweet name for common cases.

Previous: Ævar Arnfjörð Bjarmason
Message 9 of 9 in “Bikeshedding advice on the ab/i18n-scripts series”
  1. Ævar Arnfjörð BjarmasonMay 16, 2011
  2. Jonathan NiederMay 16, 2011
  3. Junio C HamanoMay 16, 2011
  4. Ævar Arnfjörð BjarmasonMay 16, 2011
  5. Junio C HamanoMay 16, 2011
  6. Ævar Arnfjörð BjarmasonMay 16, 2011
  7. Jonathan NiederMay 16, 2011
  8. Ævar Arnfjörð BjarmasonMay 16, 2011
  9. Junio C HamanoMay 16, 2011

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.