public static void AddDictionary(Dictionary <string, string> dic,
                                  string collectionName,
                                  Culture culture,
                                  MessageType msgmode = MessageType.General)
 {
     LocalizerCore.AddDictionary(true, dic, collectionName, culture, msgmode);
 }
        public static void AddMessages(bool cacheit, IEnumerable <Message> msgs, string collectionname, Culture culture)
        {
            SortedList <MessageType, SortedList <string, string> > lst =
                new SortedList <MessageType, SortedList <string, string> >();

            foreach (var message in msgs)
            {
                if (!lst.ContainsKey(message.MessageType))
                {
                    lst.Add(message.MessageType, new SortedList <string, string>());
                }
                lst[message.MessageType].Add(message.Key, message.Title + ";" + message.Body);
            }
            foreach (var kp in lst)
            {
                LocalizerCore.AddDictionary(cacheit, kp.Value, collectionname, culture, kp.Key);
            }
        }