The DonationInterface extension has 22 messages that include <a href. All of them are in DonationInterface/gateway_common/i18n/interface/en.json:
- donate_interface-processing-error
- donate_interface-donor-opt_in_explain
- donate_interface-donor-opt_in_explain_001
- donate_interface-error-msg-invalid-country
- donate_interface-error-msg-limit
- donate_interface-error-msg-apple_pay_unsupported
- donate_interface-error-msg-google_pay_unsupported
- donate_interface-donate-error-try-a-different-card-html
- donate_interface-donate-error-try-again-html
- donate_interface-donation-cancelled
- donate_interface-error-no-form-html
- donate_interface-question-comment
- donate_interface-otherways
- donate_interface-otherways-in
- donate_interface-otherways-alt
- donate_interface-did-you-mean
- donate_interface-email-unsub-fail
- donate_interface-email-unsub-warning
- donate_interface-email-optin-fail
- donate_interface-informationsharing
- donate_interface-taxded-msg-x
- donate_interface-photo-license
Translations of messages with <a href have to be manually reviewed when they are imported from translatewiki to Gerrit. This is time-consuming for the translatewiki volunteers and maintainers. It's error-prone, too. It would be nice to get rid of them.
As far I can see, all of those DonationInterface messages have href values of three types:
- mailto:$1 (or some other number after $)
- $1 (or some other number after $)
- #
So none of them need any customizations by translators. This is good, and probably makes things easier to fix.
For example, donate_interface-donor-opt_in_explain is currently *Your information is handled in accordance with our <a href="$1">Donor Privacy Policy</a>. Each email you receive will include easy unsubscribe options. The words "Donor Privacy Policy" can probably be moved to a different message, then it can be wrapped in run-time in <a href="$1">...</a>, and inserted into donate_interface-donor-opt_in_explain as a parameter.
Finally, the original message will become something like *Your information is handled in accordance with our $1. Each email you receive will include easy unsubscribe options. (And the qqq must say that $1 is that other message, but that's the easiest part.)
I appreciate any help with completing this. Once this is achieved, localizing donation interface will be more streamlined and secure. Thanks! <3