diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 2f52542..f521ffb 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -1466,16 +1466,21 @@ namespace AyaNova.PlugIn.V8 //Ok, have our target locale created, not we need to insert our custom translations one by one var trans = ((JArray)a.ObjectResponse["data"]["translationItems"]).ToObject>(); + var DuplicateAvoidanceList = new List(); + //SET MATCHING KEYS TO OUR TEXT //iterate v7 locale items foreach (var v7item in lt.LT) { + progress.SubOp("Processing key: " + v7item.Key); var v8key = Translatev7TranslationKey(v7item.Key); if (v8key == "**SKIP**") continue; - System.Diagnostics.Debug.WriteLine("v7key:" + v7item.Key + " -> v8key: " + v8key); + if (!DuplicateAvoidanceList.Contains(v8key)) { DuplicateAvoidanceList.Add(v8key); } + else continue; + //System.Diagnostics.Debug.WriteLine("v7key:" + v7item.Key + " -> v8key: " + v8key); TranslationItem v8TransItem = trans.FirstOrDefault(m => m.Key == v8key);