Your server does not seem to fully support the following languages

Re: Your server does not seem to fully support the following languages

by Dominique Bauer -
Number of replies: 11
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

Thank you all,

My web administrator has now fixed the problem.

In reply to Dominique Bauer

Re: Your server does not seem to fully support the following languages

by Pablo Pazos -

For the record, I had the exact same problem and took some time to fix. The issue is, even after installing locales, if Apache is not restarted, Moodle will keep saying the locales are not there. So an important step is to restart Apache after installing the locales (if you are not using Apache, restart your webserver).

BTW, I followed this guide: https://docs.moodle.org/dev/Table_of_locales

Average of ratings: Useful (4)
In reply to Pablo Pazos

Re: Your server does not seem to fully support the following languages

by Przemek Kaszubski -
Picture of Particularly helpful Moodlers Picture of Testers
Hi, I have just encountered this issue, and what I really find surprising is that the default English pack is questioned in the manner described.

"Your server does not seem to fully support the following languages:

English ‎(en)‎

Instead, the global locale (en_AU.UTF-8) will be used to format certain strings such as dates or numbers."

The server is Debian 10. The installed locales are:
C
C.UTF-8
en_US.utf8
pl_PL.utf8
POSIX

as everywhere else i have always used so far.

My Moodle is Moodle 3.7.2+ (Build: 20191030) currently on this machine.

On this page:
https://docs.moodle.org/38/en/Language_FAQ#What_do_codes_like_.22en.22_and_.22en_us.22_or_.22es.22_and_.22es_mx.22_and_.22es_ve.22_mean.3F.3F

I read

"en_us" is the English - United States language pack; "en" is Australian English, which is practically the same as British English.

And the page https://docs.moodle.org/dev/Translation_langconfig says:

"parentlanguage,core_langconfig

The original Moodle default Australian language pack has this field empty (as the Australian English language IS the official Moodle language).

If your language pack relies on another one (it is a 'child' language of a 'parent' language), then this is the place to point out which language pack. For most language packs, this should be left empty, to default to English if strings are missing."


Thus, questions : What do I do to fix best my case:

1) Add the en_AU.UTF-8 locale on the server?

2) Instal the en_US language pack from the "Available language packs" on /admin/tool/langimport/ ?


I never had to go through this before. My last Linux instals were with Moodle 3.6.

Many thanks.
In reply to Przemek Kaszubski

Re: Your server does not seem to fully support the following languages

by Przemek Kaszubski -
Picture of Particularly helpful Moodlers Picture of Testers
Replying to myself, maybe of use to anyone.

After reading this https://discuss.moodlebox.net/d/110-error-message-for-the-language-packs

I went along with:

dpkg-reconfigure locales

selected en_AU.UTF-8 UTF-8 on the list

saved with OK

Kept my server default as en_US.UTF-8

OK-ed that

Finally restarted apache:

systemctl restart apache2

And the problem is gone.
Average of ratings: Useful (4)
In reply to Przemek Kaszubski

Re: Your server does not seem to fully support the following languages

by Sven Neuhaus -

I had the same issue with the German language on a server running Ubuntu
16.04 with nginx.
The following steps on the Linux command line fixed the issue:


Average of ratings: Useful (6)
In reply to Sven Neuhaus

Re: Your server does not seem to fully support the following languages

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

Thanks Sven,

Was trying to run PHP Unit on Ubuntu 20.04 and got:

Required locale 'en_AU.UTF-8' is not installed.

so:

sudo apt install language-pack-en
sudo service apache2 reload

worked for me.

Gareth


Average of ratings: Useful (2)
In reply to Gareth J Barnard

Re: Your server does not seem to fully support the following languages

by Benoit Maisonny -

I was surprised we'd have to actually install the Linux language pack on the server in order to support a language pack in Moodle. That is a few MB each and brings not just the locales but in fact a complete translation of Linux itself. It turns out it isn't necessary. Moodle only needs the locale definition, not the Linux language pack.

On a Ubuntu 20.04 system with nginx rather than Apache, I just do:

locale-gen fr_FR.UTF-8 en_GB.UTF-8
systemctl reload nginx
systemctl reload php7.4-fpm

locale-gen generates the locale information that Moodle needs. It takes a list of locales. Without any parameter, it will generate all locales for all installed Linux language packs. Available locales are listed in /usr/share/i18n/SUPPORTED. For example, the command "grep es_ /usr/share/i18n/SUPPORTED" lists all Spanish locales. There's a catch here: when adding a "parent" language pack in Moodle (e.g. es for international Spanish), one needs to install the main locale in Linux, named with a country code (e.g. "es_ES", from Spain). Likewise, "ar" in Moodle is "ar_SA" in Linux, "fr" is "fr_FR", and so on.

Because I'm using nginx and the PHP-nginx adapter, I need to reload both services.

Average of ratings: Useful (4)
In reply to Benoit Maisonny

Re: Your server does not seem to fully support the following languages

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Thank you Benoit for sharing this useful tip.

Just to clarify, I don't think there was any intention to suggest that installing these packages is mandatory. And if you are aware of a place that claims it, it shall be fixed. It's just one of the ways to get the thing done and for many administrator, the easiest one.

In reply to David Mudrák

Re: Your server does not seem to fully support the following languages

by Benoit Maisonny -
Indeed, I only saw the instruction in messages above. It makes sense when installing only 1 language besides English on the server, if the server administrator wants to see system messages in that language. I wanted to install multiple languages in Moodle only, without installing them on the Linux server as well.
In reply to Dominique Bauer

Re: Your server does not seem to fully support the following languages

by Lev Zadumkin -
Same problem with clean install last Moodle 3.10 on the last Centos 8 - we need russian locale ru_RU.utf8, so:
1) check, that locale missing in the system, list all installed locales
localectl list-locales
2) install russian locale
dnf install glibc-langpack-ru
3) restart web-server
systemctl restart nginx
systemctl restart php-fpm

Centos is still not documented in this manual, oddly.

Average of ratings: Useful (1)
In reply to Lev Zadumkin

Re: Your server does not seem to fully support the following languages

by koen roggemans -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Translators
The install locales on server stuff is documented on https://docs.moodle.org/dev/Table_of_locales#Support_in_operating_systems
It gives you a way to install all locales on your servers, so this message never shows up if someone would install another language.
Feel free to add the CentOS way if you figured it out.
Average of ratings: Useful (3)
In reply to koen roggemans

Re: Your server does not seem to fully support the following languages

by Lev Zadumkin -
oh, exactly! I didn't catch that this is a wiki. Sure, I'll add my CentOS example.
Average of ratings: Useful (2)