[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Updates or removes translation entries in the .po file class based on the content in the specified .po file.
Source position: translations.pas line 154
public procedure TPOFile.UpdateTranslation( |
BasePOFile: TPOFile |
); |
BasePOFile |
|
Name for the .po file with the translation entries applied to the Items in the class. |
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.
Version 4.0 | Generated 2025-05-03 | Home |