How to Translate texts contained in MsgBox in Inno Setup?

前端 未结 1 392
傲寒
傲寒 2021-01-21 21:46

I have got a [code] section contained within my inno setup script which displays some information for the user during install. I would like to be able to translate these in the

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-21 21:56

    [Languages]
    Name: "english"; MessagesFile: "compiler:Default.isl"
    Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
    Name: "german"; MessagesFile: "compiler:Languages\German.isl"
    
    [CustomMessages]
    CustomMessage=Undefined //just in case (should be equal to English)
    english.CustomMessage=English Selected
    german.CustomMessage=German Selected
    polish.CustomMessage=Polish Selected
    
    [Code]
    function InitializeSetup: Boolean;
    begin
      Result := True;  
      MsgBox(ExpandConstant('{cm:CustomMessage}'), mbInformation, MB_OK);
    end;
    

    0 讨论(0)
提交回复
热议问题