ocastaned Posted February 11, 2018 Share Posted February 11, 2018 (edited) I just integrated the social login option within WHMCS, but those are being shown in English. This is a screenshot: http://prntscr.com/id8leb How can I make possible they are shown in Spanish language? Thank you. Edited February 11, 2018 by ocastaned Link to comment Share on other sites More sharing options...
brian! Posted February 11, 2018 Share Posted February 11, 2018 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 More sharing options...
ocastaned Posted February 11, 2018 Author Share Posted February 11, 2018 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 More sharing options...
Solution brian! Posted February 11, 2018 Solution Share Posted February 11, 2018 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! 1 Link to comment Share on other sites More sharing options...
ocastaned Posted February 11, 2018 Author Share Posted February 11, 2018 Wow! You are amazing man! It worked beautiful. Thank you so much. Link to comment Share on other sites More sharing options...
Beekingo Posted February 28, 2018 Share Posted February 28, 2018 (edited) Thanks @brian! @ocastaned you should add those two lines used at register new account and in customer security page. $_LANG['remoteAuthn']['connectWith'] = 'Vincular con :provider'; $_LANG['remoteAuthn']['signUpWith'] = 'Ingresar con :provider'; Edited February 28, 2018 by Beekingo Link to comment Share on other sites More sharing options...
Recommended Posts