--- doc/loncapafiles/langcheck.piml 2018/06/11 03:53:08 1.14 +++ doc/loncapafiles/langcheck.piml 2018/10/27 20:29:22 1.15 @@ -64,8 +64,8 @@ if ('' eq 'sles9' || '' } elsif ('' eq 'fedora18' || '' eq 'fedora19' || '' eq 'fedora20' || '' eq 'fedora21' || '' eq 'fedora22' || '' eq 'fedora23' || '' eq 'fedora24' || '' eq 'fedora25' || '' eq 'fedora26' || - '' eq 'fedora27' || '' eq 'fedora28' || '' eq 'rhes7' || - '' eq 'centos7' || '' eq 'scientific7') { + '' eq 'fedora27' || '' eq 'fedora28' || '' eq 'fedora29' || + '' eq 'rhes7' || '' eq 'centos7' || '' eq 'scientific7') { if (open(PIPE,"cat /etc/locale.conf |grep '^LANG' |")) { print "Checking OS language"; if (<PIPE> =~ /^LANG="en/) { @@ -76,6 +76,17 @@ if ('' eq 'sles9' || '' } close(PIPE); } +} elsif ('' 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";