• Hai, after I activated this plugin, my shop get translated. But the transalation for “add to cart” button is just too long. SO I want to change/edit it. Strangely, I could not find it the word add to cart in the page Translate language file.

    The word exists in the .po file. But even if I changed it there, the translation still using the same old one.

    So how do I suppose to change it?

    https://wordpress.org/plugins/codestyling-localization/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you create the .mo file from the .po ?

    Thread Starter ekajuan

    (@ekajuan)

    Hai Webby,

    I didn’t.

    And yea after I did it. It works.

    But then I find another problem, there’s a translation that doesn’t show up.

    In the .po file I can see the translation is already there:

    #: templates/single-product-reviews.php:71
    #@ woocommerce
    msgid “There are no reviews yet, would you like to submit yours?”
    msgstr “Belum ada ulasan, maukah anda untuk menulis ulasan Anda?”

    But even I generate the .mo file. My shop, for that particular line is still using the original language.

    What happened? How to fix it?

    Thread Starter ekajuan

    (@ekajuan)

    I already figure out the problem.
    It turns out that the problem was the source language in .po contains some html code that’s different from the one in the coding itself (single-product-reviews.php)

    in .po:
    There are no reviews yet, would you like to <a href=\"#review_form\" class=\"inline show_review_form\">submit yours</a>?

    in single-product-reviews.php:

    There are no reviews yet, would you like to <a data-toggle="collapse" data-parent="#review_form" href="#review_form" class="inline show_review_form">submit yours</a>?

    So I fixed it.

    But now in the new update of WC 2.1.2 lines and phrases the old translation (Indonesia) be used anymore. I have to rescan it and as the result, many have disappear and I have to translate them again on my own.

    And particularly for the line I mentioned above has turn into : “There are no reviews yet” only.

    Damn…I spent days to figure out this problem and now.. 😐

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Woocommerce Add to Cart Transalation’ is closed to new replies.