The TranslationServiceHelper type exposes the following members.
Back to Top
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
AnyServiceAvailable |
Returns true if at least one service is available (= is enabled and it's IsAvailable() method returns true).
| |
AutoImportSubmission |
Processes the submission automatically if enabled. If auto import is disabled, does nothing.
| |
CancelSubmission |
Cancels given submission
| |
CreateSubmissionInfo |
Creates new submission to queue (saves it to DB also) and returns the object.
| |
CreateSubmissionItemInfo |
Creates new submission item within given submission (saves it to DB also) and returns the object.
| |
CreateTargetCultureNode |
Returns document of target culture from specified node or creates new culture version as a copy of the original.
| |
DownloadXLIFF |
Starts download of XLIFF document from given submission item.
| |
DownloadXLIFFinZIP |
Starts download of XLIFF document from given submission item.
| |
GetFormattedStatusString |
Returns formatted (colored) status string.
| |
GetPriorityText |
Returns text representation of integer priority.
| |
GetSubmissionLinkURL |
Returns absolute URL of the submission page where a translator can submit translated files.
| |
GetTranslationsEncoding(Int32) |
Returns encoding which should be used for translations (export/import of XLIFF) for given site.
| |
GetTranslationsEncoding(String) |
Returns encoding which should be used for translations (export/import of XLIFF) for given site.
| |
GetXLIFF(BaseInfo, TranslationSettings) |
Returns XLIFF export for given TreeNode object.
| |
GetXLIFF(IDataContainer, TranslationSettings) |
Returns XLIFF export for given TreeNode object.
| |
GetXLIFF(TreeNode, TranslationSettings) |
Returns XLIFF export for given TreeNode object.
| |
GetXLIFF(BaseInfo, TranslationSettings, Int32 , Int32 ) |
Returns XLIFF export for given TreeNode object.
| |
GetXLIFF(IDataContainer, TranslationSettings, Int32 , Int32 ) |
Returns XLIFF export for given TreeNode object.
| |
GetXLIFF(TreeNode, TranslationSettings, Int32 , Int32 ) |
Returns XLIFF export for given TreeNode object.
| |
CheckAndDownloadTranslations |
Checks all the available translation services for given site and downloads the translations if they are available, stores them in the submission.
| |
CheckLicense |
Checks license limitation.
| |
ImportXLIFFfromZIP |
Imports XLIFF documents from ZIP file. Returns list of unreckognized filenames, null if everything went ok.
| |
IsAuthorizedToTranslateDocument |
Checks whether the user is authorized to translate document.
| |
IsFieldForTranslation |
Returns true for Text, LongText, and Binary field types.
| |
IsServiceAvailable |
Returns true if specified service is available (= is enabled and it's IsAvailable() method returns true).
| |
IsTranslationAllowed |
Reflects CMSEnableTranslations setting for specified site.
| |
IsTranslationReady |
Returns true if there is at least one translation submission item with target XLIFF.
| |
LogEvent |
Logs an event if error occurred during action.
| |
LogInformation |
Logs an information to event log.
| |
ProcessSubmission |
Processes all the translations within the submission. Returns null if everything went ok, otherwise return error message.
| |
ProcessTranslation(String, TranslationSubmissionInfo) |
Translates object specified by XLIFF document. Returns translated object if translation went ok, null otherwise.
| |
ProcessTranslation(Stream, TranslationSubmissionInfo) |
Translates object specified by XLIFF document. Returns translated object if translation went ok, null otherwise.
| |
ResubmitSubmission |
Generates XLIFF documents again and resubmits given submission to the service provider. Returns null if everything went ok, otherwise return error message.
| |
SubmitToTranslation |
Submits the node for translation. If the service is human translation service, creates the whole submission (submission will contain only specified document).
| |
Translate |
Translates given object using machine translation service. Returns true if translation went ok, false if there was any error.
| |
WriteSubmissionInZIP |
Writes the XLIFF documents to translate into a zip file to a given stream.
|
Fields
Name | Description | |
---|---|---|
XLIFFEXTENSION |
XLIFF file extension
| |
XLIFFMIME |
XLIFF MIME type
|
Properties
Name | Description | |
---|---|---|
AutoImportEnabled |
If true, submissions are processed automatically (without explicit approval in CMSDesk) when the submission is ready to translate.
| |
UseCDATAForTranslationUnit |
Indicates if CDATA section should be used for translation units.
|
See Also