summaryrefslogtreecommitdiffstats
path: root/gettext.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-02-26 04:04:16 +0100
committerJunio C Hamano <gitster@pobox.com>2015-02-26 23:09:20 +0100
commit93f7d9108a0edf808e1e3bbcdbe6078310c22f9e (patch)
tree5bfc28011f1988763b56046034bd131a406e962e /gettext.h
parenthttp: add Accept-Language header if possible (diff)
downloadgit-93f7d9108a0edf808e1e3bbcdbe6078310c22f9e.tar.xz
git-93f7d9108a0edf808e1e3bbcdbe6078310c22f9e.zip
gettext.c: move get_preferred_languages() from http.c
Calling setlocale(LC_MESSAGES, ...) directly from http.c, without including <locale.h>, was causing compilation warnings. Move the helper function to gettext.c that already includes the header and where locale-related issues are handled. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gettext.h')
-rw-r--r--gettext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gettext.h b/gettext.h
index 7671d09d04..e539482ae7 100644
--- a/gettext.h
+++ b/gettext.h
@@ -65,4 +65,6 @@ const char *Q_(const char *msgid, const char *plu, unsigned long n)
/* Mark msgid for translation but do not translate it. */
#define N_(msgid) msgid
+const char *get_preferred_languages(void);
+
#endif