solved Language changes when I login or logout

alt=
@andrusito
11 years ago
302 posts
Hi, I have a problem with my language setting. I have 2 languages: spanish and english.

Everytime I arrive to my site as a guest I see it on english. But when I login as admin (or as an artist) it turns into spanish. Also, when I logout I see it again on english.

I've already set my default language to SPANISH at "User Accounts > Global Config > Default Language" but I think it does not work when users are log out.

Is there any "hidden" setting to modify to make SPANISH my main language even if users has not logged in?

I'm using jrNova skin.

Thanks!
updated by @andrusito: 05/04/14 12:55:33PM
brian
@brian
11 years ago
10,149 posts
No that should not it - it could be a cookie. Clear your cookies and see if that works. I'll see if the cookie names needs to be updated to properly "change" when the default lang changes.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
I tried this in firefox and was logged out

I changed the default language in the meta.tpl file in the Nova skin
Changed it to es and fr from en.
No change even after clearing cookies and caches in the browser

Ran an integrity check to make sure and deleted the cache folder from my server and no difference

If you set the default language for users , Isn't that the default language if they are logged in and don't have a default language set up in their account?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,149 posts
The default language should be used for anyone that is not logged in (and changed their language) or set their language preference via cookie (i.e. clicking on the flags on the site).

Looking at the code here it looks correct, but I'll have to setup a test so I can see if I can replicate it here.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@andrusito
11 years ago
302 posts
Look at my site. You can use this test user and see what happens:

http://devocionmusical.com/

user: josudiguez
pass: gen3ral
michael
@michael
11 years ago
7,806 posts
When I go here:
http://devocionmusical.com

then click 'spanish'
then go away and come back the site is still in spanish.

--
then I login, the site is still in spanish.
and log out, the site is still in spanish.

I guess there could be some overlap if the selected language is spanish and you login to an account where their chosen lanugage setting is in english

http://devocionmusical.com/user/account

while logged out, if you change the lanugage to something other than what your account settings are set to, then login the system is not going to know that the language you selected before logging in should be applied to the user you just logged in as.
alt=
@andrusito
11 years ago
302 posts
I know the flags are working.

I want to know how to change the default language to SPANISH but not by clicking the flags.

When you did that test the first language you saw was english.. I don't want it.

Thanks.
douglas
@douglas
11 years ago
2,806 posts
In your ACP > User Account > Global Config settings, http://yoursite.com/user/admin/global, there is a default language drop down, do you have that set to Spanish?

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
alt=
@andrusito
11 years ago
302 posts
Yes, already set that to spanish..

Do I have to modify anything else? :/
douglas
@douglas
11 years ago
2,806 posts
Try this, in your skins/jrNova/meta.tpl file, find this:

<html lang="{jrCore_lang module="_settings" id="lang" default="en"}" dir="{jrCore_lang module="_settings" id="direction" default="ltr"}">

and change the default language to "es"

<html lang="{jrCore_lang module="_settings" id="lang" default="es"}" dir="{jrCore_lang module="_settings" id="direction" default="ltr"}">



--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
11 years ago
10,149 posts
andrusito:
I know the flags are working.

I want to know how to change the default language to SPANISH but not by clicking the flags.

When you did that test the first language you saw was english.. I don't want it.

Thanks.

I'm checking this out today - I didn't have time to test this yesterday but will let you know what I find.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
douglas
@douglas
11 years ago
2,806 posts
Yeah, what I posted doesn't help and I'm not able to set my dev site to Spanish as the default language either, so something isn't working right.


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
brian
@brian
11 years ago
10,149 posts
This is fixed in the latest User Accounts module (1.1.15) - update and let me know if you see any issues.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
alt=
@andrusito
11 years ago
302 posts
Great @brian, that worked for me!

Thanks!

Tags