Using coppermine's language file on the rest of the site Using coppermine's language file on the rest of the site
 

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]

Main Menu

Using coppermine's language file on the rest of the site

Started by jkyndt, March 23, 2006, 08:45:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jkyndt

Hi
I am creating a multilingual site and will be using Coppermine.
My current site uses a simple php script to determine which language to use depending on the browser and then which language file to use in the main pages of the site.
Unfortunately it would seem I cannot run my script from the Coppermine theme template.
I was therefore wondering if I could not do it the other way round and integrate the coppermine language files in the rest of my pages. If this is possible what would be the steps necessary?

Thanks for any help
James

Joachim Müller

use utf-8 encoding for coppermine, because that's exactly what utf-8 does: it determines what language the browser is set to and displays coppermine controls in the language the user has set up.

jkyndt

Thanks GauGau
So its possible to include the language file in other php files outside of the coppermine ones?
Thanks again

Joachim Müller

That's not what I said, but you're of course free to have something like <?php include('foo/bar/lang/english.php'); ?>somewhere else on your site. Not sure what good this will do. As far as I understood your question was the other way round: I assumed that your site already is multilingual with an auto-selector based on browser language, and that you were asking if coppermine is capable to do the same thing.