private static void FillLocalizer(Localizer loc, ITemplateSet templates) { for (Template t = templates.GetNextTemplate(); t != null; t = templates.GetNextTemplate()) { if (string.IsNullOrEmpty(t.Translation)) { loc.Remove(t.Tag); } else { loc.Add(t.Tag, t.Translation); } } }
private static void FillLocalizer (Localizer loc, ITemplateSet templates) { for (Template t = templates.GetNextTemplate(); t != null; t = templates.GetNextTemplate()) { if (string.IsNullOrEmpty(t.Translation)) loc.Remove(t.Tag); else loc.Add(t.Tag, t.Translation); } }