Needs review
Project:
Node Notify
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Apr 2012 at 17:13 UTC
Updated:
21 Oct 2013 at 16:54 UTC
Jump to comment: Most recent file
Implement hook_variable_info() instead of using php constants for mail notification template body and subject. Use variable module's functions to allow integration with I18n module for multilingual mail notifications.
This ought to be scheduled for version 2, because such approach departs from Comment Notify.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | node_notify-multilingual_variables-1513730-2.patch | 1.24 KB | peacog |
Comments
Comment #1
peacog commentedI went ahead and made a patch for this. After you apply the patch, clear the cache and visit admin/config/regional/i18n/variable to enable the variables. Now when you edit Node Notify settings at admin/config/regional/i18n/variable you should see THERE ARE MULTILINGUAL VARIABLES IN THIS FORM at the top of the page.
Comment #2
donatasp commentedHi, thanks for the patch :)
Can this be tested by writing a test case? I would be more inclined to commit this if there were some test cases. Do you use this with Comment Notify? If so, how does it play together? I see that Comment Notify does not use multilingual variables, they just pass body and subject through t().
I haven't got time to test this yet and would like some input from users.
Comment #3
peacog commentedI haven't written a test case before so I'm not sure where to start. Would you be able to give me some pointers so I can take a look when I have time?
I haven't used this with Comment Notify so I'm afraid I don't know if this will work with Comment Notify.
Comment #3.0
peacog commentedComment about relation to Comment Notify.