language dropdown not displayed - Boots logon page

language dropdown not displayed - Boots logon page

על ידי Jacques LeCavalier בתאריך
מספר תגובות: 2

Hi, there.

Using Moodle 3.3.1 with Boost theme. Language settings are set to English default, and to show English and French language choices.

However, on the logon page, French seems to be the default and there is no language dropdown...

I'm not sure if the dropdown is supposed to display when only the logon panel is shown, but any advice would be appreciated.

thanks.
Jacques


צרופה Logon page - language.PNG
ממוצע דרוגים: -
בתגובה ל: Jacques LeCavalier

Re: language dropdown not displayed - Boots logon page

על ידי Karen Holland בתאריך
תמונה של Core developers תמונה של Plugin developers תמונה של Testers

So, the Demo site, https://demo.moodle.net/, using Boost, also appears to have the same display in that a language dropdown doesn't show on the login page.

As you're only dealing with two language options, you could think about a workaround by adding two links to the text of the page.

These could be either down in the instructions which appear below the heading 'Is this your first time here? as mentioned by Helen in https://moodle.org/mod/forum/discuss.php?d=355178. If using this solution, you'd also need to enclose each link name in multilingual tags (and have the multilingual filter enabled too https://docs.moodle.org/33/en/Multi-language_content_filter)
<span class="multilang" lang="en">English</span>
<span class="multilang" lang="fr">Englais</span>

Otherwise, you could customise your "Forgotten your username or password" string or french equivalent, to display it on the top right of the page, as follows.

Site administration > Language > Language customisation, in the English en pack, it's Component core, String forgotten, "Forgotten your username or password?" and edit it to this instead.

<h3></a><a href="/login/index.php?lang=en">English</a> | <a href="/login/index.php?lang=fr">French</a></h3>
<a href="/login/forgotpassword.php">Forgotten your username or password?

Change the css as required, and of course you would also need to add the same to the French fr pack string too.

צרופה login_language_links_result.png
צרופה login_language_links.png
בתגובה ל: Karen Holland

Re: language dropdown not displayed - Boots logon page

על ידי Jacques LeCavalier בתאריך

thanks a lot for that, Karen!

Finally got the various language settings to behave, and with your string replacement, we now have language choice on the logon page!