public void Translate() { Form form = _control as Form; if (form != null) { form.Text = _resourceManager.Translate(form.Name) ?? form.Text; } translate(_control); }
public VendorValidator(BusinessObjectsResourceManager businessObjectsResourceManager) { RuleFor(x => x.VendorTypeId).GreaterThan(0).WithMessage(businessObjectsResourceManager.Translate("RequiredErrorMessage") ?? ($"El campo {nameof(Vendor.VendorTypeId)} es requerido")); }