Home Forums WC Vendors Pro Support How translate the dashboard menú Reply To: How translate the dashboard menú

#58863
Anna
Member

@jaralo
Hello!
Yes it does look like some of those tabs did not translate for you.
You can use some code in your functions.php to change those labels. These should be placed in your theme/child theme functions.php file Just change the label name to the appropriate text / language for your site.
This will change the DASHBOARD label:
https://gist.github.com/fervous/27c269b78b8af00b4f94d0447a014766

This should change the SETTINGS, RATINGS and COUPONS:

add_filter('wcv_pro_dashboard_urls', 'custom_wcv_pro_dashboard_urls_settings');
  function custom_wcv_pro_dashboard_urls_settings( $args ){
    $args['settings']['label'] ='My Settings Label';
    return $args;
}
add_filter('wcv_pro_dashboard_urls', 'custom_wcv_pro_dashboard_urls_shop_coupon');
  function custom_wcv_pro_dashboard_urls_shop_coupon( $args ){
    $args['shop_coupon']['label'] ='My Coupons Label';
    return $args;
}
add_filter('wcv_pro_dashboard_urls', 'custom_wcv_pro_dashboard_urls_rating');
  function custom_wcv_pro_dashboard_urls_rating( $args ){
    $args['rating']['label'] ='My Ratings Label';
    return $args;
}