add language switcher on login page

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
yckelvin
Posts: 1
Joined: 12 Jun 2020, 00:03

add language switcher on login page

Post 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.
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: add language switcher on login page

Post 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';
Post Reply