Support » Plugin: Ajax Cart AutoUpdate for WooCommerce » Перевод плагина

  • Плагин не готов к переводу.
    Я перевел и его и страницу в каталоге.
    Страница – на русском.
    Плагин – остался без перевода

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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 days, 6 hours ago by taisho.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.