|
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3206 is a reply to message #3204] |
Fri, 14 June 2002 03:49 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Yeah, we'll need to make some modifications to the search engine code and possibly other code to ensure proper support for multibyte languages such as Chinese.
Also, which version of php are you using?
FUDforum Core Developer
|
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3210 is a reply to message #3209] |
Fri, 14 June 2002 04:12 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Unfortunately, I do not know Chinese, so I will trust your judgment on the translation. Keep in mind, that if there are any errors they can always be corrected in the future.
In my previous message I forgot to list the button names, so here they are now:
www
profile
delete
edit
email
forward
pm (short for private message)
quote
reply
flat view
new p.message (short for new private message)
new thread
post reply
tree view
posts
FUDforum Core Developer
|
|
|
Re: How to use Chinese on FUDforum? [message #3211 is a reply to message #3210] |
Fri, 14 June 2002 04:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I got more questions, I hope you do not mind.
Do you know what locale on linux needs to be exported for proper Chinese language support?
FUDforum Core Developer
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3213 is a reply to message #3212] |
Fri, 14 June 2002 04:27 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
If you are just editing the msg file, you do not need to change the language. Simply re-compiling the forum will apply the new translations.
If you want the charset to be set properly, you need to modify the JavaScript source inside the admlangsel.php, which determines locale based on the language.
FUDforum Core Developer
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3215 is a reply to message #3214] |
Fri, 14 June 2002 04:33 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Sounds like a lot of trouble.
On your server could you run 'locale' utility and tell me what it outputs. The reason I need to knows this is because if a proper locale is exported PHP will not remove special characters needed in Chinese.
FUDforum Core Developer
|
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3219 is a reply to message #3209] |
Fri, 14 June 2002 04:44 |
|
xjoywag wrote on Fri, 14 June 2002 12:05 |
ezdb wrote on Fri, 14 June 2002 10:24 | 2.0
chinese
|
I have read your Chinese msg file. For I am translating it I have some different idea to some words when translate it to Chinese. Do you wnat read it when I finished it? Thank you for your help.
|
shi de ,na ge wen jian mei you fan yi hao ,ru guo ni wan cheng le keyi geiwo yigen ma ? xie xie:) fud2 de sou suo hen te shu ,ta shi ba yong hu tijiao de wen zhang an kong ge chai fen cheng yi ge ge de dan ci ,zai bao chun dao fud2_search biao zhong,er qie yong le zhe yang de dai ma :$subj = preg_replace('/[^A-Za-z0-9 ]+/si', ' ', $subj); zhe yang jiu ba zhong wen pai chu zai wai le ,bi xu gai diao !!! dang ran you xie biao de jie gou ye de gai le:((
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3222 is a reply to message #3219] |
Fri, 14 June 2002 05:12 |
xjoywag
Messages: 9 Registered: June 2002
Karma: 0
|
Junior Member |
|
|
ezdb wrote on Fri, 14 June 2002 12:44 |
xjoywag wrote on Fri, 14 June 2002 12:05 |
ezdb wrote on Fri, 14 June 2002 10:24 | 2.0
chinese
|
I have read your Chinese msg file. For I am translating it I have some different idea to some words when translate it to Chinese. Do you wnat read it when I finished it? Thank you for your help.
|
shi de ,na ge wen jian mei you fan yi hao ,ru guo ni wan cheng le keyi geiwo yigen ma ? xie xie:) fud2 de sou suo hen te shu ,ta shi ba yong hu tijiao de wen zhang an kong ge chai fen cheng yi ge ge de dan ci ,zai bao chun dao fud2_search biao zhong,er qie yong le zhe yang de dai ma :$subj = preg_replace('/[^A-Za-z0-9 ]+/si', ' ', $subj); zhe yang jiu ba zhong wen pai chu zai wai le ,bi xu gai diao !!! dang ran you xie biao de jie gou ye de gai le:((
|
I get it only sevral days. I am busily to translate it msg so not notice your said, let me try it first.Thanks for your remind.
|
|
|
Re: How to use Chinese on FUDforum? [message #3239 is a reply to message #3204] |
Fri, 14 June 2002 17:48 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
ezdb wrote on Thu, 13 June 2002 22:32 | fudforum does not support chinese search, you must change some code to fit it !
|
Already done in CVS.
The next version of the forum will allow users to search text written in multibyte languages such as chinese.
FUDforum Core Developer
|
|
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3335 is a reply to message #3310] |
Tue, 18 June 2002 01:13 |
|
prottoss wrote on Mon, 17 June 2002 23:04 | Why are % needed around the word? When I tested the search it seems to have worked fine for me.
|
i know it will be work fine when you use english
when you write chinese like this
we presume the follow words are chinese
it have not blank in words
WhenItestedthesearchit
seemstohaveworkedfineforme
so the key word insert into fud_search will be like
1 WhenItestedthesearchit
2 seemstohaveworkedfineforme
eg: to search work
select * from fud_search where keyword like 'work'
will not work
so must use
select * from fud_search where key word like '%work%'
when use english:
When I tested the search
the key word insert into fud_search will be like
1 when
2 i
3 tested
......
so
select * from fud_search where keyword like 'when'
will be word well
|
|
|
|
|
|
|
Re: How to use Chinese on FUDforum? [message #3356 is a reply to message #3353] |
Wed, 19 June 2002 02:43 |
|
you know,it's impossible for us to distinguish the "words" in the Chinese text.Because sometimes one Chinese word maybe has 4 characters or 3 characters ,or one character,or 7 characters......;
Sometimes if a Chinese word which has exact meaning has 4 characters, the two of the characters maybe have different meaning,or the three of the characters maybe have other meaning.
You can look up the image I have uploaded.
-
Attachment: aaa.gif
(Size: 26.35KB, Downloaded 832 times)
-
Attachment: aaa.gif
(Size: 26.35KB, Downloaded 919 times)
-
Attachment: aaa.gif
(Size: 10.69KB, Downloaded 871 times)
[Updated on: Wed, 19 June 2002 03:27] Report message to a moderator
|
|
|
»Ø¸´£ºRe: How to use Chinese on FUDforum? [message #3357 is a reply to message #3356] |
Wed, 19 June 2002 02:52 |
hackie
Messages: 177 Registered: January 2002
Karma: 0
|
Senior Member Core Developer |
|
|
ezdb ÒýÓÃ ¶þ, 18 ÁùÔÂ 2002 22:43 | you know,it's impossible for us to distinguish the "words" in the Chinese text.Because sometimes one Chinese word maybe has 4 characters or 3 characters ,or one character,or 7 characters......;
Sometimes if a Chinese word which has exact meaning has 4 characters, the two of the characters maybe have different meaning,or the three of the characters maybe have other meaning.
You can look up the image I have uploaded.
|
Hmm... the problem is that we want to make the Chinese search fast , our English search (and any other phonetic langs with easily distinguishable words) is quite fast, we'd prefer that our Chinese search is also fast, however using %like% in a query will not be fast ...
cc intelligence.c -o intelligence
$ ./intelligence
Segmentation fault
|
|
|
|