This commit is contained in:
2020-04-30 16:05:05 +00:00
parent 451bbc1fd0
commit 37618278b4

View File

@@ -465,10 +465,19 @@ namespace AyaNova.PlugIn.V8
progress.Append("Exporting " + l.Count.ToString() + " Locales");
foreach (LocaleList.LocaleListInfo i in l)
{
if (!progress.KeepGoing) return;
if (i.Locale != "English")
{
LocalizedTextTable lt = LocalizedTextTable.Load(i.Locale);
List<string> allStrings = new List<string>();
foreach (var entry in lt.LT) {
allStrings.Add(entry.Value);
}
progress.Append("Locale: " + i.Locale + " hash code: " + util.GetOrderIndependentHashCode<string>(allStrings));
//todo: all locales except English default need to be dealt with
//above skiplocales is incorrect
@@ -486,10 +495,10 @@ namespace AyaNova.PlugIn.V8
//need a key translator so can give old and get new then just update it's value
dynamic d = new JObject();
d.id = 1;
d.name = i.Locale;
var a = util.PostAsync("Translation/Duplicate", d.ToString());
//dynamic d = new JObject();
//d.id = 1;
//d.name = i.Locale;
//var a = util.PostAsync("Translation/Duplicate", d.ToString());