Documentation ¶
Index ¶
Constants ¶
View Source
const ( Version = "2.0" FileExtension = "xlf" MIMEType = "application/x-xliff+xml" XMLNS = "urn:oasis:names:tc:xliff:document:2.0" DefaultXMLHeader = "<?xml version=\"1.0\" encoding=\"UTF-16\"?>\n" DefaultFileOriginal = "encoding/2.0/xliff" DefaultFileDataType = "plaintext" DefaultHeaderToolID = "encoding/2.0/xliff" DefaultHeaderToolName = "encoding/2.0/xliff" DefaultHeaderToolVersion = "1.0.0" )
const ...
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Unit ¶
type Unit struct { XMLName xml.Name `xml:"unit"` XMLSpace string `xml:"http://www.w3.org/XML/1998/namespace space,attr"` ID string `xml:"id,attr,omitempty"` // segment : http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html#segment Source string `xml:"segment>source"` Target string `xml:"segment>target"` Notes []string `xml:"notes>note"` }
Unit : http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html#unit
type XLIFF ¶
type XLIFF struct { XMLName xml.Name `xml:"xliff"` XMLNS string `xml:"xmlns,attr"` XMLSpace string `xml:"http://www.w3.org/XML/1998/namespace space,attr"` Version string `xml:"version,attr"` SrcLang string `xml:"srcLang,attr"` TrgLang string `xml:"trgLang,attr"` File File }
XLIFF ...
func New ¶
New : [XML Localisation Interchange File Format](https://en.wikipedia.org/wiki/XLIFF) http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html
Click to show internal directories.
Click to hide internal directories.