• Resolved ucsendre

    (@ucsendre)


    Hello,
    I can not translate the ” Credit card / debit card ” text (the label of #payment_method_woocommerce_payments).
    I have tried Loco Translate and I have found and translated the string but it does not work. All caches cleared.
    All other front side texts of the plugin are translated, but this label is not.

    Please see screenshot:
    https://www.screencast.com/t/V8ZYOou3

    I would like to use this plugin on another webshops with much higher sales volume, but I can not roll out a half ready solution.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Shameem R. a11n

    (@shameemreza)

    Hey @ucsendre,

    Could you please check if you’ve added the translated text to the right one out of the four available “Credit card / debit card” strings?

    Direct link: https://dsh.re/146923

    If you believe you have translated the right one, but still not showing, could you please check whether the text is overriding by another plugin?

    Additionally, can you head over to WooCommerce → Status → Tools, and do the following:

    • WooCommerce transients – Clear
    • Expired transients – Clear
    • Clear template cache – Clear
    • Capabilities – Reset Capabilities
    • Clear customer sessions -Clear

    Next, please clear your browser and site cache and then check again.

    If this makes no difference, please share a copy of your site’s System Status Report so that we can better understand your site’s current environment.

    You’ll find it at the top of the page under WooCommerce > Status > Select Get System Report and Download for Support. This will download a TXT file containing the SSR’s contents to share. Once you have the System Status Report file, please share it via Mozilla Community Pastebin and share the link here.

    Let us know how that goes. Looking forward to helping you.

    Thread Starter ucsendre

    (@ucsendre)

    Hello @shameemreza

    I have translated all possibile strings using Loco.

    (link: https://ibb.co/1MCBWwT )

    I have also ran those tools as you suggested, cleared the cache, opened the site in an incognito (private mode) browser window, but the text remains untranslated.

    Please find woocommerce system info here:
    https://prod.pastebin.prod.webservices.mozgcp.net/tVCda9Jq

    Thanks and regards,
    Endre

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @ucsendre,

    Thank you for providing additional information.

    I checked your site and do noticed that the the text is not yet translated.

    From the System Status Report you’ve shared, I can see that you’re using several plugins, and your theme overrides some files related to the checkout page and payments form.

    porto/woocommerce/checkout/form-billing.php
    porto/woocommerce/checkout/form-checkout.php
    porto/woocommerce/checkout/form-coupon.php
    porto/woocommerce/checkout/form-login.php
    porto/woocommerce/checkout/form-pay.php
    porto/woocommerce/checkout/form-shipping.php
    porto/woocommerce/checkout/payment-method.php
    porto/woocommerce/checkout/payment.php
    porto/woocommerce/checkout/review-order.php
    porto/woocommerce/checkout/thankyou.php

    I recommend you temporarily deactivate all plugins except WooCommerce, WooPayments and Loco Translate, then check if the translation works.

    If it does, reactivate your plugins one by one and check the site after each activation to find out which one is causing the issue.

    Also, please check whether the Porto theme overrides this text or not. Just search these strings in the theme to verify it. Or, temporarily, you can switch to a default theme like Storefront to see if the issue comes from the theme.

    Please let me know the results of these tests. If the issue persists, please open a ticket about this from Woo.com > My Account > Support. You may need to create an account before you can access that page.

    Make sure to include a link to this thread so we know what has been done already.

    Looking forward to helping you.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi folks,

    I?wasn’t able to translate this text string via Loco Translate on my test site either so it looks like the translation is not working due to a different reason. After some further research, I see that the reason is described in a comment in this enhancement request:

    https://github.com/Automattic/woocommerce-payments/issues/5007

    Simply creating a translation in a “custom” location in Loco Translate is not enough and a second one needs to be added in the “System” location:

    Screenshot
    Screenshot direct link: https://d.pr/i/uwglMi

    Screenshot
    Screenshot direct link: https://d.pr/i/BaXpqv

    Screenshot
    Screenshot direct link: https://d.pr/i/MOxmMo

    I’ve notified our developers about this inconsistency in translation workflow again.

    It is also possible to change the text via a code snippet provided in this support document, and the Code Snippets plugin:

    Screenshot
    Screenshot direct link: https://d.pr/i/URFee5

    Screenshot
    Screenshot direct link: https://d.pr/i/KO0YRz

    I hope this helps!

    Thread Starter ucsendre

    (@ucsendre)

    Dear @grigaswp

    Your tip worked like a charm. <3 You have saved me spending my time digging into Porto theme’s template files.

    I just simply had to make a copy of my translation file in Loco to the “system” location, empty caches and voila – the magic happened ??

    Thank you very much indeed.

    Best regards,
    Endre

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Checkout page translation’ is closed to new replies.