Sign in Join
FPDoc Onlineexperiment

TPOFile.Statistics property

Member of TPOFilepublicIn unit Translations

Provides access to statistics for the translation entries in the .po file.

Declaration

pascal
property Statistics: TTranslationStatistics read GetStatistics;

Description

Statistics is a read-only TTranslationStatistics property with information about the translation entries in the POItems property. The statistics reflect the number of entries with a translated value, without a translated value (blank), and those which cannot be used due to use of "fuzzy" or "badformat" flags in the translation.

An internal flag is maintained to indicate whether the statistics have already been calculated by reading the value for the property. They must be recalculated when the flag is reset after calling the InvalidateStatistics method; this occurs in both the Create constructor and the UpdateTranslation method.

See also

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