mozilla / donate.mozilla.org

Mozilla donation platform
https://donate.mozilla.org
Mozilla Public License 2.0
62 stars 47 forks source link

L10N: Localize SEPA mandate #1886

Open gideonthomas opened 6 years ago

gideonthomas commented 6 years ago

We (will, still working on adding it) show the following legal text:

By providing your IBAN and confirming this payment, you are authorizing Mozilla Foundation and Stripe, our payment service provider, to send instructions to your bank to debit your account and your bank to debit your account in accordance with those instructions. You are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited.

above the Submit button on the SEPA donation form that looks like:

screen shot 2017-11-15 at 12 28 09 pm

We are enabling this form for the locales mentioned in https://github.com/mozilla/donate.mozilla.org/issues/1849#issue-271630781. As such, we need to make sure that the mandate is localized. Since it is legal text, SEPA already provides the localized versions of this here: https://www.europeanpaymentscouncil.eu/other/core-sdd-mandate-translations. How do we integrate it into our application? We need a way to tell Pontoon not to translate this "key" since we will be manually adding the values (from the website I link to above) for the locales listed in that issue.

@TheoChevalier any suggestions on how we might accomplish this?

TheoChevalier commented 6 years ago

@gideonthomas I suggest we don’t use .properties at all for this specific string. The easiest way to deal with this, since no one will edit these translations, is to hardcode them and deal with them on the code side:

Switch (locale) { fr: "French string" default: "English string" }

Does that make sense?

gideonthomas commented 6 years ago

UPDATE: Unassigning myself due to SEPA Direct Debit work being blocked on acquiring a Creditor ID

ok yeah that makes sense! Thanks! I'll make this an engineering task then.

assigning to me for now to copy/paste all the copy from the SEPA page out here.