Closed (fixed)
Project:
Simplenews
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Feb 2011 at 16:51 UTC
Updated:
1 Jan 2012 at 15:10 UTC
The i18n_selection_mode function is not available on drupal 7 and it's not possible send emails with i18n module enabled
http://drupalcontrib.org/api/drupal/contributions--i18n--i18n.module/fun...
I attach a patch that comment the function until the rewrited code arrives
| Comment | File | Size | Author |
|---|---|---|---|
| simplenews_i18n_selection_mode.patch | 1.14 KB | mordonez |
Comments
Comment #1
miro_dietikerCommitted the quickfix...
We still needs a replacement solution.
Comment #2
simon georges commentedHi,
I just contacted Jose Reyero (main current i18n commiter) about a potential replacement function, his answer is :
I'll implement that when I have the time, unless somebody's willing to provide a patch.
Comment #3
berdirNeed to check this, I have no clue what the old code is supposed to do exactly. The used argument "node" does not exist in the documentation: http://drupalcontrib.org/api/drupal/contributions--i18n--i18n.module/fun...
Comment #4
miro_dietikerNote that the selection mode is highly relevant for pluggability.
In a regular situation Drupal has one language per request. With simplenews, the language sometimes is needed to switch to the recipient language instead of the language of the current session.
Regarding pluggability, think about the following case:
If a newsletter contains e.g. nodereferences to nodes and the theming code automatically fetches teasers of those referred nodes, the behaviour of the nodereference field is subject of pluggability. With a translateable nodereference, the system might be able to automatically switch to a translated referred node based on the tnid instead of the direct referenced nid. However the nodereference code only would be able do this while it understands the current recipient language, not the language of the original request.
Also disabling the i18n_selection_mode / i18n_select disables i18n query alters.
Check i18n_select/i18n_select.module in i18n_select_query_node_access_alter()
It reduces node lists to e.g. current languages only which might be wrong as stated above.
Referring back to the original multilanguage support issue
#996392: Multilanguage support
Comment #5
berdirThis as been fixed in #700308: Allow separate theming of each individual outgoing email instead of caching the prepared newsletter