RC-WinTrans Object Model Help |
XLIFFFile.AddFileSection |
Adds a new file section to the XLIFF file. The function returns the node number of the new file section.
Syntax: |
AddFileSection( SourceLanguage As String, Original As String, Datatype As String ) As Long |
Return: | Long |
Parameters: |
SourceLanguage Source language of the file section. Original Original attribute. Datatype Datatype attribute.
|
Example: | Dim File As XliffFile Dim FileNo As Long Dim GroupNo As Long Dim TUNo As Long Dim RetVal As Boolean Set File = Tools.XMLTool.CreateXLIFFFile("C:\test.xlf") FileNo = File.AddFileSection("en-us", "database.mdb", "database") GroupNo = File.AddGroup(FileNo) TUNo = File.AddTransUnit(GroupNo, "en-us", "Text", "") RetVal = File.AddProperty(TUNo, "resname", "", "IDS_TEXT") If (RetVal) Then File.Save End If |
Remarks: | An XLIFF file can have more than one file section. Each file section has a unique "SourceLanguage," "Datatype," and "Original" parameter. |
See also: