Returns the project file with the given file name. The project file is loaded with the data of the given language(s).

Syntax:

GetProjectFile( ProjectFile As String, SourceLanguage As String, 
TargetLanguage As String ) As ProjectFile
Return: ProjectFile
Parameters:
ProjectFile Name of the project file to be returned.
SourceLanguage Source language data to be loaded.
Use an empty string ("") to use the original source file language.
TargetLanguage Target language data to be loaded.

Example:
Dim Projs As TranslationProjects
Dim Proj As TranslationProject
Dim ProjFile As ProjectFile
Dim SourceFileName As String

Set Projs = Application.Workspace.TranslationProjects
Set Proj = Projs.Item(1)

SourceFileName = Proj.ProjectFiles(1).SourceFileName
' return project file with original source language as source 
' and french as target language
Set ProjFile = Proj.GetProjectFile(SourceFileName, "", "fr")
Remarks: The languages of the returned project file are independent of the active languages.

See also:

Class TranslationProject


Last Updated: 10/17/09