1
insraqe
About xlanguage hack+module
  • 2004/10/6 11:10

  • insraqe

  • Just popping in

  • Posts: 2

  • Since: 2004/9/19


Must I uninstall the 'language'inside XOOPS before I install the xlanguage modules? And how can I uninstall the 'language'inside XOOPS? Just remove the Dir Language

2
phppp
Re: About xlanguage hack+module
  • 2004/10/6 11:42

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


For the new version, xlanguage v1.0 beta 2, you do not need to uninstall language.
However, xlanguage has all the features that language has.

If you wanna install language, just remove it since it does not use db.

3
danielh2o
Re: About xlanguage hack+module
  • 2004/10/19 23:10

  • danielh2o

  • Just popping in

  • Posts: 47

  • Since: 2004/10/19


I want to use UTF8 to store data, then present it in either BIG5 or GB or UTF8 (user select it on-fly) browser environment...

What is the correct config of xlanguage?
1- Add base language
2- Add extended language

What is the difference of base / extended language?

4
phppp
Re:About xlanguage hack+module
  • 2004/10/20 0:51

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


base languages are the ones that exist in your xoops/languages directory, such as english, french
for Chinese, it could be schinese(simplified chinese), tchinese(traditional chinese) or uchinese(UTF-8 Chinese)
extended languages are the ones that converted from corresponding base language.
For example, I have english and schinese available with my XOOPS hence the base languages are: english, schinese
I would provide simplified chinese, traditional chinese and utf-8 chinese for visitors, so I set extended languages: tchinese, utf8chinese, and the corresponding base language must be schinese from which the extended language characters will be converted.

5
phppp
Re: About xlanguage hack+module
  • 2004/10/20 1:19

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


Quote:

danielh2o wrote:
I want to use UTF8 to store data, then present it in either BIG5 or GB or UTF8 (user select it on-fly) browser environment...

What is the correct config of xlanguage?
1- Add base language
2- Add extended language



1 upload the UTF-8 Chinese pack, and the UTF8FOLDER/global.php need change as following:

//define('_CHARSET', 'UTF-8');
//define('_LANGCODE', 'zh-CN');
define('_CHARSET', isset($xlanguage["charset"])?$xlanguage["charset"]:'UTF-8');
define('_LANGCODE', isset($xlanguage["code"])?$xlanguage["code"]:'zh-CN');


2 add base language, UTF8:
desc: UTF-8 or UTF8; charset: UTF-8; code: zh-CN

3 add extended languages:
schinese: name: schinese; desc: jianti zhongwen; charset: gb2312; code: zh-CN
tchiese: name: tchinese; desc: fanti or zhengti zhongwen; charset: big5; code: zh-TW

demo:https://xoops.org.cn orhttp://dev.xoops.org.cn

6
danielh2o
Re:About xlanguage hack+module
  • 2004/10/20 7:33

  • danielh2o

  • Just popping in

  • Posts: 47

  • Since: 2004/10/19


xoops.org.cn is cool, exactly what i want!
thanks for advice, i got the ideas, will try it soon...

Where can I download XOOPS utf8 chinese pack?

Which charset for xoops.org.cn's data stored in DB, will it depends on user's language selection on-fly?

Must I install 'xconv' too?

7
irmtfan
Re:About xlanguage hack+module
  • 2004/10/20 11:02

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


where can i download this?
is this module stable enough?

8
phppp
Re:About xlanguage hack+module
  • 2004/10/20 11:51

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


@danielh2o:
the 'base' chinese charset of xoops.org.cn is gb2312. and the displayed charset is chosen by users on-fly (actually the xlanguage has a language-auto-detection function which could set the proper language automatically).
You could find a Schinese based UTF-8 pack from xoops.org.cn.
For Chinese users, I suggest to install the xconv module. As stated in the xconv, the php-iconv does not work well for Chinese characters.

@irmtfan:
The 'xlanguage' is still in Beta but it has been used on our sites for months. The reason for not released in RC or Final is that we have not got enough test other than Chinese users.

For English users:
Project@XoopsDev
http://dev.xoops.org/modules/xfmod/project/?xlanguage
http://dev.xoops.org/modules/xfmod/project/?xconv

For Chinese users, it might be better:
Xoops Chinahttps://xoops.org.cn

9
danielh2o
Re:About xlanguage hack+module
  • 2004/10/20 13:37

  • danielh2o

  • Just popping in

  • Posts: 47

  • Since: 2004/10/19


unexpected characters displayed when user switch language to schinese or tchinese or english...
i.e.
user selected schinese: can see only those GB-stored chinese-data correctly
user selected tchinese: can see only those BIG5-stored chinese-data correctly

how to solve?

and what is the usage of "weight" in xlanguage?

10
danielh2o
Re:About xlanguage hack+module
  • 2004/10/20 21:18

  • danielh2o

  • Just popping in

  • Posts: 47

  • Since: 2004/10/19


After install xconv and xlanguage, I tried some testing by adding base and extended language... especially when i add extended language schinese(gb) based on tchinese(utf8), the website cannot display anything , when i open debug mode, it has belows error messages...

Even after I have to delete all xlanguage's DB records, the problem still exist, cannot display anything, what's problem, pls help??

Notice: Undefined offset: 35264 in /www/modules/xconv/class/chinese.php on line 107
Notice: Undefined offset: 24115 in /www/modules/xconv/class/chinese.php on line 107
Notice: Undefined offset: 34399 in /www/modules/xconv/class/chinese.php on line 107
...
...
...
Notice: Undefined property: SourceText in www/modules/xconv/class/chinese.php on line 98
Notice: Undefined offset: 1152 in /www/modules/xconv/class/chinese.php on line 99
Notice: Undefined property: SourceText in /www/modules/xconv/class/chinese.php on line 98
Notice: Undefined offset: 192 in /www/modules/xconv/class/chinese.php on line 99
Notice: Undefined property: SourceText in /www/modules/xconv/class/chinese.php on line 98
Notice: Undefined offset: 1472 in /www/modules/xconv/class/chinese.php on line 99
Notice: Undefined offset: 39080 in /www/modules/xconv/class/chinese.php on line 107
Notice: Undefined offset: 34899 in /www/modules/xconv/class/chinese.php on line 107
...
....
...
...

Login

Who's Online

140 user(s) are online (101 user(s) are browsing Support Forums)


Members: 0


Guests: 140


more...

Donat-O-Meter

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

Latest GitHub Commits