SOURCES: imieniny.sh - LC_ALL and LC_TIME support
qboosh
qboosh at pld-linux.org
Sat Aug 25 17:06:58 CEST 2007
Author: qboosh Date: Sat Aug 25 15:06:58 2007 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- LC_ALL and LC_TIME support
---- Files affected:
SOURCES:
imieniny.sh (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/imieniny.sh
diff -u SOURCES/imieniny.sh:1.2 SOURCES/imieniny.sh:1.3
--- SOURCES/imieniny.sh:1.2 Thu Aug 23 17:25:06 2007
+++ SOURCES/imieniny.sh Sat Aug 25 17:06:52 2007
@@ -13,9 +13,12 @@
fi
}
-
-if [ ${LANG}x != x ]; then
- LANGNAME=$LANG
+if [ -n "$LC_ALL" ]; then
+ LANGNAME="$LC_ALL"
+elif [ -n "${LC_TIME}" ]; then
+ LANGNAME="$LC_TIME"
+elif [ -n "${LANG}" ]; then
+ LANGNAME="$LANG"
else
LANGNAME="C"
fi
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/imieniny.sh?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list