From 7c9ab02c53beab9b94a093d538d4b093ed10b64f Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Thu, 30 Jun 2016 12:22:35 +0200 Subject: [PATCH] [FIX] website_event: make `Attendee #` translatable On the website, when registering for an event with ticket, the placeholder `Attendee #` could not be translated, as `t-att` attributes are not translated. An alternative is to put the string to translate in a `t-set` node, which can be translated, and to use the variable assigned in this `t-set` in the `t-att` attribute. opw-678758 --- addons/website_event/i18n/website_event.pot | 5 +++++ addons/website_event/views/website_event.xml | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/addons/website_event/i18n/website_event.pot b/addons/website_event/i18n/website_event.pot index f6ff69c8d54..5eff9091643 100644 --- a/addons/website_event/i18n/website_event.pot +++ b/addons/website_event/i18n/website_event.pot @@ -117,6 +117,11 @@ msgstr "" msgid "All Events" msgstr "" +#. module: website_event +#: model:ir.ui.view,arch_db:website_event.registration_attendee_details +msgid "Attendee #%s" +msgstr "" + #. module: website_event #: model:ir.ui.view,arch_db:website_event.registration_attendee_details msgid "Cancel Registration" diff --git a/addons/website_event/views/website_event.xml b/addons/website_event/views/website_event.xml index 6674983faed..49101a18c04 100644 --- a/addons/website_event/views/website_event.xml +++ b/addons/website_event/views/website_event.xml @@ -465,7 +465,8 @@
-
+ Attendee #%s +