Page 1 of 1

add language switcher on login page

Posted: 12 Jun 2020, 00:16
by yckelvin
Dear Sir/Madam,

I am new to Mantis Bug Tracker, I know how to set the default language to the system and individual user, I want to add a language switcher to the login page so that new user can view the message from login page in his language.

Could you please advise how I can do that?

Best regards,

Kelvin.

Re: add language switcher on login page

Posted: 13 Jun 2020, 09:18
by cas
Out of the box, what you ask is not available, you would need to customize the login page (login_page.php )
Having said that, why would you want to do this?
Mantis normally takes the language of the browser so it should come up in his/her language automatically.
/**
* If the language is set to 'auto', the actual language is determined by the
* user agent (web browser) language preference.
* @global string $g_default_language
*/
$g_default_language = 'auto';