Documentation Center

PslProject.Import

Imports data from an file that has been exported with PslProject.Export or PslTransList.Export.

Syntax

Expression.Import( Format as String, FilePath as String, [optional] Flags as Variant) as PslTranslist

Expression Required. Object of type PassoloApp

Format Identifier of the add-in which is used for import. The add-in list in Passolo displays the identifier of each add-in. These are the add-ins that are shipped with Passolo and be used for import:

"PASSOLO translation bundle" (You can also use ImportTransBundle)

"PASSOLO text format"

"PASSOLO Customizable Text Export"

"PASSOLO Customizable Text Export"

"Passolo XML Export/Import"

"Trados Text Export"

FilePath Path of the file to be imported

Flags Some options to control the import. To combine flags, add the values:

psl ImportValidate (Value = 256):Text-based imports only: The strings will be validated after importing the translation.

psl ImportMerge (Value = 512): Translation bundles only: The translations in the bundle are merged with the existing translations in the project. If you are importing a licensed translation bundle, you can merge only if you use an unlimited Team Edition of Passolo.

psl ImportRelease (Value = 1024): Translation bundles only: Imported string lists are released after import. If this flag is not set, the translation list in the project remains marked as "exported".

Example

Dim prj As PslProject
Set prj = PSL.ActiveProject

If prj Is Nothing Then Exit Sub

If (Not prj.Import("PASSOLO text format", "c:\test_de.txt")) Then
    MsgBox PSL.GetLastOutput
End If