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

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

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 2 Guests 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.