liquid_feedback_frontend
diff model/initiative_for_notification.lua @ 1305:fd50bdd36a4b
Set name for To: field of notification mails, added missing translation function call
author | bsw |
---|---|
date | Sat May 07 19:27:58 2016 +0200 (2016-05-07) |
parents | fb62b2c24fb5 |
children | 3dbfac432576 |
line diff
1.1 --- a/model/initiative_for_notification.lua Fri May 06 09:40:25 2016 +0200 1.2 +++ b/model/initiative_for_notification.lua Sat May 07 19:27:58 2016 +0200 1.3 @@ -76,9 +76,7 @@ 1.4 if string.sub(issue.state_time_left, 1, 1) == "-" then 1.5 state_time_text = _"Phase ends soon" 1.6 else 1.7 - state_time_text = _( "#{interval} left", { 1.8 - interval = format.interval_text(issue.state_time_left) 1.9 - }) 1.10 + state_time_text = format.interval_text(issue.state_time_left, { mode = "time_left" }) 1.11 end 1.12 m[#m+1] = "---" 1.13 m[#m+1] = policy.name .. " #" .. issue.id .. " - " .. issue.state_name .. " - " .. state_time_text 1.14 @@ -112,7 +110,7 @@ 1.15 end 1.16 if entry.leading then 1.17 source = source and source .. ", " or "" 1.18 - source = source .. "currently leading" 1.19 + source = source .. _"currently leading" 1.20 end 1.21 m[#m+1] = "(" .. source .. ")" 1.22 m[#m+1] = "" 1.23 @@ -162,7 +160,7 @@ 1.24 envelope_from = config.mail_envelope_from, 1.25 from = config.mail_from, 1.26 reply_to = config.mail_reply_to, 1.27 - to = member.notify_email, 1.28 + to = { name = member.name, address = member.notify_email }, 1.29 subject = subject, 1.30 content_type = "text/plain; charset=UTF-8", 1.31 content = message