Page 1 of 2

Cannot change language in admin settings

Posted: Tue Jan 24, 2006 11:22 am
by gde
I'm using 1.0 beta and most things seem to work correctly but I cannot change language in the admin section. It always sticks to English. I tested this with both (the latest) Safari and Camino 1.0 beta.
I've also forced reloading the page but it doesn't help.

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 11:23 am
by garvinhicking
How do you change the language? You must change it in your "Personal Configuration", not in the global "Configuration"!

Regards,
Garvin

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 11:40 am
by gde
Sorry - I meant for the whole site and not my personal settings. I'd like to be able to post messages in both Swedish and English with Swedish as the primary language.
Hope this explains it better.

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 11:42 am
by garvinhicking
If you are logged in to Serendipity, your personal language preference always overrides the global language.

So if you set "English" as your global language and "Swedish" as your personal language, the whole blog will be shown in Swedish to you. However, for other visitors, it will be shown in English. You can try that by using a different browser to visit your page, where you are not logged in.

Regards,
Garvin

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 11:49 am
by gde
I changed my personal language to Swedish but the global language still doesn't want to change to Swedish. Doesn't work in either browser.
Is it a bug?

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 11:57 am
by garvinhicking
So you have this setup:

Personal Language: Swedish
Global Language: Swedish

But the blog shows up with English descriptions? What's the URL?

I do not think it's a bug, it works flawless here and many other blogs. :)

Regards,
Garvin

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 1:02 pm
by Guest
I cannot make Swedish "stick" as the default language in global settings. Despite saving it always shows English.
But it works for the personal settings where language=Swedish

The site is at http://dippe.info/

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 1:25 pm
by garvinhicking
Do other settings you change globally properly store?

Can you check your database, table "serendipity_config" and see what the "lang" version is set after saving?

Best regards,
Garvin

Re: Cannot change language in admin settings

Posted: Tue Jan 24, 2006 8:16 pm
by Guest
As far I can see there are two different "lang" settings and both are "se" which should mean that my settings are ok.

A bit strange that the popup for global language doesn't show Swedish when the user (admin) language popup does it.

Thanks for all your effort and quick replies :D

Re: Cannot change language in admin settings

Posted: Wed Jan 25, 2006 10:54 am
by garvinhicking
Did you check the HTML sourcecode of your global configuration? Maybe there the right option is selected, but your browser doesn'T show it to you.

Firefox with some extensions is known to cause such confusion, that it does not select the right value in a multi-select field.

Regards,
Garvin

Re: Cannot change language in admin settings

Posted: Wed Jan 25, 2006 1:02 pm
by Guest
Unfortunately I don't think it is a browser dependent "error". The latest tested browser is Opera (8.5) and it shows exactly the same as Safari and Camino..

The source for the global language setting shows what is written on the page
...option value="en" selected="selected">English ...

The first sticky post (http://dippe.info/) indicates that there are two pages in Swedish. The popup for choosing language when creating the post gives me two options
the default
and
Swedish
which is a bit strange since the default language is set to Swedish (but actually English is what shows up in the admin section) and I shouldn't be able to choose that option in the popup. Rather English should be the alternative :?:

Hope this isn't too darn confusing!

Re: Cannot change language in admin settings

Posted: Wed Jan 25, 2006 1:22 pm
by garvinhicking
Hm, what do you get for this SQL query:

Code: Select all

SELECT *
FROM `serendipity_config`
WHERE `name` LIKE 'lang'
If the selected option in your configuration is "English", then there must be a database entry where the lang key is set to "en"...

Regards,
Garvin

Re: Cannot change language in admin settings

Posted: Wed Jan 25, 2006 1:49 pm
by Guest
This is what I get:

name value authorid
lang se 0
lang se 1

Re: Cannot change language in admin settings

Posted: Wed Jan 25, 2006 2:08 pm
by garvinhicking
Hm, then I'm really sorry and don'T understand why english is selected, because there should be no other placer where it draws that from.

The multilingual entries can get confused if you change the default language, or manualy select the language that is your default language and enter content for it...

Regards,
Garvin

Re: Cannot change language in admin settings

Posted: Wed Jan 25, 2006 3:16 pm
by Guest
I think what you mentioned is exactly what happened. At first I decided English should be the default language but then when I saw the possibilities of so elegantly producing two different language versions of the same post I figured that Swedish would be a better option.

Maybe it could be useful to point out the hazards of fiddling around with the language options.

Serendipity is easy to reinstall so I'll go for that option and also since I didn't have more than a couple of posts added so far.