예제 #1
0
        public static string Label(this ViewPage page, string key)
        {
            var controller = LocalizationHelpers.GetController(page);
            var resClass   = LocalizationHelpers.FindResourceStringClassType(controller.GetType());

            return(Res.Get(resClass, key, System.Globalization.CultureInfo.InvariantCulture));
        }
예제 #2
0
        /// <summary>
        /// Get the label with the specified key from the resource files.
        /// </summary>
        /// <param name="key">The key.</param>
        public static string Label(this ViewPage page, string key)
        {
            var controller = LocalizationHelpers.GetController(page);
            var resClass   = LocalizationHelpers.FindResourceStringClassType(controller);

            return(Res.Get(resClass, key));
        }