TPOFile.UpdateTranslation procedure
Updates or removes translation entries in the .po file class based on the content in the specified .po file.
Declaration
procedure UpdateTranslation(BasePOFile: TPOFile)Arguments
BasePOFile | Name for the .po file with the translation entries applied to the Items in the class. |
Description
UpdateTranslation is a method used to update translation entries in
Items from the translation entries in the specified
TPOFile
instance. UpdateTranslation resets the value in Tag to 0 (zero) for all of the
POItems in the class instance. It visits each of the POItems in BasePOFile,
and calls UpdateItem to apply the Original and Flags members to the entries in
Items.
UpdateTranslation removes any entries in Items which do not exist in BasePOFile. InvalidateStatistics is called to reset the internal flag which indicates that translation statistics are up-to-date.
UpdateTranslation is called from the UpdatePoFileTranslations routine when a .pot template file has been provided in its arguments.
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
