Support » Plugin: WooCommerce » Incorrect display of Woocommerce e-mails to customers

  • Resolved fermanus

    (@fermanus)


    Hi,

    In woocommerce “order completed” and “refund” e-mails there is a variable ‘%s’ that I understand should be replaced by the site’s name. For example in my case the “completed order” mail should display:
    “Bonjour. Votre commande récente sur les-collections-pop a été expédiée. Le récapitulatif de votre commande est affiché ci-dessous :”
    This is the French translation of:
    “Hi there. Your recent order on les-collections-pop has been completed. Your order details are shown below for your reference”
    In my case, “les-collections-pop” is just not shown (Votre commande récente sur a été expédiée.etc) and the sentence is grammatically incorrect.

    So my questions. Is this a known problem which has already been solved or could it be due to some weird translation issues (although I doubt it as the code is the same regardless of the displayed language)? Otherwise what could be the reason for that?

    I should add that I could not find where this French translations are located. Not in .po folders anyway.

    Thank you in advance for your help.

    Fermanus

    site features only a “coming soon” page at the moment.

    https://wordpress.org/plugins/woocommerce/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Thread Starter fermanus

    (@fermanus)

    Thanks.

    I checked the translation. It is correct but of course I still have the issue indicated in my previous post. This is a weird problem. Any idea?

    Thanks for your help

    Fermanus

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Is there a %s? Maybe the version on your site is not current.

    Thread Starter fermanus

    (@fermanus)

    Yes, the %s is present in the translation (page 20 https://translate.wordpress.org/projects/wp-plugins/woocommerce). I have just recently updated wp, woocommerce, plugins and theme so everything should be OK. When I said earlier that “I could not find where these French translations are located. Not in .po folders anyway” I meant in the wp /wc folders of my site. If the French sentence is being (even incorrectly) displayed it must be somewhere in the wp/wc folders and I should be able so see it but in fact I can only see the English version in woocommerce/templates/e-mails/plain.
    I see:
    …`echo “= ” . $email_heading . ” =\n\n”;

    echo sprintf( __( “Hi there. Your recent order on %s has been completed. Your order details are shown below for your reference:”, ‘woocommerce’ ), get_option( ‘blogname’ ) ) . “\n\n”;

    echo “=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n”;`
    but nothing in French

    This is quite mysterious

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    O, those options are stored in the DB. See the email settings screen.

    Thread Starter fermanus

    (@fermanus)

    OK, no mystery anymore. My mistake: when I created the site, several months ago, I left “site title” blank in wp settings and I never thought about that anymore. Stupid isn’t it? Of course with a title for the site it works much better.

    Sorry for that and thank you for your time.

    Fermanus

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Incorrect display of Woocommerce e-mails to customers’ is closed to new replies.