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

Re: [PATCH/RFC v8 0/2] Gettext support for Git

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jun 5, 2010, 21:35 UTC
Message-ID
<AANLkTikvP6z4-AdbSJQYV5yo9UXKVh3lleFZ49_hmSZ5@mail.gmail.com>
In-Reply-To
<m3vd9xp3oz.fsf@localhost.localdomain>
On Sat, Jun 5, 2010 at 21:29, Jakub Narebski <jnareb@gmail.com> wrote:
Show 25 quoted lines
> Ævar Arnfjörð Bjarmason  <avarab@gmail.com> writes:
>
>> This is version 8 of the series to make Git optionally translatable
>> with GNU gettext.
>>
>> Changes since version 7:
> [...]
>
>>    * Add back support (and a new test) for the no-op N_() macro. This
>>      is used for marking translations for later use, e.g.:
>>
>>         const char help[] =
>>               N_("See 'git help COMMAND' for more information on a specific command.");
>>
>>         int main(void)
>>         {
>>             puts(_(help));
>
> Shouldn't you add also corresponding N__ subroutine to Git::I18N
> module?
>
>  # Dummy functions for string marking.
>  sub N__($) {
>        return shift;
>  }

I don't really see the need. It's very useful in C because you can't call functions outside function bodies (like in the example above). Perl has no such restriction, so I don't see the use case.

Can you think of one? Perhaps I'm just being unimaginative.
Previous: Jakub Narebski
Message 5 of 5 in “Gettext support for Git”
  1. 0/2 Gettext support for GitÆvar Arnfjörð Bjarmason, Jun 5, 2010
  2. 1/2 Add infrastructure for translating Git with gettextÆvar Arnfjörð Bjarmason, Jun 5, 2010
  3. 2/2 Add initial C, Shell and Perl gettext translationsÆvar Arnfjörð Bjarmason, Jun 5, 2010
  4. Jakub NarebskiJun 5, 2010
  5. Ævar Arnfjörð BjarmasonJun 5, 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.