Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.38 KB

TVIBinResource-AddTranslation.md

File metadata and controls

41 lines (26 loc) · 1.38 KB

AddTranslation method

Project: Binary Version Information Manipulation Units.

Unit: DelphiDabbler.Lib.VIBin.Resource.

Class: TVIBinResource

Applies to: ~>1.0

function AddTranslation(LanguageID, CharSet: Word): Integer;

Description

Creates a new translation with a specified translation code and adds it to the translation table.

Parameters:

  • LanguageID -- Language identifier component of the translation code. If the value is $FFFF then the language identfier is set to 0.
  • CharSet -- Character set code component of the translation code. If the value is $FFFF then the character set code is set to 0.

Returns:

  • The index of the new translation in the translation table.

Note

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

See Also