1
hrac
Easiest Multi-Language Hack doesn't change codepage
  • 2008/1/20 14:28

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


Hello,

I'm using Easiest Multi-Language Hack but I noticed that EMLH doesn't change codepage. It works as for [lang][/lang] tags and changes XOOPS language but does not work for codepage and lang setting in HTML file generated by xoops.

Is there any solution for that?

2
irmtfan
Re: Easiest Multi-Language Hack doesn't change codepage
  • 2008/1/20 15:23

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


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.

3
hrac
Re: Easiest Multi-Language Hack doesn't change codepage
  • 2008/1/20 16:27

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


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?

4
stefan88
Re: Easiest Multi-Language Hack doesn't change codepage
  • 2008/1/20 16:51

  • stefan88

  • Community Support Member

  • Posts: 1086

  • Since: 2004/9/20


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:


with something like:


Quote:

[language1][/language1].
[language2][/language2]


in your theme?
..

5
hrac
Re: Easiest Multi-Language Hack doesn't change codepage
  • 2008/1/20 18:25

  • hrac

  • Quite a regular

  • Posts: 305

  • Since: 2002/7/15


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

I can see




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



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

Any idea?

6
irmtfan
Re: Easiest Multi-Language Hack doesn't change codepage
  • 2008/1/21 3:05

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


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

Login

Who's Online

346 user(s) are online (261 user(s) are browsing Support Forums)


Members: 0


Guests: 346


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits