Exemple #1
0
 public static IHtmlString GlobalResource(this HtmlHelper helper, string resourceKeyName)
 {
     return(ResourceFileValueHelper.ResourceFileValueToHtml(helper, resourceKeyName));
 }
Exemple #2
0
        public static IHtmlString Translate(this HtmlHelper helper, string resourceKey)
        {
            var translation = Translator.Translate(resourceKey);

            return(ResourceFileValueHelper.ResourceFileValueToHtml(helper, translation));
        }
Exemple #3
0
        public static IHtmlString LocalResource(this HtmlHelper helper, WebViewPage page, string resourceKeyName)
        {
            var localResource = helper.ViewContext.HttpContext.GetLocalResourceObject(page.VirtualPath, resourceKeyName) as string;

            return(ResourceFileValueHelper.ResourceFileValueToHtml(helper, localResource));
        }