Closed (fixed)
Project:
User Alert
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 May 2013 at 22:24 UTC
Updated:
5 Jun 2013 at 18:30 UTC
Just a quick patch that allows for translated user alert content to be displayed to the proper site based on the global language code setting.
The content type needs Multilingual support 'Enabled, with translation' turned on. Then if you create an alert node in each language of your site, they will each display on their respective sites.
| Comment | File | Size | Author |
|---|---|---|---|
| nodetranslation.patch | 1.58 KB | DanielWashbrook |
Comments
Comment #1
kevinquillen commentedComment #2
kevinquillen commentedPatch looks good. Also noticed and changed the static values 0 and 1 to NODE_PUBLISHED and NODE_NOT_PUBLISHED in those queries.
Comment #3
kevinquillen commentedIf multilingual is not enabled, the language in the query needs to be 'und' or the query will fail otherwise.
Comment #4
kevinquillen commentedIf no content translation is enabled, the query will use LANGUAGE_NONE so it does not fail for non-translated sites. I enabled Locale, Content Translation and Entity Translation (for Field level translation, aka Body field) and was able to create content in a few languages and only see them when requested.