public virtual string Get(string name)
 {
     MessageMapper.MessageHolder holder = mHash.Get(name);
     if (holder != null)
     {
         return(holder.GetMessage());
     }
     return(null);
 }
 public virtual bool AssignMessage(string name, string newmsg)
 {
     MessageMapper.MessageHolder holder = mHash.Get(name);
     if (holder != null)
     {
         holder.AssignMessage(newmsg);
         return(true);
     }
     return(false);
 }
        public virtual string CreateMessageMapString()
        {
            StringBuilder script = new StringBuilder();

            foreach (KeyValuePair <string, MessageMapper.MessageHolder> entry in mHash)
            {
                string name = (string)entry.Key;
                MessageMapper.MessageHolder h = (MessageMapper.MessageHolder)entry.Value;
                script.Append("\tr(\"");
                script.Append(LexBase.EscapeC(name));
                script.Append("\", \"");
                script.Append(LexBase.EscapeC(h.GetMessage()));
                script.Append("\");\n");
            }
            return(script.ToString());
        }
 public virtual void Register(string name, MessageMapper.MessageHolder holder)
 {
     mHash.Put(name, holder);
 }