*) Exit 1;;
esac
+ # Some systems (e.g. Solaris 11) don't have a Farsi locale.
+ # Therefore try an Arabic locale as well.
+ test -d ar || mkdir ar
+ test -d ar/LC_MESSAGES || mkdir ar/LC_MESSAGES
+ cp fa/LC_MESSAGES/fc5.mo ar/LC_MESSAGES/fc5.mo
+
+ prepare_locale_ ar ar_EG
+ LANGUAGE= ../fc5 ar_EG
+ case $? in
+ 0) skipped=false ;;
+ 77) ;;
+ *) Exit 1;;
+ esac
+
+ prepare_locale_ ar ar_EG.UTF-8
+ LANGUAGE= ../fc5 ar_EG.UTF-8
+ case $? in
+ 0) skipped=false ;;
+ 77) ;;
+ *) Exit 1;;
+ esac
+
if $skipped; then
if test -f /usr/bin/localedef; then
- echo "Skipping test: no Farsi locale is installed"
+ echo "Skipping test: no Farsi or Arabic locale is installed"
else
- echo "Skipping test: no Farsi locale is supported"
+ echo "Skipping test: no Farsi or Arabic locale is supported"
fi
Exit 77
fi
en = "father of %d children";
#if (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)) && !defined __UCLIBC__
expected_translation = "Vater von %Id Kindern";
- expected_result = "Vater von \xdb\xb5 Kindern";
+ if (strncmp (argv[1], "fa", 2) == 0)
+ expected_result = "Vater von \xdb\xb5 Kindern";
+ else
+ expected_result = "Vater von 5 Kindern";
#else
expected_translation = "Vater von %d Kindern";
expected_result = "Vater von 5 Kindern";