2016-12-16 53 views
1

如何用語言更改'Next'?有可能的?Inno Setup - 如何本地化Pascal腳本中的字符串?

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; 

回答

1

要本地化的Pascal腳本一個字符串,在語言文件中定義一個custom message

[CustomMessages] 
NextButtonCaption=Next 

,然後使用CustomMessage function功能在你的代碼中使用此自定義消息:

starttimer(
    WizardForm.Handle, WizardForm.NEXTBUTTON.Handle, 
    CustomMessage('NextButtonCaption'), 5) 
相關問題