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

Re: git status: minor output format error

From
Duy Nguyen <pclouds@gmail.com>
Date
Nov 4, 2013, 01:46 UTC
Message-ID
<CACsJy8DyX-cxJNYe3HXeb8e96O36h4aEJrBo+P5035b-vuz0hw@mail.gmail.com>
In-Reply-To
<31465687.35grSWXxkx@i5>

On Mon, Nov 4, 2013 at 12:17 AM, Wolfgang Rohdewald <wolfgang@rohdewald.de> wrote:

Show 15 quoted lines
> git version 1.8.3.2
>
> git status in German says (extract)
>
> #       geändert:   kajongg.py
> #       gelöscht:    playfield.py
>
> as you can see, there is one space too much before playfield.py
>
> LANG=C git status is correct:
> #       modified:   kajongg.py
> #       deleted:    playfield.py
>
> so it seems the spacing between the columns expects "deleted" to have the same number
> of letters in all languages.

No, the translations control the number of columns in this case (although it's not very intuitive for translators). Something like this may fix it. I haven't tested because I don't have "de" locale installed.

diff --git a/po/de.po b/po/de.po
index 35a44b9..d1846d2 100644
--- a/po/de.po
+++ b/po/de.po
@@ -1404,7 +1404,7 @@ msgstr "kopiert:     %s -> %s"
 #: wt-status.c:313
 #, c-format
 msgid "deleted:    %s"
-msgstr "gelöscht:    %s"
+msgstr "gelöscht:   %s"

 #: wt-status.c:316
 #, c-format
-- 
Duy
Previous: Wolfgang RohdewaldNext: Ralf Thielow
Message 2 of 6 in “git status: minor output format error”
  1. Wolfgang RohdewaldNov 3, 2013
  2. Duy NguyenNov 4, 2013
  3. Ralf ThielowNov 4, 2013
  4. wt-status: take the alignment burden off translatorsNguyễn Thái Ngọc Duy, Nov 4, 2013
  5. Junio C HamanoNov 4, 2013
  6. wt-status: take the alignment burden off translatorsNguyễn Thái Ngọc Duy, Nov 5, 2013

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.