Skip to content

Latest commit

 

History

History
42 lines (27 loc) · 1.43 KB

TVIBinResource-SetTranslation.md

File metadata and controls

42 lines (27 loc) · 1.43 KB

SetTranslation method

Project: Binary Version Information Manipulation Units.

Unit: DelphiDabbler.Lib.VIBin.Resource.

Class: TVIBinResource

Applies to: ~>1.0

procedure SetTranslation(TransIdx: Integer; LanguageID, CharSet: Word);

Description

Updates the language identifier and / or character set code of a translation within the the translation table.

Parameters:

  • TransIdx -- Index of the required translation in the translation table.
  • LanguageID -- The new language identifier. If the value is $FFFF then the language identifer is not updated.
  • CharSet -- The new character set code. If value is $FFFF then the character set code is not updated.

Exception:

  • EVIBinResource is raised if TransIdx is out of bounds.

Note

The new translation code should be unique within the translation table, but this is not checked.

See Also