summaryrefslogtreecommitdiff
path: root/gettext.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-06-25 16:55:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-29 18:39:10 (GMT)
commitaa1462cc3d3b0c4c8ad6a60aaf31e0f3a424162d (patch)
tree59ef52faaddb398ce95f3564ea5bd895c69e047f /gettext.c
parenta5481a6c9438cbd9c246cfa59ff49c31a0926fb6 (diff)
downloadgit-aa1462cc3d3b0c4c8ad6a60aaf31e0f3a424162d.zip
git-aa1462cc3d3b0c4c8ad6a60aaf31e0f3a424162d.tar.gz
git-aa1462cc3d3b0c4c8ad6a60aaf31e0f3a424162d.tar.bz2
introduce "format" date-mode
This feeds the format directly to strftime. Besides being a little more flexible, the main advantage is that your system strftime may know more about your locale's preferred format (e.g., how to spell the days of the week). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gettext.c')
-rw-r--r--gettext.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gettext.c b/gettext.c
index 7378ba2..a268a2c 100644
--- a/gettext.c
+++ b/gettext.c
@@ -162,6 +162,7 @@ void git_setup_gettext(void)
podir = GIT_LOCALE_PATH;
bindtextdomain("git", podir);
setlocale(LC_MESSAGES, "");
+ setlocale(LC_TIME, "");
init_gettext_charset("git");
textdomain("git");
}