Exemplo n.º 1
0
        public static String For(String key, params Object?[] args)
        {
            String validation = Resource.Localized("Form", "Validations", key);

            return(validation == "" || args.Length == 0 ? validation : String.Format(validation, args));
        }
Exemplo n.º 2
0
        public static String For <TView>(String key, params Object?[] args)
        {
            String validation = Resource.Localized(typeof(TView).Name, "Validations", key);

            return(validation == "" || args.Length == 0 ? validation : String.Format(validation, args));
        }