initial
[zsh.git] / .zsh / 12_Locale.zsh
1 # -*- mode: sh;-*-
2
3 (( $+commands[locale] )) && __() {
4 local locales
5 local locale
6 locales=( "LANG de_DE.utf8 en_GB.utf8 C.UTF-8 C" \
7 "LC_MESSAGES en_GB.utf8 de_DE.utf8 C.UTF-8 C" )
8 for locale in $locales; do
9 for l in $=locale[(w)2,-1]; do
10 if locale -a | grep -qx $l; then
11 export $locale[(w)1]=$l
12 break
13 fi
14 done
15 done
16 } && __ 2> /dev/null