diff --git a/source/Plugins/AyaNova.Plugin.V8/V8.cs b/source/Plugins/AyaNova.Plugin.V8/V8.cs index e9f4854..74be450 100644 --- a/source/Plugins/AyaNova.Plugin.V8/V8.cs +++ b/source/Plugins/AyaNova.Plugin.V8/V8.cs @@ -202,9 +202,9 @@ namespace AyaNova.PlugIn.V8 */ - if (progress.KeepGoing) - await ExportLocales(progress); - return; + //if (progress.KeepGoing) + // await ExportLocales(progress); + //return; //Export in correct order: @@ -241,8 +241,8 @@ namespace AyaNova.PlugIn.V8 //BIZ objects if (progress.KeepGoing) await ExportUsers(progress); - //if (progress.KeepGoing) - // await ExportLocales(progress); + if (progress.KeepGoing) + await ExportLocales(progress); @@ -500,7 +500,7 @@ namespace AyaNova.PlugIn.V8 var exportName = i.Locale + " (" + RavenLanguageList.Find(m => m.Id == x).Name + ")"; progress.Op("Exporting " + i.Locale + " to " + exportName); var t = new util.NameIdItem { Name = exportName, Id = x }; - a = await util.PostAsync("Translation/Duplicate"); + a = await util.PostAsync("Translation/Duplicate",JObject.FromObject(t).ToString()); var targetTranslationId = util.IdFromResponse(a); var ctoken = util.CTokenFromResponse(a); //Ok, have our target locale created, not we need to insert our custom translations one by one @@ -526,7 +526,7 @@ namespace AyaNova.PlugIn.V8 JObject d = JObject.FromObject(v8TransItem); progress.SubOp("Posting key: " + v7item.Key); //update it - await util.PostAsync("Translation/UpdateTranslationItemDisplayText", d.ToString()); + await util.PutAsync("Translation/UpdateTranslationItemDisplayText", d.ToString());