Successfully exporting all locales, all items including woservice
This commit is contained in:
@@ -1466,16 +1466,21 @@ namespace AyaNova.PlugIn.V8
|
||||
//Ok, have our target locale created, not we need to insert our custom translations one by one
|
||||
var trans = ((JArray)a.ObjectResponse["data"]["translationItems"]).ToObject<List<TranslationItem>>();
|
||||
|
||||
var DuplicateAvoidanceList = new List<string>();
|
||||
|
||||
//SET MATCHING KEYS TO OUR TEXT
|
||||
//iterate v7 locale items
|
||||
foreach (var v7item in lt.LT)
|
||||
{
|
||||
|
||||
progress.SubOp("Processing key: " + v7item.Key);
|
||||
|
||||
var v8key = Translatev7TranslationKey(v7item.Key);
|
||||
if (v8key == "**SKIP**") continue;
|
||||
|
||||
System.Diagnostics.Debug.WriteLine("v7key:" + v7item.Key + " -> v8key: " + v8key);
|
||||
if (!DuplicateAvoidanceList.Contains(v8key)) { DuplicateAvoidanceList.Add(v8key); }
|
||||
else continue;
|
||||
//System.Diagnostics.Debug.WriteLine("v7key:" + v7item.Key + " -> v8key: " + v8key);
|
||||
|
||||
TranslationItem v8TransItem = trans.FirstOrDefault(m => m.Key == v8key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user