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

TPOFile.Statistics

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

Declaration

Source position: translations.pas line 171

public property TPOFile.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

TPOFile.InvalidateStatistics

  

Resets the internal flag which indicates that translation statistics has been calculated for the entries in POItems.

TPOFile.Create

  

Constructor for the class instance.

TPOFile.POItems

  

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

TTranslationStatistics

  

Represents translation statistics calculated for the key/value pairs in a .po translation file.


Version 4.0 Generated 2025-05-03 Home