fi
if [ -x "$D/$1" ]; then
echo "$D/$1"
- return
+ return 0
fi
done
shift
done
+ return 1
}
blog () {
;;
esac
-if type -p locale > /dev/null 2>&1; then
- if locale -a | grep -q '^no_NO$' ; then
- LANG=no_NO
- elif locale -a | grep -q '^en_US$'; then
- LANG=en_US
+if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then
+ if findcommand locale; then
+ if locale -a | grep -q '^no_NO$' ; then
+ LANG=no_NO
+ elif locale -a | grep -q '^en_US$'; then
+ LANG=en_US
+ fi
fi
fi
-if [ -z "$LANG" ]|| [ "$LANG" = "C" ]; then
- if type -p localedef > /dev/null 2>&1; then
+if [ -z "$LANG" ] || [ "$LANG" = "C" ]; then
+ if findcommand localedef; then
localedef --list-archive > /dev/null 2>&1
if test "$?" = "0"; then
if localedef --list-archive | grep -q '^no_NO$' ; then