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

[RFC PATCH 0/2] Localize log output

From
Peter Krefting <peter@softwolves.pp.se>
Date
Oct 23, 2012, 12:24 UTC
Message-ID
<alpine.DEB.2.00.1210231323480.602@ds9.cixit.se>

In v1.8.0, I saw a regression in, among other, "git show --stat" in that it would no longer output the diffstat in Swedish. This turned out to be intentional, to fix format-patch and friends, but I liked the old behaviour.

This series tries to fix that, and related code such as "git log", while making sure that "git format-patch" still outputs in English.

I am posting this as a RFC, as I might very well have broken something else in the process, from not knowing the code well enough.

The branch is also available from https://github.com/nafmo/git-l10n-sv/commits/fix-diff-translation-20121023-1.8.0 with an updated Swedish translation.

Peter Krefting (2):
   Use localized date in log output
   Localize diff and log output
  builtin/apply.c  |  2 +-
  builtin/commit.c |  4 +--
  builtin/log.c    |  6 ++--
  commit.h         |  3 +-
  date.c           |  4 ++-
  diff.c           | 22 +++++++++-----
  diff.h           |  5 +++-
  gettext.c        |  1 +
  log-tree.c       | 11 +++++--
  pretty.c         | 87 +++++++++++++++++++++++++++++++++++++++++++-------------
  strbuf.c         | 10 +++++++
  strbuf.h         |  1 +
  12 files changed, 119 insertions(+), 37 deletions(-)
-- 
1.8.0
Next: Peter Krefting
Message 1 of 3 in “Localize log output”
  1. 0/2 Localize log outputPeter Krefting, Oct 23, 2012
  2. 1/2 Use localized date in log outputPeter Krefting, Oct 23, 2012
  3. 2/2 Localize diff and log outputPeter Krefting, Oct 23, 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.