summaryrefslogtreecommitdiff
path: root/locale.sh
blob: fe82378b3d8f7de4f5b92a0d0fb02e686f527dbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
unset LANG

if [ -s /etc/locale.conf ]; then
	. /etc/locale.conf
fi

if [ -n "$LANG" ]; then
	export LANG
else
	if [ -s /etc/rc.conf ]; then
		export LANG=$(. /etc/rc.conf 2> /dev/null ; echo "$LOCALE")
	else
		export LANG="C"
	fi
fi

if [ -n "$LC_CTYPE" ]; then
	export LC_CTYPE
else
	unset LC_CTYPE
fi

if [ -n "$LC_NUMERIC" ]; then
	export LC_NUMERIC
else
	unset LC_NUMERIC
fi

if [ -n "$LC_TIME" ]; then
	export LC_TIME
else
	unset LC_TIME
fi

if [ -n "$LC_COLLATE" ]; then
	export LC_COLLATE
else
	unset LC_COLLATE
fi

if [ -n "$LC_MONETARY" ]; then
	export LC_MONETARY
else
	unset LC_MONETARY
fi

if [ -n "$LC_MESSAGES" ]; then
	export LC_MESSAGES
else
	unset LC_MESSAGES
fi

if [ -n "$LC_PAPER" ]; then
	export LC_PAPER
else
	unset LC_PAPER
fi

if [ -n "$LC_NAME" ]; then
	export LC_NAME
else
	unset LC_NAME
fi

if [ -n "$LC_ADDRESS" ]; then
	export LC_ADDRESS
else
	unset LC_ADDRESS
fi

if [ -n "$LC_TELEPHONE" ]; then
	export LC_TELEPHONE
else
	unset LC_TELEPHONE
fi

if [ -n "$LC_MEASUREMENT" ]; then
	export LC_MEASUREMENT
else
	unset LC_MEASUREMENT
fi

if [ -n "$LC_IDENTIFICATION" ]; then
	export LC_IDENTIFICATION
else
	unset LC_IDENTIFICATION
fi