Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
5 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Easiest Multi-Language Hack doesn't change codepage
by irmtfan on 2008/1/21 3:05:37

No dont mess your site.
you have some options:
1- use xlanguage from phppp (i recommended)
2- use a hacked version of emlh that allowed change XOOPS lang.
http://www.irxoops.org/modules/wfdownloads/singlefile.php?cid=4&lid=217
Re: Easiest Multi-Language Hack doesn't change codepage
by hrac on 2008/1/20 18:25:12

Thanks for help. This seems to be worked. Bu there is another strange problem:

I can see

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-9" />
<meta http-equiv="content-language" content="tr" />

But very strangely, Firefox and Internet Explorer was set the codepage to ISO-8859-1, which is Xoops' default language's charset.

I don't understand how this happens.

I have a web page. I open the page source. I noticed that charset and language is correct in the page source, but browser's charset or codepage set to different codepage. I don't understand how this could be.

Another point: I get one blank line in page source just before

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

But there is no line break in theme.html file.

Any idea?
Re: Easiest Multi-Language Hack doesn't change codepage
by stefan88 on 2008/1/20 16:51:34

Hi,

I'm not familiar with EMLH and not using it, but if

Quote:
but it change anything between [lang][/lang] even in the php/html code pages.



then can't you just replace:

Quote:
<meta http-equiv="content-language" content="<{$xoops_langcode}>" />


with something like:


Quote:

[language1]<meta http-equiv="content-language" content="LANUAGECODE1" />[/language1].
[language2]<meta http-equiv="content-language" content="LANUAGECODE2" />[/language2]


in your theme?
Re: Easiest Multi-Language Hack doesn't change codepage
by hrac on 2008/1/20 16:27:42

but I have 3 different languages and all of them uses different code pages (lang1: ISO-8859-1, lang2: ISO-8859-9 and lang3: UTF-8). If EMLH doesn't change code pages correctly, my pages will not shown correctly :(

If lang3 shown with codepage ISO-8859-1 it displays rubbish letters, but it was supposed to be display Armenian letters.

The only thing I need from EMLH, to be able to change codepage (_CHARSET and _LANGCODE) of the pages.

Is it any way to do this?
Re: Easiest Multi-Language Hack doesn't change codepage
by irmtfan on 2008/1/20 15:23:47

i cant understand you.
EMLH just cant change XOOPS language.Gijoe decided to not add this feature because by adding that feature the XOOPS cache system is not work either.
but it change anything between [lang][/lang] even in the php/html code pages.

Who's Online

186 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 186


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits