Documentation Center

PslSourceLists.AddWithParser

Adds a new source file to the project and defines the parser that is to be used.

Syntax

Expression.AddWithParser (FileName as Variant, Parser as String, optional Title as Variant, optional LangID as Variant) as PslSourceList

Expression Required. Object of type PslSourceLists

FileName Name of the new source file path. The path can be indicated absolutely or relative to the directory of the project file

Parser Defines the parser.

Title Title of the source string list. If it is omitted, the title will be generated from the FileName.

LangID Language-ID of the strings in the source file. It can be either the LanguageID or the LanguageCode. If this argument is omitted, SDL Passolo will try to detect the language from the resources of the source file.

Example

PSL.ActiveProject.SourceLists.AddWithParser("c:\winnt\system32\notepad.exe", "Win32", _ 
 "Notepad", pslLangEnglishUSA)