diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index a9c5abc..44333ae 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -511,12 +511,15 @@ namespace AyaNova.PlugIn.V8 foreach (var v7item in lt.LT) { //skip over wikipage it's been dropped as it's an international term - if (v7item.Value == "O.WikiPage") continue; + if (v7item.Key == "O.WikiPage") continue; var v8key = Translatev7TranslationKey(v7item.Key); TranslationItem v8TransItem = trans.FirstOrDefault(m => m.Key == v8key); - if (v8TransItem == null) { throw new ArgumentOutOfRangeException("On exporting custom locale " + i.Locale + " source key " + v7item.Key + ", destination key " + v8key + " was not found."); } + if (v8TransItem == null) + { + throw new ArgumentOutOfRangeException("On exporting custom locale " + i.Locale + " source key " + v7item.Key + ", destination key " + v8key + " was not found."); + } progress.SubOp("Posting key: " + v7item.Key); //update it @@ -537,6 +540,32 @@ namespace AyaNova.PlugIn.V8 progress.SubOp(""); } + /* + + TODO: User, fixup translationID, headofficeid, clientid vendorid, phone1, phone2, pagermaxtext +Exporting customized Locales +ERROR, During operation: Exporting Custom English to Custom English (en) +Posting key: ScheduleMarker.Label.Recurrence + +************ +Export failed with error: +Specified argument was out of the range of valid values. +Parameter name: On exporting custom locale Custom English + source key ScheduleMarker.Label.ScheduleMarkerSourceType, + destination key ReminderReminderSourceType was not found. +stack: + at AyaNova.PlugIn.V8.V8.d__5c.MoveNext() in c:\data\ayanova\source\Plugins\AyaNova.Plugin.V8\V8.cs:line 524 +--- 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 + + + */ + + + #region locale utility public class TranslationItem @@ -582,6 +611,7 @@ namespace AyaNova.PlugIn.V8 s = s.Replace("DashboardDashboard", "Dashboard"); //ScheduleMarkers -> Reminder + s = s.Replace("ScheduleMarkerScheduleMarker", "ScheduleMarker"); s = s.Replace("ScheduleMarker", "Reminder"); s = s.Replace("ScheduleMarkerARGB", "ReminderARGB"); s = s.Replace("ScheduleMarkerColor", "ReminderColor");