[LON-CAPA-cvs] cvs: doc /loncapafiles langcheck.piml

raeburn raeburn at source.lon-capa.org
Sat Oct 27 16:29:22 EDT 2018


raeburn		Sat Oct 27 20:29:22 2018 EDT

  Modified files:              
    /doc/loncapafiles	langcheck.piml 
  Log:
  - Support SLES 15 and Fedora 29.
  
  
Index: doc/loncapafiles/langcheck.piml
diff -u doc/loncapafiles/langcheck.piml:1.14 doc/loncapafiles/langcheck.piml:1.15
--- doc/loncapafiles/langcheck.piml:1.14	Mon Jun 11 03:53:08 2018
+++ doc/loncapafiles/langcheck.piml	Sat Oct 27 20:29:22 2018
@@ -64,8 +64,8 @@
 } elsif ('<DIST />' eq 'fedora18' || '<DIST />' eq 'fedora19' || '<DIST />' eq 'fedora20' ||
          '<DIST />' eq 'fedora21' || '<DIST />' eq 'fedora22' || '<DIST />' eq 'fedora23' ||
          '<DIST />' eq 'fedora24' || '<DIST />' eq 'fedora25' || '<DIST />' eq 'fedora26' ||
-         '<DIST />' eq 'fedora27' || '<DIST />' eq 'fedora28' || '<DIST />' eq 'rhes7'    ||
-         '<DIST />' eq 'centos7'  || '<DIST />' eq 'scientific7') {
+         '<DIST />' eq 'fedora27' || '<DIST />' eq 'fedora28' || '<DIST />' eq 'fedora29' ||
+         '<DIST />' eq 'rhes7'    || '<DIST />' eq 'centos7'  || '<DIST />' eq 'scientific7') {
     if (open(PIPE,"cat /etc/locale.conf |grep '^LANG' |")) {
         print "Checking OS language";
         if (<PIPE> =~ /^LANG="en/) {
@@ -76,6 +76,17 @@
         }
         close(PIPE);
     }
+} elsif ('<DIST />' eq 'sles15') {
+    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