Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Mohammed N.

    (@nomans_beauty)

    Hi, can anyone atleast response??? We copied templates files from plugin into our theme, rest strings pass well but this one is showing warning. Please help.

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    woocomerce is not spelt correctly. woocomerce does not appear in core files either so its not core.

    I’ve come up with similar message:

    WARNING: Found a translation function that is missing a text-domain. Function __, with the arguments ‘woocommerce’

    This type of message is usually when translating variables.

    A WooCommerce template: cart-totals.php has similar code.

    I assume you copied this template.

    e.g:

    __( WC()->countries->countries[ WC()->countries->get_base_country() ], 'woocommerce' )

    I hope it helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Getting WARNING: Found a translation function’ is closed to new replies.