英文:
Word wrapping in standard texts in Inno Setup
问题
我注意到一些语言,如英语和法语,在标准文本(欢迎屏幕等)中有自动换行,而一些使用西里尔字母的语言似乎没有。是否可以为这些语言启用自动换行,或者这是一个未实现的功能?
更新:对于上面的屏幕截图,我使用了向导创建的默认脚本。屏幕分辨率为2560x1440,缩放比例为150%。以下是代码:
#define MyAppName "我的程序"
#define MyAppVersion "1.5"
#define MyAppPublisher "我的公司,有限公司"
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"
[Setup]
AppId={{B43BB5B0-E21B-4692-AD97-2E48B7680201}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Dev\Inno Setup 6\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: 不要在任何共享系统文件上使用 "Flags: ignoreversion"
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
更新 2:Inno Setup 编译器的版本是 6.2.1。
英文:
I noticed that some languages, e.g. English and French, have word wrapping in standard texts (Welcome screen, etc.), and some - I suppose, which use Cyrillic - haven't. Is it possible to enable word wrapping for such languages or it is an unrealized function?
Update: For the screenshot above I used default script created with wizard. Screen resolution is 2560x1440 and 150% scaling. Here is the code:
#define MyAppName "My Program"
#define MyAppVersion "1.5"
#define MyAppPublisher "My Company, Inc."
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "MyProg.exe"
[Setup]
AppId={{B43BB5B0-E21B-4692-AD97-2E48B7680201}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "C:\Dev\Inno Setup 6\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Update 2: version of Inno Setup compiler is 6.2.1.
答案1
得分: 2
只需关闭这个Windows设置:设置->时间与语言->语言和区域->管理语言设置->更改系统区域->复选框 "Beta: Use Unicode UTF-8 for worldwide language support"。(适用于Win11)
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论