读书人

多国语言包有关问题

发布时间: 2012-03-17 19:06:27 作者: rapoo

多国语言包问题
怎样才能把TLMPack控件试用时的试用信息提示去掉呀!!!除此之外,还有什么工具能做多国语言包呀!!!

[解决办法]
unit rsUnit;

interface
uses Windows;

type
STRINGARRAY = array [0..10000] of string;
const
STRING_COUNT = 9;
cnstrings: array [0..STRING_COUNT] of string =
(
'网卡管理 ',//0
'请选择同步专家服务端要使用的网卡 ',//1
'子网掩码: ',//2
'确定 ',//3
'取消 ',//4
'添加 > > ',//5
'WinSock32 初始化失败! ',//6
'警告 ',//7
'删除 < < ',//8
'请注意: 组播协议不支持多子网同步! '//9
);
twstrings: array [0..STRING_COUNT] of string =
(
'呼d恨 ',//0
'叫匡拒P叭狠ㄏノ汉籁d ',//1
'l呼被: ',//2
' ',//3
' ',//4
'[ > > ',//5
'WinSock32 飑lてア毖! ',//6
'牡i ',//7
'R埃 < < ',//8
'叫: 舱冀某ぃやhl呼PI '//9
);
enstrings: array [0..STRING_COUNT] of string =
(
'Lan Cards ',//0
'Check ethernet card(s) for Sync Expert ',//1
'Net Mask: ',//2
'&OK ',//3
'&Cancel ',//4
'&Add > > ',//5
'Failed to initialize WinSock32! ',//6
'Warning ',//7
'Delete < < ',//8
'Note: Multicast protocal not support multi-subnet! '
);
var
faces: ^STRINGARRAY;
facefont: string;

procedure InitLanguage();
procedure SetAllInterface();

implementation

uses NSetU;

procedure InitLanguage();
begin
case GetOEMCP() of
936:
begin
faces := @cnstrings;
facefont := '宋体 ';
end;
950:
begin
faces := @twstrings;
facefont := '灿砰 '
end;
else
begin
faces := @enstrings;
facefont := 'MS Sans Serif ';
end;
end;
end;

procedure SetAllInterface();
begin {}
nsForm.SetInterface();
end;

end.

读书人网 >.NET

热点推荐