This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user