This commit is contained in:
@@ -202,9 +202,9 @@ namespace AyaNova.PlugIn.V8
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
if (progress.KeepGoing)
|
//if (progress.KeepGoing)
|
||||||
await ExportLocales(progress);
|
// await ExportLocales(progress);
|
||||||
return;
|
//return;
|
||||||
|
|
||||||
//Export in correct order:
|
//Export in correct order:
|
||||||
|
|
||||||
@@ -241,8 +241,8 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//BIZ objects
|
//BIZ objects
|
||||||
if (progress.KeepGoing)
|
if (progress.KeepGoing)
|
||||||
await ExportUsers(progress);
|
await ExportUsers(progress);
|
||||||
//if (progress.KeepGoing)
|
if (progress.KeepGoing)
|
||||||
// await ExportLocales(progress);
|
await ExportLocales(progress);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -500,7 +500,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
var exportName = i.Locale + " (" + RavenLanguageList.Find(m => m.Id == x).Name + ")";
|
var exportName = i.Locale + " (" + RavenLanguageList.Find(m => m.Id == x).Name + ")";
|
||||||
progress.Op("Exporting " + i.Locale + " to " + exportName);
|
progress.Op("Exporting " + i.Locale + " to " + exportName);
|
||||||
var t = new util.NameIdItem { Name = exportName, Id = x };
|
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 targetTranslationId = util.IdFromResponse(a);
|
||||||
var ctoken = util.CTokenFromResponse(a);
|
var ctoken = util.CTokenFromResponse(a);
|
||||||
//Ok, have our target locale created, not we need to insert our custom translations one by one
|
//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);
|
JObject d = JObject.FromObject(v8TransItem);
|
||||||
progress.SubOp("Posting key: " + v7item.Key);
|
progress.SubOp("Posting key: " + v7item.Key);
|
||||||
//update it
|
//update it
|
||||||
await util.PostAsync("Translation/UpdateTranslationItemDisplayText", d.ToString());
|
await util.PutAsync("Translation/UpdateTranslationItemDisplayText", d.ToString());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user