示例#1
0
        /// <summary>
        /// Processes the TUV element and writes the segment data into the output files.
        /// </summary>
        /// <param name="nodes">The TUV nodes collection.</param>
        /// <param name="language">The language for the TUV element.</param>
        private void ProcessTuvTag(TmxNodeCollection nodes, string language)
        {
            // Extract all <seg> nodes assuming that <seg> nodes are at root.
            TmxNodeCollection segNodes = nodes.FindByName(Token.SEG, false);

            // Loop through each <seg> node to process the data.
            foreach (TmxNode node in segNodes)
            {
                // Extract current node
                TmxElement currSegNode = (TmxElement)node;
                this.internalCounter = 0;

                this.ProcessSourceSegElement(currSegNode.Nodes, language);
            }

            return;
        }