Translate Woocommerce Buttons - by C2market

This topic has 14 replies, 3 voices, and was last updated 7 years, 11 months ago ago by Eva Kemp

  • Avatar: C2market
    C2market
    Participant
    April 27, 2016 at 10:39

    There are certain elements of my woocommerce parts that are not translating such as Add to Cart Buttons, Description tabs etc.

    How do I go about translating those.

    13 Answers
    Avatar: Eva
    Eva Kemp
    Support staff
    April 27, 2016 at 11:09

    Hello,

    Please provide us with FTP credentials.
    Show a direct page where the words aren’t translated.

    Regards,
    Eva Kemp.

    Avatar: C2market
    C2market
    Participant
    April 29, 2016 at 13:58

    http://atlantavive.2marketwebsites.com/wordpress/winkel/
    http://atlantavive.2marketwebsites.com/wordpress/shop/ocean-oak-navul-pak/

    The add to cart button and the description and review tabs aren’t translating
    Also when you click Add to Cart the pop up window is not translated – the buttons continue shopping and checkout are still in english

    The checkout pages are still in english etc.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    April 29, 2016 at 14:34

    Hello,

    As you’re using Polylang plugin to translate the theme you have to translate default.po file in the directory wp-content/themes/legenda/languages and name it with your language prefix you created in Polylang en_EN and nl_NL. So you’ll have 2 .po files nl_NL.po and en_EN.po and 2 .mo files accordingly.
    How to work with .po files you can read here https://www.8theme.com/demo/docs/legenda/index.html#!/how_to_translate .

    Regards,
    Eva Kemp.

    Avatar: C2market
    C2market
    Participant
    May 3, 2016 at 16:08

    Hi Eva,

    I am confused as to the editing of the wpconfig file. I cant see where to add in the code.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 3, 2016 at 16:21

    Hello,

    You can add “locale” code under the opening php tag <?php at the beginning.

    Best regards,
    Jack Richardson.

    Avatar: C2market
    C2market
    Participant
    May 3, 2016 at 17:01

    And if I have english and dutch languages do I have to upload two separate PO Files?

    Avatar: C2market
    C2market
    Participant
    May 3, 2016 at 17:02

    And do I add the locale code twice in wp-config?

    Avatar: C2market
    C2market
    Participant
    May 3, 2016 at 17:03

    Also, the PO file from the theme doesnt give me the option to change the Add to Cart Button.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 3, 2016 at 21:28

    Hello,

    And if I have english and dutch languages do I have to upload two separate PO Files?

    Yes, you should create translation files for both languages.

    The Add to Cart Button is related to Woocommerce plugin. You need translate their files too https://docs.woothemes.com/document/woocommerce-localization/#creating-custom-translations-with-poedit .

    Best regards,
    Jack Richardson.

    Avatar: C2market
    C2market
    Participant
    May 4, 2016 at 10:44

    The situation as it stands is

    1. I have created two PO files – one for en_EN & one for nl_NL – i have translated these in the POEDIT program saved and uploaded via FTP into the languages folder within the theme. I have also edited the wp-config file with both the EN & NL $locale codes

    Following from this, still only some of the items were translating
    Please see the shop overview page when in the NL Language and the Add to Cart is still in English whereas if you go into the product itself the Add to Cart is translated into Winkelwagen as I want it. Why is one button updating and not the other?

    I installed the Loco Translate plugin on to the website and did further translation using this but still nothing updating.

    Not only that, now when I log into the admin panel of the website the entire admin panel is in Dutch?

    Can someone please give me clear instructions into what I perhaps am doing incorrectly. This is becoming very frustrating. I have spent over 9 hours trying to figure this out.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    May 4, 2016 at 11:38

    Hello,

    You’re using a lot of translation plugins.
    We recommend to use only WPML as we know it’s fully compatible with the theme.
    If you want to use other plugin you have to contact its author to get instruction how to work with that plugin.

    We don’t guarantee full compatibility of other 3rd-party plugins with the theme.

    Activate all WPML plugins and translate the theme using String Translation https://wpml.org/documentation/getting-started-guide/ .

    Best regards,
    Jack Richardson.

    Avatar: C2market
    C2market
    Participant
    May 4, 2016 at 11:50

    I tried to upload the WPML but kept getting an error.

    Please, contact administrator
    for this information.
    Avatar: Eva
    Eva Kemp
    Support staff
    May 4, 2016 at 12:11

    Hello,

    As you can see the error is shown that there is a conflict with other plugin polylang. Delete it and install WPML.

    Regards,
    Eva Kemp.

  • Viewing 14 results - 1 through 14 (of 14 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.