support foreign language

support foreign language

Postby Ehab Samir Aziz » Mon Feb 06, 2006 7:11 pm

Can I write my gets/reads,says in foreign langauge ? in VB I can write Arabic for example for text and variables got from screen .
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby ShumingWang » Sat Feb 18, 2006 4:22 am

create table lang1.dbf:
clang1 c ,20
clang2 c,20
clang3 c,20
,...

index on clang1 to lang1


function main()

public nlang:=1


@1,1 get nlang of odlg

if nalng>1

use lang1 new
end

.....

rturn


All classes which include ccation like dialog,get,say,folder,checkbox,browse,..., about 10 classes modify like:

if nlang>1
select lang1
seek ::ccaption
if found()
::ccaption:=lang1->(fieldget(nlang))
end
end


Source prgs even not need modify , you can get your app support multi lang .

Best Regards!

Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China

Postby Ehab Samir Aziz » Sat Feb 18, 2006 8:46 am

I need to ask a primitive question :
What will be the contents of lang1.dbf ?
Ehab Samir Aziz
 
Posts: 334
Joined: Fri Oct 14, 2005 1:54 pm

Postby ShumingWang » Sun Feb 19, 2006 5:59 am

first field clang1 c ,20 as native language (original in source prg ) ted,others like clang2 as second foreign languange,... .

clang1 , clang2

not found , 没有发现 , ...
itemid , 编号 ,...
can't open , 打不开,...
date , 日期


regards
Shuming Wang
ShumingWang
 
Posts: 465
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 77 guests