如何翻译Inno安装中MsgBox中包含的文本



我有一个[代码]部分包含在我的inno设置脚本,其中显示一些信息的用户在安装期间。我希望能够翻译这些在同一语言的用户在安装期间选择。他们的文本目前是英语的,例如想把它翻译成俄语,等等。我知道我得在语言上做点什么。isl文件。下面是这样一个文本的例子:

if MsgBox('Previous program found. It is recommendeded to uninstall it and install a fresh program. Please note that your data will not be deleted during the uninstallation. Do you want to continue?', mbConfirmation, MB_YESNO) = IDYES then
      begin etc
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "polish"; MessagesFile: "compiler:LanguagesPolish.isl"
Name: "german"; MessagesFile: "compiler:LanguagesGerman.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;

相关内容

  • 没有找到相关文章

最新更新