diff options
author | Bruno Haible <bruno@clisp.org> | 2006-06-19 10:49:53 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2009-06-23 12:13:24 +0200 |
commit | 596b8c096bc61a3139e333d59cc032e54aa439e3 (patch) | |
tree | c9d5923c39d1f92bcbe1afef6cbb55e4148249db /gettext-tools/tests/gettext-4 | |
parent | e3e90f10021d4576ec33cc7c8e795f6dd440ce23 (diff) | |
download | external_gettext-596b8c096bc61a3139e333d59cc032e54aa439e3.zip external_gettext-596b8c096bc61a3139e333d59cc032e54aa439e3.tar.gz external_gettext-596b8c096bc61a3139e333d59cc032e54aa439e3.tar.bz2 |
Use an autoconf-determined locale name.
Diffstat (limited to 'gettext-tools/tests/gettext-4')
-rwxr-xr-x | gettext-tools/tests/gettext-4 | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/gettext-tools/tests/gettext-4 b/gettext-tools/tests/gettext-4 index f70eb18..1e27179 100755 --- a/gettext-tools/tests/gettext-4 +++ b/gettext-tools/tests/gettext-4 @@ -5,24 +5,30 @@ tmpfiles="" trap 'rm -fr $tmpfiles' 1 2 3 15 -# This test works only on systems that have a de_DE.ISO-8859-1 locale installed. -LC_ALL=de_DE.ISO-8859-1 ./testlocale || { +# This test works only on systems that have a traditional french locale +# installed. +# gettext-4.po is actually a German PO file, but only the encoding of the +# locale matters, not the language. configure has already checked whether +# a traditional french locale is installed; no need to check also for a +# traditional german locale. +: ${LOCALE_FR=fr_FR} +{ test $LOCALE_FR != none && LC_ALL=$LOCALE_FR ./testlocale; } || { if test -f /usr/bin/localedef; then - echo "Skipping test: locale de_DE.ISO-8859-1 not installed" + echo "Skipping test: no traditional french locale is installed" else - echo "Skipping test: locale de_DE.ISO-8859-1 not supported" + echo "Skipping test: no traditional french locale is supported" fi exit 77 } -tmpfiles="$tmpfiles de_DE" -test -d de_DE || mkdir de_DE -test -d de_DE/LC_MESSAGES || mkdir de_DE/LC_MESSAGES +tmpfiles="$tmpfiles fr_FR" +test -d fr_FR || mkdir fr_FR +test -d fr_FR/LC_MESSAGES || mkdir fr_FR/LC_MESSAGES : ${MSGFMT=msgfmt} -${MSGFMT} -o de_DE/LC_MESSAGES/codeset.mo ${top_srcdir}/tests/gettext-4.po +${MSGFMT} -o fr_FR/LC_MESSAGES/codeset.mo ${top_srcdir}/tests/gettext-4.po -./gettext-4-prg || exit 1 +./gettext-4-prg $LOCALE_FR || exit 1 rm -fr $tmpfiles |