Menu

#2684 Server failed to set locale to ["en-GB.UTF-8","en_GB.UTF-8"

open
nobody
None
1
2023-01-20
2023-01-20
No

Hi,

The moodle fork of mrbs has finally died at moodle version 4, and 6 years.

Have installed the lastest rev of the real version from here and got it working fine ... :-)
Integration issues aside, it has come a long way.. Need a moodle auth plugin obviously :-)

HOWEVER ... logs are full of
Server failed to set locale to ["en-GB.UTF-8","en_GB.UTF-8"] for language tag 'en-GB'.

I notice that somebody else talked about it too.

Related

Support Requests: #2684

Discussion

  • Peter de Groot

    Peter de Groot - 2023-01-20

    That was quick many tx 😊

    From the Help below this ..

    Googling ..

    Am in Australia and would like the GB language. Linux, Apache

    root@e4182s01sv025:/mnt/d2/mrbs/web# locale
    LANG=en_US.UTF-8
    LANGUAGE=
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    root@e4182s01sv025:/mnt/d2/mrbs/web#

    About MRBS
    Configuration details
    MRBS version MRBS 1.11.0
    Database schema version 82
    Database local schema version 1
    $auth['type'] ldap
    $auth['session'] php
    Server details
    Database (Ubuntu) 8.0.31-0ubuntu0.20.04.2
    System Linux e4182s01sv025 5.15.0-1031-azure #38~20.04.1-Ubuntu SMP Mon Jan 9 18:23:48 UTC 2023 x86_64
    Server time 20 Jan 2023, 15:26:03 GMT+8
    Server software Apache/2.4.41 (Ubuntu)
    PHP 7.4.3
    Extensions Core, FFI, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, bz2, calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, intl, json, ldap, libxml, mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, posix, readline, session, shmop, soap, sockets, sodium, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib
    Your browser is set with the following language preference order: en-AU, en-GB, en-US, en

     
  • Campbell Morrison

    The message probably results from users who have 'en-gb' as their first language preference in their browser. If you are not an en-gb site and are not worried about allowing users an en-gb option, you could always set $override_locale to force users to use the locale of your choice.

     
  • Campbell Morrison

    See https://help.ubuntu.com/community/Locale for information on checking and installing locales on Ubuntu.

     
  • Peter de Groot

    Peter de Groot - 2023-01-20

    Tx for that... the only locale I had installed was en-US. So I forced that. Wonder if that will effect the dates ? Hmmm