示例#1
0
        public void Patch(TranslationModuleDiff tpDiff)
        {
            var byLanguage = Segments.ByLanguage();

            foreach (var diff in tpDiff.DiffPerLanguage)
            {
                diff.Value.Patch(_Segments, byLanguage[diff.Key]);
            }
        }
 public void Patch(TranslationModuleDiff tpDiff)
 {
     foreach (var l in Languages)
     {
         if (!Dicts.ContainsKey(l) || !tpDiff.DiffPerLanguage.ContainsKey(l))
         {
             continue;
         }
         DictDiff.Patch(Dicts[l], tpDiff.DiffPerLanguage[l]);
     }
 }