4 # Defines locale settings
6 # Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
7 # Released under the terms of the Artistic Licence 2.0
9 # Source repository: git://git.madduck.net/etc/zsh.git
17 export LC_TIME=${2:-$1}
18 _set_regional_locale $1
21 _set_regional_locale()
28 export LC_TELEPHONE=$1
29 export LC_MEASUREMENT=$1
30 export LC_IDENTIFICATION=$1
33 if [ -x =locale ]; then
34 _LOCALE="$(locale -a)"
36 # I want en_US.utf8 if we've got it, but I want 24 hour time.
39 _set_locale en_US.UTF-8 C
43 warn "no utf-8 locale available"
44 _set_locale en_US.ISO-8859-1 C
48 warn "no utf-8 or iso locale available"
57 export LANGUAGE="${LANG}:en"
59 unfunction _set_regional_locale
60 unfunction _set_locale