]> git.pld-linux.org Git - projects/rc-scripts.git/blob - lang.csh
check vars first before checking fs objects
[projects/rc-scripts.git] / lang.csh
1 #!/bin/csh
2 #
3 # $Id$
4 #
5 # FIXME: this file is broken, as you can see it does nothing (does not actually load i18n file)
6 # TODO: sync with lang.sh
7 #
8
9 test -f /etc/sysconfig/i18n
10 if ($status == 0) then
11         if ($?LANG) then
12                 setenv LANG
13         endif
14         if ($?LC_ALL) then
15                 setenv LC_ALL
16         endif
17         if ($?LINGUAS) then
18                 setenv LINGUAS
19         endif
20         if ($?SYSTERM) then
21                 setenv TERM=$SYSTERM
22         endif
23         if ($?_XKB_CHARSET) then
24                 setenv _XKB_CHARSET
25         endif
26         if ($?INPUTRC) then
27                 setenv INPUTRC
28         endif
29         if ($?LESSCHARSET) then
30                 setenv LESSCHARSET
31         else if ($TERM == linux-lat) then
32                 setenv LESSCHARSET latin1
33         endif
34 endif
This page took 0.044291 seconds and 3 git commands to generate.