using System;
using CMS.TranslationServices;
using TreeNode = CMS.DocumentEngine.TreeNode;
///
/// Translation services functions.
///
public class TranslationServicesFunctions
{
///
/// Returns true if there is at least one translation submission item with target XLIFF.
///
/// Document to check
public static bool IsTranslationReady(object document)
{
TreeNode doc = document as TreeNode;
if (doc != null)
{
return TranslationServiceHelper.IsTranslationReady(doc);
}
return false;
}
}