Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1003098

    Hello, sorry my english bad !
    how and where can i translate (on Russian) mail template? contact form?
    I need to change on the Russian – true and false words

    https://hkar.ru/ViUJ

    Checkbox element in the letter writes – “true”, I want to change to – “да”

    • This topic was modified 6 years, 3 months ago by rusrace.
    #1003111

    Hey rusrace!

    Try adding this at the very end of your theme / child theme functions.php file:

    
    add_filter('avf_form_mail_field_values', 'avia_change_checkbox_return_values', 10, 4);
    function avia_change_checkbox_return_values($value, $new_post, $form_elements, $form_params){
    if($value == 'false') $value = 'No';
    if($value == 'true') $value = 'да';
    return $value;
    }
    

    You can also replace “No” with a custom value.

    Best regards,
    Peter

    #1003118

    Hoi Dude!

    big thanks ! all work!

    #1003130

    Hi,

    Great, glad I could help you :)

    Best regards,
    Dude

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.