Click or drag to resize
TranslationServiceHelperCreateTargetCultureNode Method
Returns document of target culture from specified node or creates new culture version as a copy of the original.

Namespace: CMS.TranslationServices
Assembly: CMS.TranslationServices (in CMS.TranslationServices.dll) Version: 13.0.131
Syntax
C#
public static TreeNode CreateTargetCultureNode(
	TreeNode originalNode,
	string targetLang,
	bool setWaitingForTranslation,
	bool copyOriginalNodeData,
	bool copyAttachments = true
)

Parameters

originalNode
Type: CMS.DocumentEngineTreeNode
Source culture document
targetLang
Type: SystemString
Target language
setWaitingForTranslation
Type: SystemBoolean
If true, WaitingForTranslation flag of the target node is set to true
copyOriginalNodeData
Type: SystemBoolean
If true, data from en existing originalNode (source culture) is copied to the target (this flag is taken into account only for existing target documents)
copyAttachments (Optional)
Type: SystemBoolean
Indicates if attachments from source node should be copied to target node

Return Value

Type: TreeNode
See Also