From 367ddeb6978cc7f948512ba108ea31aa2413ce6d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 4 May 2020 19:56:24 +0000 Subject: [PATCH] Successfully exporting all locales, all items including woservice --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);