Support » Fixing WordPress » Warning: sprintf()

  • Resolved Artprofile

    (@artprofile)


    Hi, how can I solve it. It show only if I setting IT languages.
    I used loco translate to make some modification, but after a few word this is show in my product page.

    Warning: sprintf(): Too few arguments in /web/htdocs/www.xxx.com/home/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 1185

    Warning: sprintf(): Too few arguments in /web/htdocs/www.xxx.com/home/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 1185

    Warning: sprintf(): Too few arguments in /web/htdocs/www.xxx.com/home/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 1185

    • This topic was modified 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 3 replies - 1 through 3 (of 3 total)
  • Joy

    (@joyously)

    You should ask in the plugin’s support forum.
    https://wordpress.org/support/plugin/woocommerce/

    Artprofile

    (@artprofile)

    Solved. Was a traduction problem. Tks
    /* translators: %s: stock amount */
    $display = sprintf( __( ‘Only %s left in stock’, ‘woocommerce’ ), wc_format_stock_quantity_for_display( $stock_amount, $product ) );
    }

    Artprofile

    (@artprofile)

    /* translators: %s: stock amount */
    $display = sprintf( __( ‘Only %s left in stock’, ‘woocommerce’ ), wc_format_stock_quantity_for_display( $stock_amount, $product ) );
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.