liquid_feedback_frontend
diff app/main/area/_sidebar_whatcanido.lua @ 1791:4edec387855f
Better handling of translation strings with links
author | bsw |
---|---|
date | Wed Oct 20 16:04:30 2021 +0200 (2021-10-20) |
parents | b27b327be05e |
children |
line diff
1.1 --- a/app/main/area/_sidebar_whatcanido.lua Wed Oct 20 15:48:51 2021 +0200 1.2 +++ b/app/main/area/_sidebar_whatcanido.lua Wed Oct 20 16:04:30 2021 +0200 1.3 @@ -71,13 +71,15 @@ 1.4 ui.tag { tag = "ul", attr = { class = "ul" }, content = function () 1.5 ui.tag { tag = "li", content = function () 1.6 ui.tag { content = function () 1.7 - ui.tag{ content = _"Edit your global " } 1.8 + local text = _"Edit your global <link>notification settings</link> to receive updates by email." 1.9 + local text_pre, text_link, text_post = string.match(text, "([^<]*)<link>([^<]+)</link>([^<]*)") 1.10 + ui.tag{ content = text_pre } 1.11 ui.link { 1.12 module = "member", view = "settings_notification", 1.13 params = { return_to = "area", return_to_area_id = area.id }, 1.14 - text = _"notification settings" 1.15 + text = text_link 1.16 } 1.17 - ui.tag{ content = _" to receive updates by email" } 1.18 + ui.tag{ content = text_post } 1.19 end } 1.20 end } 1.21 end }