From a47aee2aff80d3399a59a3c158486e273f91b04b Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 30 Apr 2020 22:13:34 +0000 Subject: [PATCH] --- source/Plugins/AyaNova.Plugin.V8/V8.cs | 38 ++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index 42c8458..25837e6 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -515,6 +515,8 @@ namespace AyaNova.PlugIn.V8 var v8key = Translatev7TranslationKey(v7item.Key); if (v8key == "**SKIP**") continue; + System.Diagnostics.Debug.WriteLine("v7key:" + v7item.Key + " -> v8key: " + v8key); + TranslationItem v8TransItem = trans.FirstOrDefault(m => m.Key == v8key); if (v8TransItem == null) @@ -544,11 +546,27 @@ namespace AyaNova.PlugIn.V8 /* - - - -source key , destination key ToolbarClientsToolBar was not found. - +Exporting customized Locales +ERROR, During operation: Exporting Custom English to Custom English (en) +Posting key: WorkorderItem.Label.OutsideService + +************ +Export failed with error: +PUT error, route: Translation/UpdateTranslationItemDisplayText +{"error":{"code":"2005","message":"Object was changed by another user since retrieval (concurrency token mismatch)"}} +Conflict +stack: + at AyaNova.PlugIn.V8.util.d__26.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\util.cs:line 185 +--- End of stack trace from previous location where exception was thrown --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) + at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() + at AyaNova.PlugIn.V8.V8.d__5c.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 527 +--- End of stack trace from previous location where exception was thrown --- + at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) + at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + at AyaNova.PlugIn.V8.V8.d__0.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 245 @@ -585,11 +603,18 @@ source key , destination key ToolbarClientsToolBar was not found. { //skip keys definitely not in destination + //swaths: + if (oldKey.StartsWith("UI.ToolBar.")) return "**SKIP**"; + if (oldKey.StartsWith("UI.Toolbar.")) return "**SKIP**"; + // Custom English source key UI.Toolbar.ClientsToolBar, destination key ToolbarClientsToolBar was not found. + + switch (oldKey) { + // case "XXXX": case "O.WikiPage": //skip over wikipage it's been dropped as it's an international term case "UI.Command.LocalizedTextDesign": - case "UI.Toolbar.ClientsToolBar": + case "O.WorkorderItemOutsideService": return "**SKIP**"; } string s = oldKey.Replace(".Label.", "."); @@ -673,6 +698,7 @@ source key , destination key ToolbarClientsToolBar was not found. //items that came up after moving this to v8 export plugin s = s.Replace("DateRangeInTheLastYear", "DateRangePastYear"); + s = s.Replace("ToolbarCustomizeDialog", "CustomizeDialog");