Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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?
Comment | File | Size | Author |
---|---|---|---|
payment_method_options_translation.patch | 712 bytes | a.milkovsky | |
Comments
Comment #1
a.milkovskyComment #2
XanoI'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.
Comment #3
a.milkovskyFor me it worked. I use it for translation of the strings in the "payment method" selection widget.
Comment #4
marcvangendYou 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.
Comment #5
torotil CreditAttribution: torotil at more onion commentedI agree with #4. This needs another approach.