coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: pero on February 07, 2004, 12:30:49 AM

Title: Cannot change language in config page
Post by: pero on February 07, 2004, 12:30:49 AM
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?
Title: Cannot change language in config page
Post by: Casper on February 07, 2004, 12:47:13 AM
Did you actually upload the other language files?

Did you remember to hit the apply modifications button at the bottom of the page?
Title: Cannot change language in config page
Post by: pero on February 07, 2004, 01:20:50 AM
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...
Title: Cannot change language in config page
Post by: hyperion on February 07, 2004, 01:34:22 AM
Can you provide a link?
Title: Cannot change language in config page
Post by: pero on February 07, 2004, 01:42:40 AM
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...
Title: Cannot change language in config page
Post by: hyperion on February 07, 2004, 01:59:16 AM
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?
Title: Cannot change language in config page
Post by: Casper on February 07, 2004, 10:01:51 AM
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?
Title: Cannot change language in config page
Post by: Joachim Müller on February 07, 2004, 11:25:49 AM
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
Title: Cannot change language in config page
Post by: pero on February 08, 2004, 12:07:03 AM
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.
Title: Cannot change language in config page
Post by: Casper on February 08, 2004, 12:14:22 AM
it may have been a browser thing, with your browser not refreshing.

Anyway, glad it's working for you now.  :wink: