The addition of i18n functionality in simplenews (http://drupal.org/node/270082) enabled registered users to receive newsletters in their preferred language.
The attached patch add this possibility for anonymous users. With one difference that anonymous users can not select or change the language of their preference. They are subscribed to a language based on the site language of the page they subscribe to. For example when they subscribe at example.org/fr/newsletter/subscriptions there preferred language will be French. When they subscribe at example.org/newsletter/subscriptions there preferred language will be the site's default language.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

milos1234’s picture

does this patch work for the latest version?
thanks

Sutharsan’s picture

yes, it's included.

-Anti-’s picture

Is this capability still a patch, or is it now included in the simplenews module as a feature?

Thanks.

broon’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Closed (fixed) » Needs review
FileSize
3.05 KB

I am maintaining several multi-lingual sites and I was missing the functionality mentioned above in 2.x branch. So I made a small patch which retrieves enabled languages and displays a language chooser in simplenews block.

Cheers,
Paul

miro_dietiker’s picture

Status: Needs review » Needs work

We try to avoid cluttering the interface. We even removed other form parts recently.
There might be pages that don't care about preferred languages of users where display of the language selector is wrong.

It is also currently impossible to edit the language preference for anonymous subscribers. (The issue extends then to self-management of anonymous subscribers)
Note that for regular users, their user preferred interface language is taken into consideration.

If we open this discussion, we should work on a more complete solution and reconsider multilingual management.

broon’s picture

I understand your intention to avoid to many form elements. So maybe an admin option to dis/enable a language chooser would be a solution?

As for the change of language for already subscribed "newsletter users" (anonynmous) I'm working on a solution right now. Anonymous user just have to enter their email address and select a new language. My patched version of simplenews then checks for existing subscriber with that email address and updates the preferred language. This is pretty easy, but of course still misusable as there is no check. I'm concentrating on using double out for this language change.

In fact, I have several international clients who maintain multi-lingual newsletters. But they don't want to force subscribers to create an (drupal) account just to select a preferred language. That's why I made the (still incomplete) patch above (#5). If your experience says there's no much need of this, I'd be fine, too (saves me some time on generalising the patch) and we can close this issue again.

Regards,
Paul

miro_dietiker’s picture

What you could do is making all subscribers signup.
There are modules that e.g. build usernames automatically from mail.
Then a signup could be mail + password + newsletter to signup.

After the signup users could use their account settings to change settings of preference...

Regarding subscriber settings / data and multilanguage, there's a huge need. But in the current situation i feel it's wrong to implement workarounds with incomplete coverage and exposure...

Simon Georges’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev

Moving all feature request to 7.x.

  • Sutharsan committed 3effad4 on 8.x-1.x
    #285719 by myself: Allow anonymous users to subscribe with a preferred...