All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
3 # Defines locale settings
5 # Copyright © 1994–2017 martin f. krafft <madduck@madduck.net>
6 # Released under the terms of the Artistic Licence 2.0
8 # Source repository: http://git.madduck.net/v/etc/zsh.git
17 _set_regional_locale $1
20 _set_regional_locale()
27 export LC_TELEPHONE=$1
28 export LC_MEASUREMENT=$1
29 export LC_IDENTIFICATION=$1
32 if [ -x =locale ]; then
33 _LOCALE="$(locale -a)"
35 # I prefer British English and UTF-8 over US English and non-UTF-8
36 # And if available, I'll take New Zealand-ey (yes, I love you, GIRLFRIEND)
39 _set_locale en_NZ.UTF-8
43 _set_locale en_GB.UTF-8
47 _set_locale en_US.UTF-8
51 _set_locale en_NZ.ISO-8859-15
52 warn "no utf-8 locale available"
56 _set_locale en_GB.ISO-8859-15
57 warn "no utf-8 locale available"
61 warn "no utf-8 locale available"
62 _set_locale en_US.ISO-8859-15
66 warn "no utf-8 locale available"
67 _set_locale en_NZ.ISO-8859-1
71 warn "no utf-8 locale available"
72 _set_locale en_GB.ISO-8859-1
76 warn "no utf-8 locale available"
77 _set_locale en_US.ISO-8859-1
81 warn "no utf-8 or iso locale available"
86 warn "no utf-8 or iso locale available"
91 warn "no utf-8 or iso locale available"
97 # regional stuff should be German
100 _set_regional_locale de_DE.UTF-8
103 _set_regional_locale de_DE.ISO-8859-15
106 _set_regional_locale de_DE.ISO-8859-1
109 _set_regional_locale de_CH.UTF-8
112 _set_regional_locale de_CH.ISO-8859-15
115 _set_regional_locale de_CH.ISO-8859-1
121 export LANGUAGE="${LANG}:en"
123 unfunction _set_regional_locale
124 unfunction _set_locale