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

Re: [PATCH] Collocate strings to simplify translation

From
Johannes Sixt <j.sixt@viscovery.net>
Date
May 24, 2012, 12:20 UTC
Message-ID
<4FBE2797.80505@viscovery.net>
In-Reply-To
<4FBE0593.7070205@lyx.org>
Am 5/24/2012 11:55, schrieb Vincent van Ravesteijn:
Show 13 quoted lines
> Op 24-5-2012 10:32, Zbigniew Jędrzejewski-Szmek schreef:
>> On 05/24/2012 09:41 AM, Vincent van Ravesteijn wrote:
>>> -    status_printf_ln(s, c, _("%s files:"), what);
>>> +    status_printf_ln(s, c, _("%s:"), what);
>> How can "%s:" be translated? _() should be removed here.
> 
> Some languages might use a character different from ':'. For example,
> Chinese uses a full-width character ':' (unicode 0xFF1A) instead of a
> half-width character. Maybe this is taken care of by the system/shell or
> whatever, maybe not. Other examples are languages that read from right to
> left. I guess it should then be translated by ":%s".
> 
> This will probably be a matter of convention.
Shouldn't you then move the colon with the "files"? That is, here we have:

- status_printf_ln(s, c, _("%s files:"), what); + status_printf_ln(s, c, "%s", what);

and elsewhere we use _("Untracked files:") and _("Ignored files:").
-- Hannes
Previous: Vincent van RavesteijnNext: Vincent van Ravesteijn
Message 4 of 5 in “Collocate strings to simplify translation”
  1. Collocate strings to simplify translationVincent van Ravesteijn, May 24, 2012
  2. Zbigniew Jędrzejewski-SzmekMay 24, 2012
  3. Vincent van RavesteijnMay 24, 2012
  4. Johannes SixtMay 24, 2012
  5. Vincent van RavesteijnMay 24, 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.