Inno Setup - How to localize a string in Pascal Sc

2019-02-16 00:06发布

How to change the 'Next' with a language? It is possible?

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;

标签: inno-setup
1条回答
Summer. ? 凉城
2楼-- · 2019-02-16 00:34

To localize a string for Pascal Script, define a custom message in the language file:

[CustomMessages]
NextButtonCaption=Next

And then use this custom message using the CustomMessage function function in your code:

starttimer(
  WizardForm.Handle, WizardForm.NEXTBUTTON.Handle, 
  CustomMessage('NextButtonCaption'), 5)
查看更多
登录 后发表回答