<Solved>login.php cannot switch the language

Get help with installation and running official modules for phpwcms here. Please do not post bug reports or feature requests here.
User avatar
pico
Posts: 2595
Joined: Wed 28. Jul 2004, 18:04
Location: Frankfurt/M Germany
Contact:

Post 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
:!: :?:
Lieber Gott gib mir Geduld - ABER BEEIL DICH
Horst - find me at Musiker-Board
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post 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!
Last edited by sunny123 on Sat 6. Oct 2007, 03:45, edited 1 time in total.
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post 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!
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Please have a look: Quick Locale Switcher for FF.
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post 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!
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
update
Moderator
Posts: 6455
Joined: Mon 10. Jan 2005, 17:29
Location: germany / outdoor

Post by update »

The end of a long story rears its head to be kissed :lol:
Goran
Posts: 81
Joined: Thu 27. Nov 2003, 11:43
Location: Zagreb, Croatia
Contact:

Post 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)
Last edited by Goran on Tue 2. Oct 2007, 14:14, edited 1 time in total.
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post 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!
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

@sunny123
read well - I have it changed. So stop bashing me.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
User avatar
Oliver Georgi
Site Admin
Posts: 9892
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

See new snapshot release.
http://www.phpwcms.org/snapshot

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
sunny123
Posts: 52
Joined: Wed 26. Sep 2007, 02:11

Post 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!
Post Reply