sunshine: 2025.118.151840 -> 2025.122.141614 (#376248)
[NixPkgs.git] / pkgs / applications / version-management / git / git-sh-i18n.patch
blob721f2aa099c4449cd7f82f9eb2b2b35e8e3a2d79
1 diff --git a/git-sh-i18n.sh b/git-sh-i18n.sh
2 index e1d917fd27..e90f8e1414 100644
3 --- a/git-sh-i18n.sh
4 +++ b/git-sh-i18n.sh
5 @@ -26,7 +26,7 @@ then
6 elif test -n "$GIT_INTERNAL_GETTEXT_TEST_FALLBACKS"
7 then
8 : no probing necessary
9 -elif type gettext.sh >/dev/null 2>&1
10 +elif type @gettext@/bin/gettext.sh >/dev/null 2>&1
11 then
12 # GNU libintl's gettext.sh
13 GIT_INTERNAL_GETTEXT_SH_SCHEME=gnu
14 @@ -43,7 +43,8 @@ export GIT_INTERNAL_GETTEXT_SH_SCHEME
15 case "$GIT_INTERNAL_GETTEXT_SH_SCHEME" in
16 gnu)
17 # Use libintl's gettext.sh, or fall back to English if we can't.
18 - . gettext.sh
19 + . @gettext@/bin/gettext.sh
20 + export PATH=@gettext@/bin:$PATH
22 gettext_without_eval_gettext)
23 # Solaris has a gettext(1) but no eval_gettext(1)