From ad17ea734770126bfe1027a8a999e9e2d9f62145 Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Mon, 23 Jan 2012 14:04:29 -0800 Subject: add a Makefile switch to avoid gettext translation in shell scripts Some systems have gettext.sh (GNU gettext) installed, but it is either broken or misconfigured in such a way so its output is not usable. In case the users of these systems are unable or not interested in fixing them, setting the new Makefile switch should help: make USE_GETTEXT_SCHEME=fallthrough This will replace the translation routines with fallthrough versions, that does not use gettext from the platform. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- git-sh-i18n.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git-sh-i18n.sh') diff --git a/git-sh-i18n.sh b/git-sh-i18n.sh index 6648bd3726..d5fae993b0 100644 --- a/git-sh-i18n.sh +++ b/git-sh-i18n.sh @@ -18,7 +18,10 @@ export TEXTDOMAINDIR # First decide what scheme to use... GIT_INTERNAL_GETTEXT_SH_SCHEME=fallthrough -if test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" +if test -n "@@USE_GETTEXT_SCHEME@@" +then + GIT_INTERNAL_GETTEXT_SH_SCHEME="@@USE_GETTEXT_SCHEME@@" +elif test -n "@@USE_FALLTHROUGH_GETTEXT_SCHEME@@$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS" then : no probing necessary elif test -n "$GIT_GETTEXT_POISON" -- cgit v1.2.3