PslTransList.ScanTargetFile
Scans a target file and aligns the resource data with the translation list. The result is a translation list which contains the translated text and attributes of the scanned file.
Syntax
Expression.ScanTargetFile (TargetFile as String, TargetLangID as Integer, optional ScanFlags as VARIANT) as Boolean
Expression Object of type PsTransList
TargetFile Name of the file to be scanned. The resource structure of this file should match structure of the source file.
TargetLangID Only resources with this resource language are extracted.
ScanFlags This parameter can be one or more of the following values. If this parameter is omitted, the default flags are set.
- pslScanOverwrite (Value = 1, default) : If set, existing translation will be overwritten with the translation found in the scanned file.
- pslScanValidate (Value = 4): If set, each string that is modified will be validated. Otherwise the string is marked as "translated automatically" (green)
- pslScanAllTranslated (Value = 8): If set, all strings in the target file are treated as translated, i.e. even if the string in the target file equals the source string, it is set to translated.
- pslScanText (Value = 16): If set, the text of a string is read from the target file
- pslScanCoord (Value = 32): If set, the text of a string is read from the target file
- pslScanProperties (Value = 64): If set, the custom properties a string is read from the target file
If you don't set pslScanText, pslScanCoord or pslScanProperties then all data is read from the target file (like combining these three options).