public static void AddUnknownEntries(this TranslationList defaultTranslations, IAsset <TranslationList> translations) { bool hasChanged = false; foreach (TranslationListEntry entry in defaultTranslations) { if (translations.Instance[entry.Id] == null) { translations.Instance.Add(entry); hasChanged = true; } } if (hasChanged) { translations.Save(); } }
public void AddRange(TranslationList collection) { translations.AddRange(collection.translations); }