Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: language detection does not work in Mozilla  (Read 2848 times)

0 Members and 1 Guest are viewing this topic.

mariuss

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
language detection does not work in Mozilla
« on: December 12, 2003, 12:12:26 am »

Hi,

I am using Mozilla 1.5 and the language detection code does not work, English is loaded all the time. Basically I cannot change the language no matter what I do.

If I hit the site with IE then the language is detected properly.

Is anybody else using Mozilla? If yes, is language detection working for you?

Any clues?

Thanks,
Marius
Logged

mariuss

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: language detection does not work in Mozilla
« Reply #1 on: December 12, 2003, 01:52:19 am »

The problem was with the language cookie.

Why is the language saved into a cookie? If you explicitly select a language then it makes sense, but when the language is detected from the browser then it should not be done in my opinion.

Thanks,
Marius
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
language detection does not work in Mozilla
« Reply #2 on: December 12, 2003, 02:10:58 am »

what if you want to set the lang explicitly? say for testing or if I wanted to show my french friend my site without changing my browser settings...

mariuss

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
language detection and cookies
« Reply #3 on: December 12, 2003, 05:47:58 am »

As I said, if you explicitly set the language then it makes sense to save it to a cookie.

The problem is when you don't set it and it is picked from your browser settings. Lets say I am a user with the browser set to first ask for Romanian. I hit the photo album and I realize that I would prefer the English version for some reason, changing the browser settings has no effect because the original preference is already saved. You cannot expect an end user to read the FAQ and delete cookies. Basically he is stuck with the original setting, no way out.

Marius
Logged

Oasis

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 252
  • iNSiGNiA
    • Pixnet Gallery
language detection does not work in Mozilla
« Reply #4 on: December 12, 2003, 07:25:50 am »

[deleted]
Logged
Pixnet Gallery: http://www.pixnet.net
iNSiGNiA Weblog: http://www.jayliu.org
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.