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

Re: How you can translate things now, and a plan for the i18n series going forward

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Feb 16, 2011, 23:57 UTC
Message-ID
<AANLkTi=E0LYWp7ag8SD8LNCKkKopGczJL0QnuOiH2UEu@mail.gmail.com>
In-Reply-To
<7vipwpxbam.fsf@alter.siamese.dyndns.org>
On Sat, Feb 12, 2011 at 21:12, Junio C Hamano <gitster@pobox.com> wrote:
Show 17 quoted lines
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
>>     *** TODO Introduce a skeleton no-op gettext, just the
>> infrastructure minus the interesting stuff
>>
>>         I.e. just add:
>>
>>             #define N_(s) (s)
>>             #define _(s) (s)
>>
>>     *** TODO Add no-op C gettextize patches
>>
>>         This will change "foo" to _("foo") everywhere, but will be a no-op
>>         due to it being macroed out.
>
> It would be best to get this as early as possible while not many topics
> are in 'next'; it is preferrable if we can rebase other topics in 'pu' on
> top of the result of this step.

Here's a work-in-progress version of this: https://github.com/avar/git/compare/master...ab/i18n-c-_-only

I still have to:
 * Add NO_GETTEXT_POISON to more tests, some things have broken due to
   new strings / changed tests.
 * Squash the !fixup patches in appropriately.

But otherwise does this seem good? I.e. having just those stub macros, a lot of *.c patches, including gettext.h in cache.h.

And having NO_GETTEXT_POISON be part of the actual patches, of course I'd also have to add something to the test suite to always set that for now.

Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 5 of 7 in “How you can translate things now, and a plan for the i18n series going forward”
  1. Ævar Arnfjörð BjarmasonFeb 12, 2011
  2. Michael J GruberFeb 12, 2011
  3. Junio C HamanoFeb 12, 2011
  4. Ævar Arnfjörð BjarmasonFeb 12, 2011
  5. Ævar Arnfjörð BjarmasonFeb 16, 2011
  6. Junio C HamanoFeb 17, 2011
  7. Ævar Arnfjörð BjarmasonFeb 17, 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.