I CAN'T CHANGE LANGUAGE I CAN'T CHANGE LANGUAGE
 

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

I CAN'T CHANGE LANGUAGE

Started by chican, May 12, 2006, 12:14:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chican

I CAN'T TO CHANGE THE LANGUAGE FROM THE GALLERY TO SPANISH.

Paver

You need to provide more details.  Have you already installed Coppermine?  What version?  Are you trying to change it in the configuration panel?

Please provide a link to your site.

chican

cpg1.4.5
www.villachicanos.co.nr/galeria

Paver

Ok.  If I go to http://www.villachicanos.co.nr/galeria?lang=spanish, I see your site in Spanish.

So do you want the site to always be in Spanish?  Or do you want users to be able to choose the language?

On the administrator CONFIG panel, look under "Language & Charset settings".  The language you choose there is the site's main language.  For "Display language list", you can set whether your users can choose the language.

This is all in the Coppermine documentation which is also on your admin toolbar on your site, or you can go to the link at the top of this page.

chican

i  always be in Spanish but when i change in the configuration panel stay in english.

Paver

When you change a config panel setting, you have to click on the button "Save New Configuration" which is at the bottom of the panel.  I sometimes forget to click it, maybe you forgot?

chican

#6
yes.I save it

mickeybyte

Hey,

I just encountered same problem. I change language to Dutch, but it doesn't save it (even though I click Save Settings!), always comes back in English

however, calling the page with ?lang=dutch after it, shows the page in dutch, if I then go to settings, it says dutch, and since then it's in dutch.

maybe you can try this?

Greetz,
MickeyByte

Paver

Weird.  Do any other settings "save"?  In particular, does the theme "save"?  (The theme has a ?theme= GET parameter as well.)

mickeybyte

yes, theme saves correctly.

I think by putting the ?lang=dutch explicitly in the URL, it reset the language. Can it be it automatically takes it from the language settings in Windows/Browser?

Tranz

Quote from: mickeybyte on May 23, 2006, 05:23:05 PMCan it be it automatically takes it from the language settings in Windows/Browser?

Yes.

Joachim Müller


adnan

I have  same problem too !
I haven't this problem in cgp 1.4.5 but in your new version 1.4.6 , I can't change langauage !
I changed to persian language in config panel and save it. but when I refresh my page , it back to defualt language ( english) .

what's problem ?

Paver

Hmm... I can confirm the issue people are reporting.  I don't know enough about the language auto-detect and other code to say whether this is "as designed" or not.

Changing the language in the Config panel *does* change it in the database.  However, if your $USER['lang'] is set, the config panel ignores the configuration setting in the database and shows the $USER['lang'] setting instead.  This doesn't make sense to me since the configuration panel should show you the configuration table entries.  Yes, the user can set something different, but shouldn't the config panel show you the config settings?

Granted I haven't used the language features hardly at all, but it seems to me that it's very difficult to unset that $USER['lang'] setting.  Clearing cookies does not do so.  $USER['lang'] is set to "english" the very first time I come to the site, so the config setting is never used.  Using the ?lang= GET parameter does change the USER setting, and using the dropdown language box also does so.  I could not find any case where the USER setting was *not* set to something.

I don't know if this is different from previous versions and I have only looked briefly at the code so I don't know if this USER setting is "by design" or not.  Regardless, it seems to me that the first time a user comes to a site, the config setting should be used.