FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » How to use Chinese on FUDforum?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  How to use Chinese on FUDforum? [message #3179] Thu, 13 June 2002 06:03 Go to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
I come from Chinese. I download this forum yesterday, but I can't make it into a Chinese license. How do I do?
Re: How to use Chinese on FUDforum? [message #3182 is a reply to message #3179] Thu, 13 June 2002 11:41 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, you need to create a chinese translation, if you want the forum to appear in chinese. The instructions on how to do it can be found here:
http://fud.prohost.org/forum/msg.php?th=546


FUDforum Core Developer
icon7.gif  Re: How to use Chinese on FUDforum? [message #3202 is a reply to message #3179] Fri, 14 June 2002 01:55 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
Thanks Mr Prottoss.I'll do it immediately.
Re: How to use Chinese on FUDforum? [message #3203 is a reply to message #3202] Fri, 14 June 2002 02:24 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

2.0
chinese
  • Attachment: chinese.zip
    (Size: 14.43KB, Downloaded 1139 times)
Re: How to use Chinese on FUDforum? [message #3204 is a reply to message #3203] Fri, 14 June 2002 02:32 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

fudforum does not support chinese search, you must change some code to fit it !
Re: How to use Chinese on FUDforum? [message #3206 is a reply to message #3204] Fri, 14 June 2002 03:49 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #3208 is a reply to message #3206] Fri, 14 June 2002 03:55 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is 1 more thing, that I need to ask from you.

There are about 10 buttons used by the forum that contain text, on them. Could you please translate the text on the buttons to chinese so that I could make translated buttons for the Chinese translation.

Also, please send me your real name and email/web address via private messages so that I can give you credit for you excellent work on the translation Smile


FUDforum Core Developer
icon7.gif  Re: How to use Chinese on FUDforum? [message #3209 is a reply to message #3203] Fri, 14 June 2002 04:05 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
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.
Re: How to use Chinese on FUDforum? [message #3210 is a reply to message #3209] Fri, 14 June 2002 04:12 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #3212 is a reply to message #3204] Fri, 14 June 2002 04:20 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
ezdb wrote on Fri, 14 June 2002 10:32

fudforum does not support chinese search, you must change some code to fit it !

Yeah,I see, I have changed in the /adm/admlangsel.php and set Chinese is default.The trouble I have meet is I must select the language to Chinese it can work with I have translated msg file for it's cookie or session when I check my work! How do you do it?
Re: How to use Chinese on FUDforum? [message #3213 is a reply to message #3212] Fri, 14 June 2002 04:27 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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
icon9.gif  Re: How to use Chinese on FUDforum? [message #3214 is a reply to message #3211] Fri, 14 June 2002 04:31 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
prottoss wrote on Fri, 14 June 2002 12:14

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?

Oh,my God! It's very troublesome for using Chinese on Linux! I use it on X Window if I want use Chinese. So you need a Chinese license Red Hat Linux or a Red Flag Linux, get from www.redflag-linux.com. Now I develop my web on Chinese Windows and unload it to our linux server for debug. Sad
Re: How to use Chinese on FUDforum? [message #3215 is a reply to message #3214] Fri, 14 June 2002 04:33 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #3216 is a reply to message #3213] Fri, 14 June 2002 04:34 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
Oh,thanks.I'll try it. Embarassed
Re: How to use Chinese on FUDforum? [message #3218 is a reply to message #3215] Fri, 14 June 2002 04:44 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
When I locate it to Chinese the outputs is the msg modified, but I must locate it every time when I upload a new msg file.
Re: How to use Chinese on FUDforum? [message #3219 is a reply to message #3209] Fri, 14 June 2002 04:44 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 #3220 is a reply to message #3219] Fri, 14 June 2002 04:48 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
Messages: 9
Registered: June 2002
Karma: 0
Junior Member
Soryy all, I must have my lunch now. I'll go back 20 minutes...

thanks all.
Re: How to use Chinese on FUDforum? [message #3222 is a reply to message #3219] Fri, 14 June 2002 05:12 Go to previous messageGo to next message
xjoywag is currently offline  xjoywag   China
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:((

Sad
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 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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 #3307 is a reply to message #3239] Mon, 17 June 2002 09:07 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

different english and chinese search:

select * from tablename where keyword like '$word'

chinese search:

select * from tablename where keyword like '%$word%'
Re: How to use Chinese on FUDforum? [message #3310 is a reply to message #3307] Mon, 17 June 2002 15:04 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Why are % needed around the word? When I tested the search it seems to have worked fine for me.

FUDforum Core Developer
Re: How to use Chinese on FUDforum? [message #3333 is a reply to message #3310] Tue, 18 June 2002 00:50 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

this just a test Laughing Laughing

汉语 Rolling Eyes 我是中国人 Very Happy
Re: How to use Chinese on FUDforum? [message #3335 is a reply to message #3310] Tue, 18 June 2002 01:13 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 Very Happy

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 #3336 is a reply to message #3335] Tue, 18 June 2002 02:11 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I see, I understand now Smile

Btw, when you have a moment could you please translate the text for the buttons, so that I can add the chinese translation to the CVS, thanks.


FUDforum Core Developer
Re: How to use Chinese on FUDforum? [message #3337 is a reply to message #3336] Tue, 18 June 2002 02:32 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

i am going to do this Very Happy
and i will change some word in msg

Re: How to use Chinese on FUDforum? [message #3342 is a reply to message #3336] Tue, 18 June 2002 08:31 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

prottoss wrote on Tue, 18 June 2002 10:11

I see, I understand now Smile

Btw, when you have a moment could you please translate the text for the buttons, so that I can add the chinese translation to the CVS, thanks.

  • Attachment: chinese.zip
    (Size: 35.33KB, Downloaded 878 times)

[Updated on: Tue, 18 June 2002 09:07]

Report message to a moderator

Re: How to use Chinese on FUDforum? [message #3353 is a reply to message #3179] Tue, 18 June 2002 21:14 Go to previous messageGo to next message
hackie is currently offline  hackie   Canada
Messages: 177
Registered: January 2002
Karma: 0
Senior Member
Core Developer

Is there any way for us to tell "words" in chinese text?

Like every character is a word? or what...?

We do want the engine to be able to index chinese properly.. using %like% will slow our relativly fast search a lot, which sucks.


cc intelligence.c -o intelligence
$ ./intelligence
Segmentation fault
Re: How to use Chinese on FUDforum? [message #3356 is a reply to message #3353] Wed, 19 June 2002 02:43 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

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 921 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 Go to previous messageGo to next message
hackie is currently offline  hackie   Canada
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 Sad...


cc intelligence.c -o intelligence
$ ./intelligence
Segmentation fault
Re: »Ø¸´£ºRe: How to use Chinese on FUDforum? [message #3358 is a reply to message #3357] Wed, 19 June 2002 03:15 Go to previous message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

yes,i agree with you:)
it is a pity if we did the Chinese search and infect the speed of search
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Groups
Next Topic: Question about displaying user details
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 10:12:22 GMT 2024

Total time taken to generate the page: 0.02527 seconds