Thread (9 messages) flat view 9 messages, 2 authors, 2016-06-15
DORMANTno replies

[PATCH 5/6] Support logging unmarked strings

From: Nguyễn Thái Ngọc Duy <hidden>
Date: 2016-06-15 22:54:34
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
---
 Hard coding path obviously won't fly..

 .gitignore      | 1 +
 wrap-for-bin.sh | 6 ++++++
 2 files changed, 7 insertions(+)
diff --git a/.gitignore b/.gitignore
index bb5c91e..f2d0fe5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -195,6 +195,7 @@
 /test-sigchain
 /test-subprocess
 /test-svn-fe
+/untranslated.log
 /common-cmds.h
 *.tar.gz
 *.dsc
diff --git a/wrap-for-bin.sh b/wrap-for-bin.sh
index a2d9aef..4dbae80 100644
--- a/wrap-for-bin.sh
+++ b/wrap-for-bin.sh
@@ -17,6 +17,12 @@ fi
 GITPERLLIB='@@BUILD_DIR@@/perl/blib/lib'
 if test -n "$GIT_GETTEXT_POISON"
 then
+	if test -x /usr/lib/preloadable_libintl.so
+	then
+		GETTEXT_LOG_UNTRANSLATED=@@BUILD_DIR@@/untranslated.log
+		LD_PRELOAD="/usr/lib/preloadable_libintl.so $LD_PRELOAD"
+		export LD_PRELOAD GETTEXT_LOG_UNTRANSLATED
+	fi
 	GIT_TEXTDOMAINDIR='@@BUILD_DIR@@/po/build/pseudo-locale'
 	LANG=$GIT_GETTEXT_POISON
 	unset LC_ALL
-- 
1.7.12.rc2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help