Inno customization compiler: description of different type for different languages
I am trying to compile an installer using "Inno Setup 5.5.3 Compiler (a)". I have already included 2 different languages ββ(using default.isl for a specific language) but cannot figure out how to change the "Description" field of every type I have (ie "full", "compact" and "custom" ) differently for each language, but keep any other functionality, that is, the "Name" of the type must remain the same. Now my code looks like this:
[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "sl"; MessagesFile: "compiler:Slovenian.isl"
[Types]
Name: "full"; Description: "Full installation"; Languages: en
Name: "compact"; Description: "Compact installation"; Languages: en
Name: "custom"; Description: "Custom installation"; Languages: en; Flags: iscustom
How can i do this?
source to share
Don't use the languages ββparameter in a section [Types]
unless you want any type of installer to only apply to a specific language or language.
To provide translation of the mapped type names, use a section [CustomMessages]
such as:
[CustomMessages]
en.TypeFullDesc=Create a &desktop icon
es.TypeFullDesc=Crear Γcono en el &escritorio
sl.TypeFullDesc=The way you say create desktop icon in Slovenian
[Tasks]
Name: "full"; Description: {cm:TypeFullDesc};
The prefix in the CustomMessages section is used to determine which language a given entry belongs to.
source to share