Translation Problem in cart-totals-block

This topic has 13 replies, 3 voices, and was last updated 7 years, 10 months ago ago by Jack Richardson

  • Avatar: svenheppe
    svenheppe
    Participant
    May 24, 2016 at 23:13

    Hi,

    I have a translation problem in cart-totals-block and checkout:

    There is always written:
    inkl. xx,xx€ MwSt. 19% (incl. amount VAT 19%).
    Nobody would tranlate that like this 🙂
    How can I change it to: “inkl. 19% MwSt.: xx,xx€” ?

    Perhaps I could change it with the some code like this:
    function translate_reply($translated) {
    $translated = str_ireplace(‘Go to Checkout’, ‘Warenkorb anzeigen’, $translated);
    return $translated;
    }

    The best way would be a new row at the end:
    VAT xx,xx€
    If that is an option…

    Thx for your help 🙂
    Sven

    Please, contact administrator
    for this information.
    12 Answers
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 25, 2016 at 08:16

    Hello,

    Please update the theme to the latest version and Woocommerce as well.
    Before update delete “woocommerce” folder in the directory wp-content/themes/legenda/ and it’ll be reuploaded from a new theme package.
    Also update all required plugins https://www.8theme.com/download-plugins/ .

    Don’t forget to create back up of your files and database before starting update process!

    Then update woocommerce translation files in wp-content/languages/plugins directory.

    Best regards,
    Jack Richardson.

    Avatar: svenheppe
    svenheppe
    Participant
    May 27, 2016 at 13:16

    Hi Jack,

    thanks for your help.

    I think I made a mistake. I’ve updated the theme like in the video.
    Now I get this alert:

    Fatal error: Call to undefined function et_html_tag_schema() in /homepages/0/d611822547/htdocs/Original/wp-content/themes/legenda/header.php on line 2

    How can I fix that?

    Greetings, Sven

    Avatar: svenheppe
    svenheppe
    Participant
    May 27, 2016 at 13:44

    And there is a second error:

    Fatal error: Call to undefined function et_page_heading() in /homepages/0/d611822547/htdocs/Original/wp-content/themes/legenda/woocommerce/single-product.php on line 20

    … 🙁

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 27, 2016 at 14:36

    Hello,

    Please provide FTP and WP Dashboard credentials in private content.

    Best regards,
    Jack Richardson.

    Avatar: svenheppe
    svenheppe
    Participant
    May 28, 2016 at 12:07

    Hi,

    here it is.
    Thanks a lot.

    Greetings Sven

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    May 30, 2016 at 08:37

    Hello,

    FTP credentials are incorrect.
    Please check them.

    Regards,
    Eva Kemp.

    Avatar: svenheppe
    svenheppe
    Participant
    May 31, 2016 at 09:48

    Sorry for that..
    All in private content

    Greetings Sven

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 31, 2016 at 11:15

    Hello,

    I don’t see any errors on your site and the words are translated on Cart page:
    http://storage8.static.itmages.com/i/16/0531/h_1464689683_8113228_1ea9280e45.jpeg

    Have you resolved the issue?

    Best regards,
    Jack Richardson.

    Avatar: svenheppe
    svenheppe
    Participant
    May 31, 2016 at 11:51

    Hi Jack,

    that was another story… And it’s still incorrect 🙂
    If the “19%” would be deleted it would sound correctly in German, it’s simply not in the right position (grammar problem). Correct would be: “inkl. 19% Mwst.:” and then the amount.
    100% perfect would be on the left side “inkl. 19% Mwst.” and on the right side the amount.
    In German Shops the VAT has in most cases his own row.

    And now the upcoming errors:
    First to know: I deleted the header.php which came with the update, and I uploaded the old header.php from the backup. That’s the reason why you and I can reach to the page at the moment. I can put in the new one if you want me to do this, then you can see the error like I’ve written before:

    Fatal error: Call to undefined function et_html_tag_schema() in /homepages/0/d611822547/htdocs/Original/wp-content/themes/legenda/header.php on line 2

    The second error is on single product page. Here comes the second Error:

    Fatal error: Call to undefined function et_page_heading() in /homepages/0/d611822547/htdocs/Original/wp-content/themes/legenda/woocommerce/single-product.php on line 20

    Thanks for your help!
    Greeting Sven

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 31, 2016 at 14:55

    Hello,

    You’re still using old theme version http://storage1.static.itmages.com/i/16/0531/h_1464702923_5180469_391ba2e54d.jpeg .
    Please update the theme to the latest version 3.0.1.
    Before update delete “woocommerce” folder in the directory wp-content/themes/legenda/ and it’ll be reuploaded from a new theme package.

    Best regards,
    Jack Richardson.

    Avatar: svenheppe
    svenheppe
    Participant
    June 1, 2016 at 22:27

    Hi Jack,

    Ok. I didn’t recognize that, but perhaps we found the problem.
    I think I made a mistake while doing the update, now it’s done.

    Last question:
    You wrote “Then update woocommerce translation files in wp-content/languages/plugins directory.”
    How do I do that?

    Greetings Sven

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    June 2, 2016 at 08:08

    Hello,

    Please read here how to update .po/.mo files:
    http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./ (“Updating a .po (and .mo) file”).

    Best regards,
    Jack Richardson.

  • Viewing 13 results - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.