Would be good to have a possibility to translate payment method options:
Example for German: "SEPA direct debit" => "SEPA Lastschrift".

Currently payment method options are not translatable.
We can just add the t() function in the right place.

What do you think about the patch?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

a.milkovsky’s picture

Status: Active » Needs review
Xano’s picture

Version: 7.x-1.14 » 7.x-1.x-dev
Related issues: +#2461051: i18n translation of Payment Method title/Payment Form Message

I'm not sure we can do that, but please correct me if I'm wrong. These strings are not recognizable by the translation system in any way, which means the system will have no way of knowing what language the source strings are in.

a.milkovsky’s picture

For me it worked. I use it for translation of the strings in the "payment method" selection widget.

marcvangend’s picture

You may want to read https://openconcept.ca/blog/matt/translating-user-entered-strings-d7 to understand why translating variable values with t() is a bad idea and learn about an alternative. http://drupal.stackexchange.com/questions/9362/is-it-always-bad-to-pass-... is interesting too.

torotil’s picture

Status: Needs review » Needs work

I agree with #4. This needs another approach.