private string statusmessage(TmxWriter.TUError tustatus) { switch (tustatus) { case TmxWriter.TUError.good: return("Good"); case TmxWriter.TUError.lengthratio: return("Length ratio exceeded"); case TmxWriter.TUError.sentencecountmismatch: return("Sentence count mismatch"); case TmxWriter.TUError.tagging: return("Sentence contains tags"); default: return(""); } }
public void WriteSegment(string sourcesegment, string targetsegment, TmxWriter.TUError tustatus) { this.CsvStream.Write("\"{0}\",", CSVEncode(sourcesegment)); this.CsvStream.Write("\"{0}\",", CSVEncode(targetsegment)); this.CsvStream.WriteLine("\"{0}\"", statusmessage(tustatus)); }