if (!file_exists("modules/coppermine/lang/{$USER['lang']}.php")) {
if (!file_exists("modules/coppermine/lang/{$CONFIG['lang']}.php")) {
$CONFIG['lang'] = 'english';
}
} else {
$CONFIG['lang'] = $USER['lang'];
}
include "modules/coppermine/lang/{$CONFIG['lang']}.php";
// load the main template
load_template();
?>
Anyone knows better way to handle it please let me know.
checksum Sergeant
Joined: Apr 30, 2003
Posts: 122
Posted:
Sun Oct 12, 2003 2:55 am
Good Job!
Works for me.
sengsara Support Staff
Joined: Sep 18, 2003
Posts: 289
Location: Batam, Indonesia (an hour boat ride from Singapore) ;)
Posted:
Sun Oct 12, 2003 7:39 pm
I heard it'll be included in the next release of Coppermine PHPNuke Port.
_________________ The Answer Get it now.
Batam Web Network Most likely the content of this site is not for you...
polat Nuke Cadet
Joined: Jan 02, 2005
Posts: 3
Posted:
Sun Jan 02, 2005 4:38 am
hi all
I've been seeking for a solution but cannot find yet. I've read all forums and solutions. Here is my problem.
When I set the charset to iso-8859-9 in my PHPnuke 7.6 site, it works fine. But when I enter the module coppermine it changes to the utf-8 character encoding.
Here what I've done to prevent this error:
1- checked apache config file -> AddDefaultCharset ISO-8859-9
2- checked php.ini file -> default_charset = "iso-8859-9"
3- set coppermine to the turkish language file via config menu
4- set character encoding to turkish (iso-8859-9)
5- change every utf-8 string in the files of the coppermine directory
6- delete every cookies
7- Fresh install
But nothing changes.
Any idea?
polat Nuke Cadet
Joined: Jan 02, 2005
Posts: 3
Posted:
Sun Jan 02, 2005 5:05 am
I found the problem, it is the turkish.php file. When i trry to edit and save this file. It changes to utf-8 when ireplace the original file with the modified one it works fine. But it does not solve my problem. I need to edit the file but when i try to add even though a space char to the file, it changes to utf-8. I'm using windows xp. Any idea?
polat Nuke Cadet
Joined: Jan 02, 2005
Posts: 3
Posted:
Sun Jan 02, 2005 5:17 am
Hi, I've solved the problem.
Here it is : open the turkish.php via ultraedit (my favorite editor). Select From file/conversions/unicode to ASCII. It converts the file from unix version to windows (As i understand). Then Edit the file.
My best regards.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum