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

Re: [PATCH] i18n: po for zh_cn

From
Jiang Xin <worldhello.net@gmail.com>
Date
Feb 2, 2012, 03:56 UTC
Message-ID
<CANYiYbF+ZqGVdpxXzBkPMUwoWO+EdSb1WHqUCdQEmj5AjR1LDw@mail.gmail.com>
In-Reply-To
<CACBZZX6mHQ8NLWiBjp5OtDpFAc1=s9XfzHY5HhQ-26pqLXQ3bg@mail.gmail.com>
2012/2/2 Ævar Arnfjörð Bjarmason <avarab@gmail.com>:
Show 5 quoted lines
> On Wed, Feb 1, 2012 at 16:50, Jiang Xin <worldhello.net@gmail.com> wrote:
>> Git can speak Chinese now.
>
> That's very nice, and it passes the msgfmt --check test as well, so
> all looks good.

One bug, the filename should be zh_CN.po, not zh_cn.po. On my Mac, the filesystem is case insensitive, locale works fine, but in Linux won't.

I will send the patch again with correct filename and with translates for news message from Git master branch. (previous l10n is against git v1.7.9, i.e. the maint branch)

Show 5 quoted lines
>
> As an aside doesn't the bug / workaround described in
> https://github.com/git/git/blob/master/gettext.c#L35 impact chinese
> especially badly? I'd expect any place where we use strerror() to show
> up as total gibberish.

The perror test program does impact chinese too. On Linux with well translated system error messages, with the following output:

    $ ./test
    test: ??????
On Mac without translated system error messages, output is all ascii.
-- 
Jiang Xin
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 3 of 12 in “i18n: po for zh_cn”
  1. i18n: po for zh_cnJiang Xin, Feb 1, 2012
  2. Ævar Arnfjörð BjarmasonFeb 1, 2012
  3. Jiang XinFeb 2, 2012
  4. Junio C HamanoFeb 1, 2012
  5. Jiang XinFeb 2, 2012
  6. Nguyen Thai Ngoc DuyFeb 2, 2012
  7. Ævar Arnfjörð BjarmasonFeb 2, 2012
  8. Jiang XinFeb 3, 2012
  9. Junio C HamanoFeb 2, 2012
  10. Junio C HamanoFeb 2, 2012
  11. Jiang XinFeb 2, 2012
  12. Junio C HamanoFeb 2, 2012

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.