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

Re: [PATCH on ab/i18n] branch: remove lego in i18n tracking info strings

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
May 6, 2012, 13:06 UTC
Message-ID
<CACsJy8Axy3Vaqqd3D4Az-wUO6dS+jGgVLARz0TnURQ2KNYnmog@mail.gmail.com>
In-Reply-To
<7vr4v0apwe.fsf@alter.siamese.dyndns.org>
On Fri, May 4, 2012 at 11:10 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 10 quoted lines
> Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
>
>> Pseudo html tags to to mark color, like
>>  "On branch <color1>%s</color1>" is probably not a bad idea.
>
> The output machinery needs to understand _some_ color mark-up if the
> destination does not support ANSI colors natively, and there already is
> such a code in compat/ for windows IIRC.  Adding yet another color mark-up
> wouldn't help anybody.  I would suggest to just declare that internally we
> use ANSI colors as the standard color mark-up and be done with it.

Ævar started a new thread about this and I elaborated a little bit there [1]. We cannot just put straight ANSI colors in the string because they are customizable. We don't know what color to put in the string at compile time. So we need an intermediate color representation for translators anyway to avoid fragmented strings. The problem is which way is better, "On branch %s%s%s", "On branch <color>%s</color>" or some other ways

[1] http://thread.gmane.org/gmane.comp.version-control.git/196869/focus=196908
-- 
Duy
Previous: Junio C HamanoNext: Ralf Thielow
Message 21 of 28 in “Please pull git-po master branch”
  1. Jiang XinMay 2, 2012
  2. Junio C HamanoMay 2, 2012
  3. Thomas RastMay 2, 2012
  4. Ralf ThielowMay 2, 2012
  5. Thomas RastMay 2, 2012
  6. Ralf ThielowMay 2, 2012
  7. Christian StimmingMay 2, 2012
  8. 0/5 de.po suggested updatesThomas Rast, May 2, 2012
  9. 1/5 stash: make "saved" message translatableThomas Rast, May 2, 2012
  10. Junio C HamanoMay 2, 2012
  11. 2/5 de.po: translate "bare" as "bloß"Thomas Rast, May 2, 2012
  12. 3/5 de.po: hopefully uncontroversial fixesThomas Rast, May 2, 2012
  13. 4/5 de.po: translate "bad" as "ungültig" ("invalid")Thomas Rast, May 2, 2012
  14. 5/5 de.po: collection of suggestionsThomas Rast, May 2, 2012
  15. Ralf ThielowMay 2, 2012
  16. Thomas RastMay 2, 2012
  17. Christian StimmingMay 2, 2012
  18. Thomas RastMay 3, 2012
  19. branch: remove lego in i18n tracking info stringsNguyễn Thái Ngọc Duy, May 3, 2012
  20. Junio C HamanoMay 4, 2012
  21. Nguyen Thai Ngoc DuyMay 6, 2012
  22. Ralf ThielowMay 2, 2012
  23. Christian StimmingMay 2, 2012
  24. Junio C HamanoMay 2, 2012
  25. Jiang XinMay 3, 2012
  26. Junio C HamanoMay 3, 2012
  27. Jiang XinMay 3, 2012
  28. Thomas RastMay 3, 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.