--- doc/loncapafiles/langcheck.piml 2013/12/05 16:58:45 1.4
+++ doc/loncapafiles/langcheck.piml 2013/12/05 17:26:03 1.5
@@ -49,8 +49,7 @@ if ('' eq 'sles9' || ''
close(PIPE);
}
} elsif ('' eq 'debian5' || '' eq 'debian6' || '' eq 'ubuntu6' ||
- '' eq 'ubuntu8' || '' eq 'ubuntu10' || '' eq 'ubuntu12' ||
- '' eq 'fedora18' || '' eq 'fedora19' || '' eq 'fedora20') {
+ '' eq 'ubuntu8' || '' eq 'ubuntu10' || '' eq 'ubuntu12') {
if (open(PIPE,"cat /etc/default/locale |grep '^LANG' |")) {
print "Checking OS language";
if (<PIPE> =~ /^LANG="en/) {
@@ -61,6 +60,16 @@ if ('' eq 'sles9' || ''
}
close(PIPE);
}
+} elsif ('' eq 'fedora18' || '' eq 'fedora19' || '' eq 'fedora20') {
+ if (open(PIPE,"cat /etc/locale.conf |grep '^LANG' |")) {
+ print "Checking OS language";
+ if (<PIPE> =~ /^LANG="en/) {
+ print "... OK\n";
+ } else {
+ print $osmsg.
+ "It is recommended that you set LANG=\"en_US.UTF-8\" in /etc/locale.conf\n";
+ }
+ close(PIPE);
} else {
if (open(PIPE,"cat /etc/sysconfig/i18n |grep '^LANG' |")) {
print "Checking OS language";