This commit is contained in:
@@ -465,13 +465,22 @@ 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
|
||||
|
||||
|
||||
//todo: do the language ones by fetching the equivalent language and then bring over from here (if modified)
|
||||
//maybe there's a way to tell if the stock locales have been edited and skip them if not? Modified date?
|
||||
//no, need to checksum them I think
|
||||
@@ -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());
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user