Page 3 of 3

Posted: Mon 1. Oct 2007, 19:07
by pico
@Oliver

that's what we have tried to explain at the beginning of the Thread - but this is not what he realy want's - as far as I (we) understud
:!: :?:

Posted: Mon 1. Oct 2007, 19:13
by Oliver Georgi
@Pico
Nobody has explained the relation between browser's default language setting and phpwcms login language choose. This is - in my eyes - the correct answer.

Sunny123 wants to have "English" selected by default. But I guess his/her browser is set to Chinese language by default which is - maybe - available as translation on her/his install. So phpwcms selects this by default.

Oliver

Posted: Mon 1. Oct 2007, 19:23
by sunny123
Oliver Georgi wrote:STOP hacking code!!!!!!

Here is why everything is correct - it is NOT a bug!!!

If default browser language is available in phpwcms it will automatically switch to this language otherwise if will fall back to phpwcms' default language setting.

It makes no sense to set to any another language than browser's default as long as your are not logged in! So check this value first.

After successful login user related language setting will be loaded.

Oliver
I am a Chinese, but I always use English, so I hope to see the english page with Chinese browser!

so I hope can choose language just like phpmyadmin!

Posted: Mon 1. Oct 2007, 19:57
by Oliver Georgi
phpMyAdmin uses the same technique - but additional sets a cookie - phpwcms does not set cookies.

But I guess you can read Chinese chars too - after login you will automatically switched to English if you have set your default backend language under your profile (in the backend). I think there is no real problem!

If you always choose English set your browser's default language to "en".

Oliver

Posted: Mon 1. Oct 2007, 20:24
by sunny123
Oliver Georgi wrote:phpMyAdmin uses the same technique - but additional sets a cookie - phpwcms does not set cookies.

But I guess you can read Chinese chars too - after login you will automatically switched to English if you have set your default backend language under your profile (in the backend). I think there is no real problem!

If you always choose English set your browser's default language to "en".

Oliver
If I sometime choose Chinese, sometime choose English, every time set browser's default language is a worry matter ! But phpmyadmin switch the language is very easy!

Posted: Mon 1. Oct 2007, 21:03
by flip-flop
Please have a look: Quick Locale Switcher for FF.

Posted: Mon 1. Oct 2007, 21:19
by update
Thanks for the link - this is really cool :D
Have been looking for such a tool but didn't find it - until now!

Posted: Mon 1. Oct 2007, 21:34
by Oliver Georgi
OK friends,

Login screen language selection enhanced: It supports now on the fly language change for login screen (javascript submit) in case password and/or login is not filled.

Cookie is set too and combined with login form and backend language selection.

Oliver

Posted: Mon 1. Oct 2007, 21:41
by update
The end of a long story rears its head to be kissed :lol:

Posted: Mon 1. Oct 2007, 22:38
by Goran
Oliver Georgi wrote:OK friends,

Login screen language selection enhanced: It supports now on the fly language change for login screen (javascript submit) in case password and/or login is not filled.

Cookie is set too and combined with login form and backend language selection.

Oliver
STOP hacking code!!!!!! 8)

Posted: Tue 2. Oct 2007, 02:47
by sunny123
Oliver Georgi wrote:OK friends,

Login screen language selection enhanced: It supports now on the fly language change for login screen (javascript submit) in case password and/or login is not filled.

Cookie is set too and combined with login form and backend language selection.

Oliver
I'm sorry! I don't like the phpwcms backend login page, as a user, I like the phpmyadmin login page, it more considers for the user !
Please change it!

Posted: Tue 2. Oct 2007, 07:02
by Oliver Georgi
@sunny123
read well - I have it changed. So stop bashing me.

Oliver

Posted: Tue 2. Oct 2007, 07:27
by Oliver Georgi
See new snapshot release.
http://www.phpwcms.org/snapshot

Oliver

Posted: Tue 2. Oct 2007, 16:07
by sunny123
Oliver Georgi wrote:@sunny123
read well - I have it changed. So stop bashing me.

Oliver
Sorry! I have read well!
You are nice man! You work hard
I like phpwcms so much!