Coder Social home page Coder Social logo

Comments (7)

fjbender avatar fjbender commented on July 29, 2024

I can't reproduce this. Once the language is set, messages are displayed in the corresponding language:
image
(In admin backend PAYONE -> General -> Payment Creditcard -> Custom Styling hosted iFrame)

image

However, I agree that this is quite hard to find.

from magento-2.

fischamhaken avatar fischamhaken commented on July 29, 2024

Hi,
yes, its really hard to find :-)
I actualized this....
clipboard03

..but error is displayed in english:

clipboard02

I found code for translation via grep for this not translated string (next screenshot) in
/vendor/payone-gmbh/magento-2/view/frontend/web/js/view/payment/method-renderer/creditcard-method.js: $t("Please enter complete data.")

clipboard01

I added translation for this to /i18n/de_DE.csv and after clearing cache - voilá: error message is translated. So it seems, some messages are translated, and some not. It's strange to see your translation for "Expiry date invalid..." - I could not find this string in whole magento installation?! Is this translated remote?

from magento-2.

fjbender avatar fjbender commented on July 29, 2024

Yes, some of the messages are generated on our platform (i.e. whenever card date had been verified) and some are generated from the shop (i.e. when fields are incomplete).

Can you provide a PR for the added translations? :)

from magento-2.

fischamhaken avatar fischamhaken commented on July 29, 2024

Just for information - if others have same issue:
These are the strings i can not translate:
clipboard05
clipboard06
clipboard07

The only translation working is
"Please enter complete data.","Bitte geben Sie die Kreditkartendaten vollstaendig ein."

Sorry, I don't know how to create PR (Pull Request??)
Instead I added you my de_DE.csv

de_DE.zip

from magento-2.

fjbender avatar fjbender commented on July 29, 2024

Thanks for the updated CSV, I will create a pull request with that.

The other messages should be translateable through the (hidden) language selection in the admin backend, as they are generated platform-side.

from magento-2.

fischamhaken avatar fischamhaken commented on July 29, 2024

Another point at this issue: Is it possible that call to credit card provider does not accept language ("deutsch") - in test cases I noticed that 3D-Secure Page is complete english too, have a look at screenshot.
clipboard09

from magento-2.

fjbender avatar fjbender commented on July 29, 2024

As I see it, our 3D Secure test page is only available in English. In live mode, the 3D Secure page is provided by the bank of the customer, which should automatically be in the right language.

from magento-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.