private List <SubtitleText> TranslateSubtitleTexts(
     List <SubtitleText> texts,
     Language target)
 {
     return
         (translator.Translate(
              texts.Select(t => formatter.Format(t)).ToList(),
              target)
          .Select(
              translation => new SubtitleText(
                  new List <CharacterLine> {
         new CharacterLine(translation)
     })).ToList());
 }
Ejemplo n.º 2
0
 private int CharacterCountInSubtitles(Subtitles subtitles)
 {
     return(subtitles.Value
            .Sum(subtitle => formatter.Format(subtitle.Text).Length));
 }