Jump to content

Change login integration language


Go to solution Solved by brian!,

Recommended Posts

1 hour ago, ocastaned said:

How can I make possible they are shown in Spanish language?

I don't have sign-in enabled, but looking at the code in linkedaccounts.tpl, it looks like they're going to be hardcoded in English and not using Language Strings.

therefore, you may need to use an action hook to manipulate the values within the $linkableProviders array... one of which is the code for each login button.

Link to comment
Share on other sites

24 minutes ago, brian! said:

I don't have sign-in enabled, but looking at the code in linkedaccounts.tpl, it looks like they're going to be hardcoded in English and not using Language Strings.

therefore, you may need to use an action hook to manipulate the values within the $linkableProviders array... one of which is the code for each login button.

Could you give me an example on how to do it, so I can get an idea. Thank you in advance. 

Link to comment
Share on other sites

  • Solution

it turns out they are using Language strings and therefore there is an easier way - Language Overrides

$_LANG['remoteAuthn']['signInWith'] = "Sign in with :provider";

so create/edit your /lang/overrides/spanish.php file and add an entry in it...

$_LANG['remoteAuthn']['signInWith'] = "Iniciar sesión con :provider";

forgive Google Translate for the Spanish - feel free to improve it! :idea:

XVdcEFx.png

Link to comment
Share on other sites

  • 3 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated