Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
likely done wrong in more places; but this is first one i stumbled upon:
this function simplenews_confirm_removal_form();
has this code:
return confirm_form($form,
t('Confirm remove subscription'),
'',
t('You will no longer receive %newsletter mails.', array('%newsletter' => $newsletter->name)),
t('Unsubscribe'),
t('Cancel')
);
but newsletter name when passed as a var to t() does not get translated.
patch attached. i have dev from May
Comment | File | Size | Author |
---|---|---|---|
simplenews-i18nterms.patch | 1.13 KB | liquidcms | |
Comments
Comment #1
Simon Georges CreditAttribution: Simon Georges commentedThis includes a dependency to i18n module, I'm not sure we want that. It may eventually be possible to integrate that if you're adding
if module_exists('i18ntaxonomy')
around.Comment #2
liquidcms CreditAttribution: liquidcms commentedahh.. true.. yes.. i guess if should be there. unless someone comes up with better way of doing this.