support foreign language
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
support foreign language
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 .
-
- Posts: 454
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
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
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
-
- Posts: 334
- Joined: Fri Oct 14, 2005 1:54 pm
-
- Posts: 454
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China