Inno Setup - 如何在 Pascal 脚本中本地化字符串?
Inno Setup - How to localize a string in Pascal Script?
如何用语言更改'Next'
?有可能吗?
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = iscustompage1.id then
starttimer(WizardForm.Handle,WizardForm.NEXTBUTTON.Handle,'Next',5)
else
if (CurPageID = wpWelcome) or (CurPageID = wpSelectDir) then
begin
stoptimer();
end;
end;
要为 Pascal Script 本地化字符串,请在语言文件中定义 custom message:
[CustomMessages]
NextButtonCaption=Next
然后在您的代码中使用 CustomMessage
function 函数使用此自定义消息:
starttimer(
WizardForm.Handle, WizardForm.NEXTBUTTON.Handle,
CustomMessage('NextButtonCaption'), 5)
如何用语言更改'Next'
?有可能吗?
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = iscustompage1.id then
starttimer(WizardForm.Handle,WizardForm.NEXTBUTTON.Handle,'Next',5)
else
if (CurPageID = wpWelcome) or (CurPageID = wpSelectDir) then
begin
stoptimer();
end;
end;
要为 Pascal Script 本地化字符串,请在语言文件中定义 custom message:
[CustomMessages]
NextButtonCaption=Next
然后在您的代码中使用 CustomMessage
function 函数使用此自定义消息:
starttimer(
WizardForm.Handle, WizardForm.NEXTBUTTON.Handle,
CustomMessage('NextButtonCaption'), 5)