Open aleene opened 8 years ago
When should I do this? And where? This is only necessary when I update the Allergens.plist file in the bundle.
AllergenWarningDefaults.init() seems the logical place. Is only done once at each startup.
If a preference does not have a corresponding translation, then I assume there is now an error and I reinitialize the preferences from an edited allergenWarnigs array.
Not sure if I do the right thing now. There is a difference between translation not available and item not available.
Seems not a big issue, as long as I do not update the allergens file.
Is only needed to make the app nicer.
If an allergen is deleted in the taxonomy, it should also be removed in the preferences file.