added translation of fields passed as validation rule parameters
diff --git a/system/libraries/Form_validation.php b/system/libraries/Form_validation.php
index 1497d85..e825b1b 100644
--- a/system/libraries/Form_validation.php
+++ b/system/libraries/Form_validation.php
@@ -658,7 +658,7 @@
// of another field? If so we need to grab its "field label"
if (isset($this->_field_data[$param]) AND isset($this->_field_data[$param]['label']))
{
- $param = $this->_field_data[$param]['label'];
+ $param = $this->_translate_fieldname($this->_field_data[$param]['label']);
}
// Build the error message