WordPress.org

Forums

WooCommerce - excelling eCommerce
Woocommerce Billing form label and Payment method translations (12 posts)

  1. ralphonz
    Member
    Posted 1 year ago #

    Hi All,

    For some reason the labels for the form fields (First Name, Last Name, Company Name, Post Code etc) is not translated but the rest of the checkout is.

    I have checked these strings using codestyling localisation, and they seem to be translated but I am not seeing it on the front-end. You can add this to your cart and checkout to see for yourself: http://www.wire-design.nl/shop/green-wall/

    Please help!
    Thanks

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

  2. mhenschel
    Member
    Posted 1 year ago #

    Same problem
    WC 2.1.11

  3. lorro
    Member
    Posted 1 year ago #

    @ralphonz
    Your link gives a "This webpage is not available" error.

  4. thiarez
    Member
    Posted 1 year ago #

    same problem.

    my website: http://lojavirtualcart.com.br/euquero/

    the problem is exectly the same of ralphonz has described.

    Thank you!

  5. mezini
    Member
    Posted 1 year ago #

    Same problem

    WC 2.1.11

  6. lorro
    Member
    Posted 1 year ago #

    You can wait and see if Woo will update the language files, but if you don't want to wait, various background reading and methods, including a plugin, are here.

    Here is one method. I am using Spanish as an example.

    Bring up wp-config.php in a text editor and look for the line:
    define('WPLANG', 'es_ES');
    This will give you your language identifier, in this case its "es_ES"

    Go to wp-content/plugins/woocommerce/i18n/languages
    and look for:
    woocommerce-es_ES.po
    Rename it with a .txt extension so you can edit it.

    Add a pair of lines at the end for each form label translation. The first is the English that appears now, the second line is the translation in your language. For example:
    msgid "Company Name"
    msgstr "Nombre de compañía"

    Change the file back to .po and download it to your hard drive.

    Compile your .po to .mo using this tool:
    http://po2mo.net/

    The converted filename might be:
    h5673b_woocommerce_es_ES.po
    change it to
    woocommerce-es_ES.po
    Ensure you get the underscores and hyphens right.

    Upload the .po to
    wp-content/plugins/woocommerce/i18n/languages
    overwriting the file that was there.

    If you have a page caching plugin, delete cached pages.

  7. mezini
    Member
    Posted 1 year ago #

    It's working now, i copied the old woocommerce-pt_BR.po and woocommerce-pt_BR.mo files.

    The define('WPLANG', 'es_ES'); was already in place. thanks for helping.

  8. thiarez
    Member
    Posted 1 year ago #

    perfect, only one thing, is necessary upload the .po and the .mo to:
    wp-content/plugins/woocommerce/i18n/languages
    overwriting the file that was there. (not only .po file)

    It's working perfectly now. Tks

  9. ralphonz
    Member
    Posted 1 year ago #

    Sorry for the lack of responses, I've been away.

    Thanks for all the replies. My link works for me...

    So - the woo commerce language file is incomplete? I would have thought the checkout would be top priority on the list of things to translate!

  10. lorro
    Member
    Posted 1 year ago #

    @ralphonz
    I'm still unable to load your site (from UK). I've used this tool:
    http://tools.pingdom.com/fpt/
    and your site loads from Dallas and NY USA but not from Amsterdam. So some issue with DNS setup.

  11. ralphonz
    Member
    Posted 1 year ago #

    @lorro

    Thanks, I've updated the DNS. Hopefully it should be fine now.

  12. flipgatt
    Member
    Posted 1 year ago #

    <<So - the woo commerce language file is incomplete? I would have thought the checkout would be top priority on the list of things to translate!>>

    that's right, it's simply unbelievable!!!

    how do we really solve the problem?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic