[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Translations' (#lazutils)

TPOFile.CreateHeader

Ensures that a TPOFileItem instance is allocated for the Header property (when not already assigned).

Declaration

Source position: translations.pas line 146

public procedure TPOFile.CreateHeader;

Description

CreateHeader sets the value for the Translation property in Header to the default content type for the .po file:

'Content-Type: text/plain; charset=UTF-8'.

CreateHeader is called from the file-based variant of the Create constructor, and from the SaveToStrings method when Header has not been assigned.

See also

TPOFile.Header

  

Contains values for the header section in a .po file.

TPOFile.CharSet

  

Character set used for the contents of the .po file.

TPOFile.Create

  

Constructor for the class instance.

TPOFile.SaveToStrings

  

Stores values from Header and the sorted POItems to the specified string list.

TPOFileItem.Translation

  

Translated or localized value for the message identifier.

TPOFileItem.Comments

  

Contains the comments with the notes for translators, flag values, et. al. for the translation entry.


Version 4.0 Generated 2025-05-03 Home