models/language library

Represents the different languages supported by the Inno Setup installer.

Each language is associated with a specific Inno Setup language file, which defines the localized text and messages for the installer.

Example usage:

Language.loadLanguages(isccPath);
var language = Language("French");
print(language.innoEntry); // Outputs: Name: "French"; MessagesFile: "compiler:Languages\\French.isl"

Properties:

  • file: The filename of the language-specific Inno Setup language file.
  • name: The name of the language, derived from the filename, or English for Default.isl.

Methods:

  • loadLanguages: Populates the language cache from a given Inno Setup install.
  • getByNameOrNull: Retrieves a Language instance by its name, or null if not found.
  • validateConfig: Validates a configuration option for Language, ensuring it is a valid string and corresponds to a supported language.
  • innoEntry: Generates the Inno Setup language item for this language, formatted for inclusion in an Inno Setup script.
  • all: Returns all supported languages for the selected Inno Setup install.

Classes

Language
A language supported by the Inno Setup installer.