Visser Labs on "[Plugin: WooCommerce Checkout Manager] not work translate"

ساخت وبلاگ

Hi. thanks for the plugin
I can not translate the text "is a required field." to Spanish

in the .PO file I change text

but not work
where I place the .po es_ES

thanks

https://wordpress.org/plugins/woocommerce-checkout-manager/

Hi W-P-Zar, I'll need to check that every instance of "is a required field" has been given WordPress Translation support, it's likely not all of them have been. We can fix this together via a minor Plugin update

Hi W-P-Zar, yes I can see that the 'is a required field' is done a few different ways and at least one of them is done wrong so I'll get that fixed now and include it in a minor Plugin update due in the next 24 hours :)

hi!
thanks
I have solved this way

add_filter( 'woocommerce_add_error', function( $message ) { $message = str_replace("is a required field","es un campo requerido",$message ); retu $message;
});

Hi W-P-Zar, that would do it in the interim! ;)

We're using the woocommerce-checkout-manager text domain throughout the Plugin so if you can take a moment once the next Plugin update is out to check over the Spanish translation I'd be very, very happy!

https://translate.wordpress.org/projects/wp-plugins/woocommerce-checkout-manager

Socialbeings
Member
Posted 13 hours ago #

Hi, thanks for the plugin.

I have the same problem with translations.
W-P-Zar: Where I can put that code?
Thank you

Hi Socialbeings, I'll make a change to the required notice so that it can be also overridden by a WordPress Filter. The next update goes out tomorrow and I can drop a PHP snippet for your WordPress Theme once it's out :)

Socialbeings
in functions.php
or in your own plugin functions

add_filter( 'woocommerce_add_error', function( $message ) { $message = str_replace("is a required field","es un campo requerido",$message ); retu $message;
});

sorry for my english

Visser Labs It is appreciated

Thanks W-P-Zar, that will replace the text of all WooCommerce error notices and should be added to your Theme's functions.php file. :)

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 63 تاريخ : پنجشنبه 2 ارديبهشت 1395 ساعت: 13:45