Die*_*elo 3 message programming-languages inno-setup
我有这个问题...我做了一个个人消息箱...我用非常有趣的方式英语和西班牙语...但我希望我的安装程序只显示一种语言......就像...当我选择在菜单选择器西班牙语...在该消息框中显示西班牙语...如果在菜单选择器中选择意大利语...让该消息框显示itallian.
[code]
function NextButtonClick1(PageId: Integer): Boolean;
begin
Result := True;
if (PageId = wpSelectDir) and not FileExists(ExpandConstant('{app}\xxx.exe')) then begin
MsgBox('"Thi App" does not seem to be installed in that folder. Please select the correct folder. [Selecciona la Carpeta de Instalación de la Aplicación]', mbError, MB_OK);
Result := False;
exit;
end;
end;
Run Code Online (Sandbox Code Playgroud)
使用该[CustomMessages]部分并在其中添加消息名称前缀以及语言的内部名称,如以下脚本所示:
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
OutputDir=userdocs:Inno Setup Examples Output
[Languages]
Name: en; MessagesFile: "compiler:Default.isl"
Name: es; MessagesFile: "compiler:Languages\Spanish.isl"
[CustomMessages]
en.AppCheckError=Select the application folder!
es.AppCheckError=Selecciona la Carpeta de Instalación de la Aplicación!
[Code]
procedure InitializeWizard;
begin
MsgBox(ExpandConstant('{cm:AppCheckError}'), mbInformation, MB_OK);
end;
Run Code Online (Sandbox Code Playgroud)