Cannot change language in config page Cannot change language in config page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Cannot change language in config page

Started by pero, February 07, 2004, 12:30:49 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

pero

Running Apache 1.3.27, PHP v. 4.3.3, mySQL client API 3.23.49

Trying to switch language in config screen does not have any effect - the changes is not reflected next tim I go to config, nor in the DB.

I can still add pictures, change other config options.

Any ideas?

Casper

Did you actually upload the other language files?

Did you remember to hit the apply modifications button at the bottom of the page?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

pero

I unzipped the full package and, looking at the unzipped directory, in the subdir "lang", there are quite a few files named like "swedish.php", "finnish.php".

From the look of the content in those files, it seems OK.

Tried to switch to several different languages, but no one seems to work...

hyperion

"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

pero

Quote from: "hyperion"Can you provide a link?

If the URL is enough - http://medlem.spray.se/naasgransen/coppermine

This is hosted at a free web hotel.
I have a mirror site setup at home - offline - and it behaves exactly the same...

hyperion

I can successfully force the language change.

http://medlem.spray.se/naasgransen/coppermine/index.php?lang=french

Do you have a database tool like PHPMyAdmin available?
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Casper

I was also able to change the language, to Swedish.

As a workaround, do what hyperion did, just replace french with swedish, and tell your users to do the same.  They only need to do this once, as the cookie remembers their setting.

But we want to find out why it is not updating when you click the 'save new configuration' button.  Try a test to see if other changes take effect.
Try changing the 'last additions' from 'lastup,2', to 'lastup,3'.
Do you get an extra line of thumbs?
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

try this: use a tool like phpMyAdmin, go to the cpg11d_config table and look for the entry "lang" and set it to "swedish" (without the ending ".php").
Then run this in your browser http://medlem.spray.se/naasgransen/coppermine/?lang=xxx (will reset the language for you). If your page displays in swedish, you should be fine...

GauGau

pero

Great with the workaround - thanks alot!
(a peculiar thing is that after doing what hyperion did (.../index.php?lang=swedish), when I opened the config page, the language was set to Swedish...)

Tried changing from lastup,2 to lastup,3 - this works.
Tried enabling debug mode - works.

After taking two deep breaths and thinking a bit, I got this feeling of deja vu. At work, we've had somewhat similar things happening, and reading gaugau's last post regarding resetting the cookie, I got really suspicious.

Tried removing all cookies in my browser and whoosh - the problem went away! (at least from what I can see now - I will test this more thorough and let you know if something turns up).
So, it seems as if this was a cookie related issue. Don't know if it is something that needs further digging or analysis.

Casper

it may have been a browser thing, with your browser not refreshing.

Anyway, glad it's working for you now.  :wink:
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here