Sign in Join
FPDoc Onlineexperiment

TPOFileItem class

In unit Translations

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

Declaration

pascal
TPOFileItem = class

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

Properties

InitialFuzzyStatepublicIndicates whether the translation entry is marked with the "fuzzy" state comment.
VirtualTranslationpublicIndicates whether the translation is included in statistics generated when a .po file is processed and applied.

Methods

CreatepublicConstructor for the class instance.
ModifyFlagpublicExamines and updates the Flags property for the specified values.

Fields

TagpublicArbitrary value which can be used to identify the translation entry.
LineNrpublicLine number in a .po file where the first line for the translation entry was found.
CommentspublicContains the comments with the notes for translators, flag values, et. al. for the translation entry.
IdentifierLowpublicLowercase variant of the message identifier or untranslated value.
OriginalpublicOriginal untranslated value prior to localization using the value in Translation.
TranslationpublicTranslated or localized value for the message identifier.
FlagspublicComma-delimited list of Flag names found in the comments for the translation entry.
PreviousIDpublicPrior message ID used for the value in Original.
ContextpublicContains the msgctxt (message context) for the key/value pair.
DuplicatepublicIndicates if the key/value pair is a duplicate of a previous entry.

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