diff --git a/include/class.forms.php b/include/class.forms.php index c097dd995ab0f8e48336215bb6acf578e0dfb440..7821c43cb7ccfaa01903b71e6a8d1f87d3c64270 100644 --- a/include/class.forms.php +++ b/include/class.forms.php @@ -670,8 +670,8 @@ class FormField { # Validates a user-input into an instance of this field on a dynamic # form if ($this->get('required') && !$value && $this->hasData()) - $this->_errors[] = $this->getLabel() - ? sprintf(__('%s is a required field'), $this->getLabel()) + $this->_errors[] = $this->getLocal('label') + ? sprintf(__('%s is a required field'), $this->getLocal('label')) : __('This is a required field'); # Perform declared validators for the field