[LON-CAPA-cvs] cvs: doc /loncapafiles langcheck.piml
raeburn
raeburn at source.lon-capa.org
Thu Dec 5 12:26:03 EST 2013
raeburn Thu Dec 5 17:26:03 2013 EDT
Modified files:
/doc/loncapafiles langcheck.piml
Log:
- Correction to rev 1.4 -- support Fedora 18, 19, 20.
Index: doc/loncapafiles/langcheck.piml
diff -u doc/loncapafiles/langcheck.piml:1.4 doc/loncapafiles/langcheck.piml:1.5
--- doc/loncapafiles/langcheck.piml:1.4 Thu Dec 5 16:58:45 2013
+++ doc/loncapafiles/langcheck.piml Thu Dec 5 17:26:03 2013
@@ -49,8 +49,7 @@
close(PIPE);
}
} elsif ('<DIST />' eq 'debian5' || '<DIST />' eq 'debian6' || '<DIST />' eq 'ubuntu6' ||
- '<DIST />' eq 'ubuntu8' || '<DIST />' eq 'ubuntu10' || '<DIST />' eq 'ubuntu12' ||
- '<DIST />' eq 'fedora18' || '<DIST />' eq 'fedora19' || '<DIST />' eq 'fedora20') {
+ '<DIST />' eq 'ubuntu8' || '<DIST />' eq 'ubuntu10' || '<DIST />' eq 'ubuntu12') {
if (open(PIPE,"cat /etc/default/locale |grep '^LANG' |")) {
print "Checking OS language";
if (<PIPE> =~ /^LANG="en/) {
@@ -61,6 +60,16 @@
}
close(PIPE);
}
+} elsif ('<DIST />' eq 'fedora18' || '<DIST />' eq 'fedora19' || '<DIST />' 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";
More information about the LON-CAPA-cvs
mailing list