Support » Plugin: WooCommerce Payments » String “Popular payment methods” on cart page does not translate

  • Resolved w-sky

    (@w-sky)


    Hello there, we successfully installed WooCommerce Payments on our multilingual WPML (German/English) site and it seems to work fine. However the string “Popular payment methods” on the German cart page is not translated, although as I have verified, a correct German translation does exist in the supplied translations for WooCommerce Payments.
    All other strings are German too, so there seems to be a little problem with this particular string.

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Support Joey – a11n

    (@jricketts4)

    Hi @w-sky – I was able to find this string in the .pot file:

    #: includes/payment-methods/class-upe-payment-gateway.php:75
    msgid "Popular payment methods"
    msgstr ""

    Which plugin are you using for the translation?

    Thread Starter w-sky

    (@w-sky)

    Hi @jricketts4

    I am using WPML for the multilingual site, and also Loco Translate to fix or add missing translations. However, for WooCommerce Payments I did not change or add any translations, only using the translation that was included with the installation.

    I only used Loco Translate to look into the translations of the plugin and I could see that the German translation for “Popular payment methods” which is “Beliebte Zahlungsmethoden” does exist. But it is not displayed.

    Plugin Support Augustus – a11n

    (@augustuswp)

    Hello there,
    It might be that the theme is overriding the template and the string is not translated in the theme’s files.

    Can you check if the theme has the “Popular payment methods” string as well and if it’s translated properly into German?

    Thread Starter w-sky

    (@w-sky)

    Hello, I have searched for the string but no, it’s not there. Also I have deactivated all plugins except WooCommerce and WooCommerce Payments and switched to a default theme with Health Check Troubleshooting Mode to rule out theme or plugin conflicts.

    However here is another important detail: We are not using standard German “Deutsch” (de_DE) but formal German “Deutsch (Sie)” (de_DE_formal) on this site!
    I have noticed that when I temporarily switch our site to standard German then the string translations are okay.

    So the quick solution for me is to copy the standard German translation to formal German using LocoTranslate. It did not work with any setting, but after I moved the new translation files to the system folder instead of packet folder or individual folder, the WooCommerce Payments translations now work on our site.

    There seem to be just a very few front end strings containing actual non-formal German which I could quickly change with LocoTranslate.
    I think for future releases, WooCommerce Payments must include “Deutsch (Sie)” (de_DE_formal) translations.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @w-sky,

    Using Loco Translate I was able to locate the text Popular payment methods within woocommerce-payments-de_DE_formal.po file I created for WooCommerce Payments using Loco Translate.

    Image Link: https://cloudup.com/cuzBjvONib3

    I then translated the text string from Popular payment methods to be Popular Payment Methods Translated.

    Image Link: https://cloudup.com/csqb5Hx-XPa

    With the WordPress site language set to be Deutsch (Sie) The translated string displayed on the checkout page of WooCommerce.

    WordPress Site Language Setting

    Image Link: https://cloudup.com/cF5L0xfT6rx

    WooCommerce Payments on Checkout Page

    Image Link: https://cloudup.com/cd9e9epZ8PJ

    This test indicates that the translations for the WooCommerce Payments plugin are working as expected for the Deutsch (Sie) language. it could be something related to either WPML or your particular translation files which are preventing those translations from displaying on your site.

    For reference when I created the woocommerce-payments-de_DE_formal.po file using Loco Translate I stored that in this directory below.

    Image Link: https://cloudup.com/c6X7mrLob5Y

    I hope this helps.

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @w-sky,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can reopen it again if you need be.

    Thread Starter w-sky

    (@w-sky)

    Thanks. Well yes, I was able to solve the problem on our site this way too. However I think the formal German translation must be added to the official translations for WooCommerce Payments because there are a few non-formal texts which will display on the front end.

    So I’ve searched all standard German translations which I copied to formal German for pronouns like “you” (“du”, “dein”, “dir”, “dich”) and edited all translations which are not just back end texts.

    Plugin Support Adam a11n

    (@adamkheckler)

    Hmm, I am a little confused here. From what I’m seeing at these links, WooCommerce Payments doesn’t actually have any German translations whatsoever, formal or informal:

    https://translate.wordpress.org/locale/de/default/wp-plugins/woocommerce-payments/

    https://translate.wordpress.org/locale/de/formal/wp-plugins/woocommerce-payments/

    So I’m not sure how most of the strings are being translated in the first place, let alone the Popular payment methods string…

    When I switch my test site to the formal German, I see all the strings from WooCommerce Payments still in English. Screenshot:

    https://d.pr/i/AgHkU9/bdDEUkx6bS

    This is unfortunate, sure, but expected given that the translations I linked above are 0% complete.

    Can you let us know how you’re managing to translate (most of) WooCommerce Payments in the first place? From what I can see, even that should not be happening, unless I am misunderstanding something here.

    Thanks!

    Thread Starter w-sky

    (@w-sky)

    Hello, yes the same here regarding your screen shot: Most strings in the back end are not translated. Some are, for example “Payments” in the side menu is “Zahlungen”, however all strings that will be shown to the customer are translated. This translation (German de_DE non-formal) was automatically installed when I installed WooCommerce Payments the first time.

    It may be possible that the developers are not using translate.wordpress.org ?!?

    Plugin Support Chris M. – a11n

    (@csmcneill)

    Hi again @w-sky,

    Most strings in the back end are not translated. Some are, for example “Payments” in the side menu is “Zahlungen”, however all strings that will be shown to the customer are translated. This translation (German de_DE non-formal) was automatically installed when I installed WooCommerce Payments the first time.

    Are you referring to the Payments option on the sidebar of the WP Admin dashboard?

    This might be because Payments is a string that’s already found in the core WooCommerce plugin WooCommerce > Settings > Payments. Per the translations for WooCommerce on translate.wordpress.org, this appears to be the case: https://d.pr/i/1DzMxC

    It may be possible that the developers are not using translate.wordpress.org ?!?

    It’s not likely 🙂

    With that said, we would love some assistance getting WooCommerce Payments translated on translate.wordpress.org. If you’d like to voluneer (or know someone who would), here’s a link to our translator handbook:

    https://make.wordpress.org/polyglots/handbook/translating/glotpress-translate-wordpress-org/

    I hope this helps! Let us know if you have any further questions!

    Thread Starter w-sky

    (@w-sky)

    I find this strange: According to https://translate.wordpress.org/projects/wp-plugins/woocommerce-payments/ there is absolutely no German translation, but I do have a German translation here on my WordPress site.

    It was automatically installed and is located at languages/plugins/woocommerce-payments-de_DE.po with a size of 69.8 KB, last file update October 6, 2021 8:35 (with the recent v3.1.0 plugin update), last edited October 3, 2021 22:05, containing 349 strings (8 not translated).

    Using Loco Translate I have copied this translation to woocommerce-payments-de_DE_formal and edited a few strings which is o.k. so far.

    Plugin Support Con a11n

    (@conschneider)

    Automattic Happiness Engineer

    Howdy!

    I find this strange: According to https://translate.wordpress.org/projects/wp-plugins/woocommerce-payments/ there is absolutely no German translation, but I do have a German translation here on my WordPress site.

    Most translations are community driven. We don’t monitor them, we are just glad they got supplied 😉 Sometimes they get added but not catalogued. However your WordPress should always be able to retrieve them that is why you have a downloaded file available.

    Using Loco Translate I have copied this translation to woocommerce-payments-de_DE_formal and edited a few strings which is o.k. so far.

    Glad that is working 👍.

    Kind regards,

Viewing 12 replies - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.