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

Re: Git sideband hook output

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Jun 11, 2010, 15:18 UTC
Message-ID
<AANLkTikONJoDiyxmcmdG8zZkTCLbqXlXhrASae7rAreN@mail.gmail.com>
In-Reply-To
<20100610183019.GR14847@spearce.org>
On Thu, Jun 10, 2010 at 18:30, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 13 quoted lines
> Peter Kjellerstedt <peter.kjellerstedt@axis.com> wrote:
>> And what if my hook output is localized? Now there is an English
>> "remote:" in front of every line... Or even worse, what if the
>> "remote:" string is localized in a future version of git, then I
>> have no way of knowing how wide it is and cannot take measures to
>> format my hook output so that it will look right.
>
> Don't localize "remote:"?  Or pick a shorter translation?
>
> If its really a problem, maybe "remote: " prefix should turn into
> something shorter and language agnostic, like "<< ".  But thus far
> we hadn't had to worry about it, since we didn't have translation
> support in Git...  (though yes, I see that is changing now).

Is there any reason for why the "remote:" output needs to be echoed verbatim to the user instead of being passed through some filter.

If not, then it could be treated as part of a protocol, parsed, and localized however the user wants.

">" isn't as language-agnostic as you might think, in a RTL language the arrow ends up facing the wrong way.

Previous: A Large Angry SCMNext: A Large Angry SCM
Message 15 of 17 in “Git sideband hook output”
  1. Scott ChaconJun 8, 2010
  2. Shawn O. PearceJun 8, 2010
  3. Peter KjellerstedtJun 9, 2010
  4. Nicolas PitreJun 9, 2010
  5. Peter KjellerstedtJun 10, 2010
  6. Nicolas PitreJun 10, 2010
  7. Shawn O. PearceJun 10, 2010
  8. Scott ChaconJun 10, 2010
  9. PJ HyettJun 11, 2010
  10. Wincent ColaiutaJun 11, 2010
  11. Erik Faye-LundJun 11, 2010
  12. Junio C HamanoJun 11, 2010
  13. Jeff KingJun 12, 2010
  14. A Large Angry SCMJun 11, 2010
  15. Ævar Arnfjörð BjarmasonJun 11, 2010
  16. A Large Angry SCMJun 11, 2010
  17. Johannes SixtJun 9, 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.