Sign in Join
FPDoc Onlineexperiment

TPOFile.CreateHeader procedure

Member of TPOFilepublicIn unit Translations

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

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.