Share via


VariationsTranslationTimerJob.ImportTranslationPackage method

Creates a work item for the timer job to import an XLIFF translation package.

Namespace:  Microsoft.Office.Client.TranslationServices
Assembly:  Microsoft.Office.Client.TranslationServices (in Microsoft.Office.Client.TranslationServices.dll)

Syntax

'Declaration
Public Shared Sub ImportTranslationPackage ( _
    context As ClientRuntimeContext, _
    translatorName As String, _
    packageId As Integer, _
    addressesToEmail As String() _
)
'Usage
Dim context As ClientRuntimeContext
Dim translatorName As String
Dim packageId As Integer
Dim addressesToEmail As String()

VariationsTranslationTimerJob.ImportTranslationPackage(context, _
    translatorName, packageId, addressesToEmail)
public static void ImportTranslationPackage(
    ClientRuntimeContext context,
    string translatorName,
    int packageId,
    string[] addressesToEmail
)

Parameters

  • translatorName
    Type: System.String

    Name of the entity that performed translation.

  • packageId
    Type: System.Int32

    Identifier of the package item in the Translation Packages library.

  • addressesToEmail
    Type: []

    Email addresses that should be notified when the operation is completed.

Exceptions

Exception Condition
ArgumentException

InvalidOperationException

The web is not configured for translation.

UnauthorizedAccessException

The current user has insufficient permissions.

[System.Xml.Schema.XmlSchemaException]

A package does not comply with the strict schema of XLIFF Version 1.2 or is missing notes required to perform an import. The message contains the identifier of the first failing file in the package.

Remarks

The package must be in the translation packages library on the root web of the site collection containing targetWeb. The current user must have the CancelCheckout permission to perform the operation if the translation package contains content for more than one item.

See also

Reference

VariationsTranslationTimerJob class

VariationsTranslationTimerJob members

Microsoft.Office.Client.TranslationServices namespace