HI, Amit.
Thank you for contacting us.
That modal window is from Facebook, language should depend what settings at FB you have.
Default language is picked from Joomla back-end settings and that language is used for FB button. In Joomla back-end go to
- Extensions/Language(s) and declare default language for site and that lang should be used for FB button.
For each user you can set frontend and backend language in user properties.
If that is not working keep reading.
I'm not using facebook login but code that is responsible for button is located in:
...\components\com_community\templates\jomsocial\layouts\facebook.button.php
line 24
$fbLangScript = '<script src="//connect.facebook.net/en_GB/all.js" type="text/javascript"></script>';
and line 27
$fbLangScript = '<script src="//connect.facebook.net/'.$currentLang.'/all.js" type="text/javascript"></script>';
My best guess is that changing line 24 from
$fbLangScript = '<script src="//connect.facebook.net/en_GB/all.js" type="text/javascript"></script>';
to
$fbLangScript = '<script src="//connect.facebook.net/es_LA/all.js" type="text/javascript"></script>';
should change button to Spanish according to FB link that I gave you. You need to find lang code that you need.
I have not tested this code so if you decide to do something that is on your own responsibility.
On the other hand, making backup of that file and experimenting cannot hurt much since you can always overwrite with backed up file.
Same code is found in:
...\components\com_community\templates\jomsocial\layouts\facebook.inviteframe.php (line 49) which is responsible for some kind of invite form.
HI, Guys.
Language of modal window can't be changed by any code as it's loaded externally from FB.
Language in it should depend of your FB language.
Here you can see that site is in Hebrew while modal window is in Polish as my FB account uses Polish:
prntscr.com/gviz1x
HI, Amit.
I've checked directly on your site: <removed>
As you can see, language follows my FB settings.
I don't know why it doesn't work in your case...
HI, Amit.
Removed as requested.