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

TPOFileItem

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents a single key/value pair in a .po file which maps a string to its translated value.

Declaration

Source position: translations.pas line 87

type TPOFileItem = class

public

  Tag: Integer;

  

Arbitrary value which can be used to identify the translation entry.

  LineNr: Integer;

  

Line number in a .po file where the first line for the translation entry was found.

  Comments: string;

  

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

  IdentifierLow: string;

  

Lowercase variant of the message identifier or untranslated value.

  Original: string;

  

Original untranslated value prior to localization using the value in Translation.

  Translation: string;

  

Translated or localized value for the message identifier.

  Flags: string;

  

Comma-delimited list of Flag names found in the comments for the translation entry.

  PreviousID: string;

  

Prior message ID used for the value in Original.

  Context: string;

  

Contains the msgctxt (message context) for the key/value pair.

  Duplicate: Boolean;

  

Indicates if the key/value pair is a duplicate of a previous entry.

  constructor Create();

  

Constructor for the class instance.

  function ModifyFlag();

  

Examines and updates the Flags property for the specified values.

  property InitialFuzzyState: Boolean; [r]

  

Indicates whether the translation entry is marked with the "fuzzy" state comment.

  property VirtualTranslation: Boolean; [r]

  

Indicates whether the translation is included in statistics generated when a .po file is processed and applied.

end;

Inheritance

TPOFileItem

  

Represents a single key/value pair in a .po file which maps a string to its translated value.

|

TObject

Description

TPOFileItem is a class used to represent a key/value pair defined in a .po (Portable Object) file. It provides members, properties, and methods used to process, store, and maintain a single translation defined in a .po file.

TPOFileItem is the type used for the POItems property in TPOFile. It is also passed as an argument or used as the return value for methods in TPOFile.

See also

TPOFile.POItems

  

Provides indexed access to the translation entries in the class instance.

TPOFile.ReadPOText

  

Reads the content for the .po file from the specified source.

TPOFile.FillItem

  

Stores argument values to the specified translation entry.

TPOFile.UpdateItem

  

Adds or updates a translation entry which has the specified Identifier.

TPOFile.Remove

  

Gets the translation entry at the specified ordinal position in POItems and removes it from the list.


Version 4.0 Generated 2025-05-03 Home