// Token: 0x06001FE7 RID: 8167 RVA: 0x000AFE34 File Offset: 0x000AE234 private static void scanFile(string path) { Data data = ReadWrite.readData("/Localization/English/" + path, false, true); Data data2 = ReadWrite.readData(Provider.path + Provider.language + path, false, false); KeyValuePair <string, string>[] contents = data.getContents(); KeyValuePair <string, string>[] contents2 = data2.getContents(); Localization.keys.Clear(); for (int i = 0; i < contents.Length; i++) { string key = contents[i].Key; bool flag = false; for (int j = 0; j < contents2.Length; j++) { string key2 = contents2[j].Key; if (key == key2) { flag = true; break; } } if (!flag) { Localization.keys.Add(key); } } if (Localization.keys.Count > 0) { string text = string.Empty; for (int k = 0; k < Localization.keys.Count; k++) { if (k == 0) { text += Localization.keys[k]; } else if (k == Localization.keys.Count - 1) { text = text + " and " + Localization.keys[k]; } else { text = text + ", " + Localization.keys[k]; } } Localization.messages.Add(string.Concat(new object[] { path, " has ", Localization.keys.Count, " new keys: ", text })); } }