Plugin Author
taisho
(@taisho)
That’s a nice piece of work! Thanks for reporting this problem. Both Ajax Cart AutoUpdate and Qty Increment Buttons work with .mo translation file (there is one for Spanish included). I will check why it doesn’t work with translate.wordpress.org within 2 days and hopefully have it fixed.
Best regards,
Ryszard
Plugin Author
taisho
(@taisho)
Hello,
I’m very sorry for the delay. I updated Ajax Cart AutoUpdate and hopefully, it can now support your translations. I will be updating Qty Increment Buttons for WooCommerce at the end of this weekend.
Best regards,
Ryszard
Plugin Author
taisho
(@taisho)
I found the reason and got a working solution – tested on today’s release of Extra Settings for WooCommerce. I’ll try to get both ACAU and QIB updated in the next few days.
Some of the strings were properly listed on translate.wordpress. However, unlike many programs to generate translation strings from code, translate.wordpress can’t extract strings passed to the translation function as a variable.
For example, this one can’t be used to translate an array with titles:
__( $arr[$key]['title'], 'ajax-cart-autoupdate-for-woocommerce' )
Instead, all titles in this array, for example Update delay
, need to be replaced with translation function like this:
__('Update delay', 'ajax-cart-autoupdate-for-woocommerce' )
So they are already translated when used as variables:
$arr[$key]['title']
-
This reply was modified 4 years, 4 months ago by taisho.
Plugin Author
taisho
(@taisho)
I released a new version, the strings are now correctly automatically loaded:
https://translate.wordpress.org/projects/wp-plugins/ajax-cart-autoupdate-for-woocommerce/dev/ru/default/
I will do a similar update for Quantity Increment Buttons for WooCommerce this evening. Once again – many thanks for bringing this to my attention and sorry for the wait!
Спасибо!! Все работает отлично, перевод появился!