[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