Ejemplo n.º 1
0
        public override object InternalEvaluate(TagModel model)
        {
            IResourceBundle bundle = null;
            string          key    = GetAsString(Key, model);

            bundle = GetBundle(model);
            object[] i18nparams = GetParams(model);
            try
            {
                return(bundle.Get(key, model, i18nparams));
            } catch (Exception e)
            {
                throw TagException.EvaluationMessageError(key, e).Decorate(Context);
            }
        }