Problems with charset and languages Problems with charset and languages
 

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

Problems with charset and languages

Started by modelsfree, March 25, 2004, 06:56:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

modelsfree

Hi,
i have a problem related the charset and the language of my CPG.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{lang_dir}">
<head>
<title>ModelsFree - Benvenuto !</title>
<meta http-equiv="content-type" content="text/html; charset={charset}" />

This is the partial source of my index.php viewed in the browser. I have discovered this problem why I can't change the language of my CPG. In the admin pannel, under configuration, I have setted the english language but the pages are still in italian (in the database the default language is changed to english). Why the script don't change {lang_dir} and {charset} with the right values?

Can someone help me?

Tnx in advance
I'm sorry for my english... my italian is better!

Joachim Müller

this is a known bug in the cpg1.2.1 version of the hardwired theme. Change<html dir="{lang_dir}">to<html dir="{LANG_DIR}">and<meta http-equiv="content-type" content="text/html; charset={charset}" />to<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />Case does matter (in this case :wink: ).

GauGau

modelsfree

Thank you Gau Gau,
the HTML is now ok but I can't change the language of my CPG... i set to english but the pages are still in italian.
I'm sorry for my english... my italian is better!

Nibbler


Casper

Try forcing it by typing the url like this, ..../coppermine/index.hp?lang=english
If that works, it was a cookie thing.  If you delete the cookie on your browser, you will then get what is set in config.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Avirex

Hey every body. I have the same problem with language and charset. Take a look at my gallery http://ice-cool.jino-net.ru/gallery/
I try to change a few things just like GauGau posted. I try to change Language and charset in gonfig, but it doesen't work. I try to delete cookies, doesen't work either. I have no idea what to do, can some one help me?

Nibbler

This is the 1.2 support board. Locking.