Title: Function request &#8211; Translate
Last modified: November 11, 2022

---

# Function request – Translate

 *  [AIRBEES](https://wordpress.org/support/users/airbees/)
 * (@airbees)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/function-request-translate/)
 * Please add translate for message “The date of birth must be a valid date” which
   show up after verification with blank dropdown inputs.
 * Thank you very much.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Phil](https://wordpress.org/support/users/philsbury/)
 * (@philsbury)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/function-request-translate/#post-16225086)
 * Hi [@airbees](https://wordpress.org/support/users/airbees/),
 * Yes I’ll get that added – it has some languages built in but not all so will 
   get it in the settings.
 * While I’m doing that, you can translate it with a filter in your functions.php
   like this:
 *     ```
       add_filter('age_gate/validation/messages', function($messages) {
           $messages['date'] = 'Your error message';
   
           return $messages;
       });
       ```
   
 * Thanks
    Phil

Viewing 1 replies (of 1 total)

The topic ‘Function request – Translate’ is closed to new replies.

 * ![](https://ps.w.org/age-gate/assets/icon-256x256.png?rev=2783003)
 * [Age Gate](https://wordpress.org/plugins/age-gate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/age-gate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/age-gate/)
 * [Active Topics](https://wordpress.org/support/plugin/age-gate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/age-gate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/age-gate/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Phil](https://wordpress.org/support/users/philsbury/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/function-request-translate/#post-16225086)
 * Status: not resolved