forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 language => Topic started by: coderoyal on June 20, 2010, 04:03:39 pm

Title: Add Chinese Simplified Language into Database
Post by: coderoyal on June 20, 2010, 04:03:39 pm
Hi,

I've just upgraded to 1.5.6 from 1.4.25 and I'm running into one problem. I'm trying to enable the Chinese Simplified language and eventually make it the default language on my gallery. When I go to the language manager, I find the language "chinese_gb" and I pick the China flag for it, then place the checkbox to enable it, and click OK at the bottom.

There's no errors or anything, but the changes are not saved.

I read the documentation and it says that when a + symbol is next to a language file, it means the file is there, but not in the database and to "Submit the form to create a record in the database as well." (I'm assuming clicking OK is the form submission step.)

Basically, after choosing Chinese Simplified, and submitting the form by click OK, no changes are saved. The language is listed as an option again, but it's still not enabled.

I turned off my theme and switched to a new theme that comes with 1.5 just in case the issue is with my theme, but the issue still exists. My gallery is at http://www.denglinlin.com/gallery . PHP version is 5.3.1

Can anyone help?
Title: Re: Add Chinese Simplified Language into Database
Post by: coderoyal on June 20, 2010, 04:33:35 pm
I ended up making it work by manually entering a record for the chinese language into the MySQL database for the Coppermine Gallery and it is working now for visitors. I'm not sure if there will be any possible side effects to it, but it looks like it is working now.
Title: Re: Add Chinese Simplified Language into Database
Post by: Joachim Müller on June 21, 2010, 12:44:35 pm
Your language preferences probably where overriding the default - after all, the default only applies if all other mechanisms fail - the default means save fallback in this aspect. To force the usage of chinese, you could have added the parameter to the URL like this: http://www.denglinlin.com/gallery/?lang=chinese_gb

Please read up the details in the docs before asking questions, i.e. http://documentation.coppermine-gallery.net/en/languages.htm#how