Beispiel #1
0
        internal XliffFile(XmlElement element)
        {
            ID = element.TestIdentified(NodeName);

            Original = element.GetAttribute("original");

            Notes = new XliffList <XliffNote>(XliffNote.GetNotes(element));

            Groups = new XliffIdentifiedListe <XliffGroup>(XliffGroup.GetGroups(element));

            Units = new XliffIdentifiedListe <XliffUnit>(XliffUnit.GetUnits(element));

            if (Groups.Count == 0 && Units.Count == 0)
            {
                throw new XliffException("Invalid Xliff file.\nA minimum of one <" + XliffGroup.NodeName + "> or <" + XliffUnit.NodeName + "> with the attribute 'id' is required in a <" + NodeName + ">.");
            }
        }
Beispiel #2
0
 public void AddNote(XliffNote note)
 {
 }