--- t/t0200-gettext.sh | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) create mode 100755 t/t0200-gettext.sh diff --git a/t/t0200-gettext.sh b/t/t0200-gettext.sh new file mode 100755 index 0000000..a8f9edd --- /dev/null +++ b/t/t0200-gettext.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +test_description='Gettext support for Git' +. ./test-lib.sh +. ../../git-sh-setup + +test_expect_success 'sanity: $TEXTDOMAIN is git' ' + test $TEXTDOMAIN = "git" +' + +test_expect_success 'sanity: $TEXTDOMAINDIR exists' ' + test -d $TEXTDOMAINDIR +' + +test_expect_success 'sanity: Icelandic locale was compiled' ' + test -f $TEXTDOMAINDIR/is/LC_MESSAGES/git.mo +' + +test_expect_success 'sanity: gettext(unknown) is passed through' ' + gettext "" > expect && + > actual && + test_cmp expect actual && + printf "This is not a translation string" > expect + gettext "This is not a translation string" > actual && + test_cmp expect actual +' + +test_done -- 1.7.1.248.gb7713.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html