Skip to content

Commit 28224f6

Browse files
ndd-odooViinbot
authored and
Viinbot
committed
[I18N] calendar: update translation
-This also help fix ticket: https://viindoo.com/web#id=52685&cids=1&menu_id=89&model=viin.helpdesk.ticket&view_type=form because we have outdated translation in vietnamese, when Confirm the appointment, it will try to use this template "calendar_template_meeting_invitation" then in vietnamese translation it will try to access field call "resource_manual_confirmation" -> error appointment type model doesn't have that
1 parent 3a5dc0d commit 28224f6

File tree

2 files changed

+294
-380
lines changed

2 files changed

+294
-380
lines changed

addons/calendar/i18n/calendar.pot

+103-132
Original file line numberDiff line numberDiff line change
@@ -170,97 +170,11 @@ msgid ""
170170
" "
171171
msgstr ""
172172

173-
#. module: calendar
174-
#: model:mail.template,body_html:calendar.calendar_template_meeting_update
175-
msgid ""
176-
"<div>\n"
177-
" <t t-set=\"colors\" t-value=\"{'needsAction': 'grey', 'accepted': 'green', 'tentative': '#FFFF00', 'declined': 'red'}\"></t>\n"
178-
" <t t-set=\"is_online\" t-value=\"'appointment_type_id' in object and object.appointment_type_id\"></t>\n"
179-
" <t t-set=\"target_responsible\" t-value=\"object.partner_id == object.partner_id\"></t>\n"
180-
" <t t-set=\"target_customer\" t-value=\"object.partner_id == customer\"></t>\n"
181-
" <t t-set=\"recurrent\" t-value=\"object.recurrence_id and not ctx.get('calendar_template_ignore_recurrence')\"></t>\n"
182-
" <t t-set=\"mail_tz\" t-value=\"object._get_mail_tz() or ctx.get('mail_tz')\"></t>\n"
183-
" <div>\n"
184-
" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"
185-
" <tr>\n"
186-
" <td width=\"130px;\" style=\"min-width: 130px;\">\n"
187-
" <div style=\"border-top-start-radius: 3px; border-top-end-radius: 3px; font-size: 12px; border-collapse: separate; text-align: center; font-weight: bold; color: #ffffff; min-height: 18px; background-color: #875A7B; border: 1px solid #875A7B;\">\n"
188-
" <t t-out=\"format_datetime(dt=object.start, tz=mail_tz if not object.allday else None, dt_format='EEEE', lang_code=object.env.lang) \">Tuesday</t>\n"
189-
" </div>\n"
190-
" <div style=\"font-size: 48px; min-height: auto; font-weight: bold; text-align: center; color: #5F5F5F; background-color: #F8F8F8; border: 1px solid #875A7B;\">\n"
191-
" <t t-out=\"format_datetime(dt=object.start, tz=mail_tz if not object.allday else None, dt_format='d', lang_code=object.env.lang)\">4</t>\n"
192-
" </div>\n"
193-
" <div style=\"font-size: 12px; text-align: center; font-weight: bold; color: #ffffff; background-color: #875A7B;\">\n"
194-
" <t t-out=\"format_datetime(dt=object.start, tz=mail_tz if not object.allday else None, dt_format='MMMM y', lang_code=object.env.lang)\">May 2021</t>\n"
195-
" </div>\n"
196-
" <div style=\"border-collapse: separate; color: #5F5F5F; text-align: center; font-size: 12px; border-bottom-end-radius: 3px; font-weight: bold; border: 1px solid #875A7B; border-bottom-start-radius: 3px;\">\n"
197-
" <t t-if=\"not object.allday\">\n"
198-
" <div>\n"
199-
" <t t-out=\"format_time(time=object.start, tz=mail_tz, time_format='short', lang_code=object.env.lang)\">11:00 AM</t>\n"
200-
" </div>\n"
201-
" <t t-if=\"mail_tz\">\n"
202-
" <div style=\"font-size: 10px; font-weight: normal\">\n"
203-
" (<t t-out=\"mail_tz\"> Europe/Brussels</t>)\n"
204-
" </div>\n"
205-
" </t>\n"
206-
" </t>\n"
207-
" </div>\n"
208-
" </td>\n"
209-
" <td width=\"20px;\"></td>\n"
210-
" <td style=\"padding-top: 5px;\">\n"
211-
" <p>\n"
212-
" <strong>Details of the event</strong>\n"
213-
" </p>\n"
214-
" <ul>\n"
215-
" <t t-if=\"not is_html_empty(object.description)\">\n"
216-
" <li>Description:\n"
217-
" <t t-out=\"object.description\">Internal meeting for discussion for new pricing for product and services.</t></li>\n"
218-
" </t>\n"
219-
" <t t-if=\"object.videocall_location\">\n"
220-
" <li>\n"
221-
" How to Join:\n"
222-
" <t t-if=\"object.get_base_url() in object.videocall_location\"> Join with Odoo Discuss</t>\n"
223-
" <t t-else=\"\"> Join at</t><br>\n"
224-
" <a t-att-href=\"object.videocall_location\" target=\"_blank\" t-out=\"object.videocall_location or ''\">www.mycompany.com/calendar/join_videocall/xyz</a>\n"
225-
" </li>\n"
226-
" </t>\n"
227-
" <t t-if=\"object.location\">\n"
228-
" <li>Location: <t t-out=\"object.location or ''\">Bruxelles</t>\n"
229-
" (<a target=\"_blank\" t-attf-href=\"http://maps.google.com/maps?oi=map&amp;q={{object.location}}\">View Map</a>)\n"
230-
" </li>\n"
231-
" </t>\n"
232-
" <t t-if=\"recurrent\">\n"
233-
" <li>When: <t t-out=\"object.recurrence_id.get_recurrence_name()\">Every 1 Weeks, for 3 events</t></li>\n"
234-
" </t>\n"
235-
" <t t-if=\"not object.allday and object.duration\">\n"
236-
" <li>Duration:\n"
237-
" <t t-out=\"('%dH%02d' % (object.duration,round(object.duration*60)%60))\">0H30</t>\n"
238-
" </li>\n"
239-
" </t>\n"
240-
" </ul>\n"
241-
" </td>\n"
242-
" </tr>\n"
243-
" </table>\n"
244-
" </div>\n"
245-
" <div class=\"user_input\">\n"
246-
" <hr>\n"
247-
" <p placeholder=\"Enter your message here\"><br></p>\n"
248-
"\n"
249-
" </div>\n"
250-
" <t t-if=\"object.user_id.signature\">\n"
251-
" <br>\n"
252-
" <t t-out=\"object.user_id.signature or ''\">--<br>Mitchell Admin</t>\n"
253-
" </t>\n"
254-
"</div>\n"
255-
" "
256-
msgstr ""
257-
258173
#. module: calendar
259174
#: model:mail.template,body_html:calendar.calendar_template_meeting_invitation
260175
msgid ""
261176
"<div>\n"
262177
" <t t-set=\"colors\" t-value=\"{'needsAction': 'grey', 'accepted': 'green', 'tentative': '#FFFF00', 'declined': 'red'}\"></t>\n"
263-
" <t t-set=\"is_online\" t-value=\"'appointment_type_id' in object.event_id and object.event_id.appointment_type_id\"></t>\n"
264178
" <t t-set=\"customer\" t-value=\" object.event_id.find_partner_customer()\"></t>\n"
265179
" <t t-set=\"target_responsible\" t-value=\"object.partner_id == object.event_id.partner_id\"></t>\n"
266180
" <t t-set=\"target_customer\" t-value=\"object.partner_id == customer\"></t>\n"
@@ -269,21 +183,7 @@ msgid ""
269183
" <p>\n"
270184
" Hello <t t-out=\"object.common_name or ''\">Wood Corner</t>,<br><br>\n"
271185
"\n"
272-
" <t t-if=\"is_online and target_customer\">\n"
273-
" Your appointment <strong t-out=\"object.event_id.appointment_type_id.name or ''\">Schedule a Demo</strong> <t t-if=\"object.event_id.appointment_type_id.category != 'custom'\"> with <t t-out=\"object.event_id.user_id.name or ''\">Ready Mat</t></t> has been booked.\n"
274-
" <t t-if=\"is_online and object.state != 'accepted' and object.event_id.appointment_type_id.resource_manual_confirmation\">\n"
275-
" You will receive a mail of confirmation with more details when your appointment will be confirmed.\n"
276-
" </t>\n"
277-
" </t>\n"
278-
" <t t-elif=\"is_online and target_responsible\">\n"
279-
" <t t-if=\"customer\">\n"
280-
" <t t-out=\"customer.name or ''\"></t> scheduled the following appointment <strong t-out=\"object.event_id.appointment_type_id.name or ''\">Schedule a Demo</strong> with you.\n"
281-
" </t>\n"
282-
" <t t-else=\"\">\n"
283-
" Your appointment <strong t-out=\"object.event_id.appointment_type_id.name or ''\">Schedule a Demo</strong> has been booked.\n"
284-
" </t>\n"
285-
" </t>\n"
286-
" <t t-elif=\"not target_responsible\">\n"
186+
" <t t-if=\"not target_responsible\">\n"
287187
" <t t-out=\"object.event_id.user_id.partner_id.name or ''\">Colleen Diaz</t> invited you for the <strong t-out=\"object.event_id.name or ''\">Follow-up for Project proposal</strong> meeting.\n"
288188
" </t>\n"
289189
" <t t-else=\"\">\n"
@@ -292,21 +192,19 @@ msgid ""
292192
"\n"
293193
" </p>\n"
294194
" <div style=\"text-align: center; padding: 16px 0px 16px 0px;\">\n"
295-
" <t t-if=\"not is_online or object.state != 'accepted'\">\n"
296-
" <a t-attf-href=\"/calendar/meeting/accept?token={{object.access_token}}&amp;id={{object.event_id.id}}\" style=\"padding: 5px 10px; color: #FFFFFF; text-decoration: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius: 3px\">\n"
297-
" Accept</a>\n"
298-
" <a t-attf-href=\"/calendar/meeting/decline?token={{object.access_token}}&amp;id={{object.event_id.id}}\" style=\"padding: 5px 10px; color: #FFFFFF; text-decoration: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius: 3px\">\n"
299-
" Decline</a>\n"
300-
" </t>\n"
301-
" <a t-attf-href=\"/calendar/meeting/view?token={{object.access_token}}&amp;id={{object.event_id.id}}\" style=\"padding: 5px 10px; color: #FFFFFF; text-decoration: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius: 3px\"><t t-out=\"'Reschedule' if is_online and target_customer else 'View'\">View</t></a>\n"
195+
" <a t-attf-href=\"/calendar/meeting/accept?token={{object.access_token}}&amp;id={{object.event_id.id}}\" style=\"padding: 5px 10px; color: #FFFFFF; text-decoration: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius: 3px\">\n"
196+
" Accept</a>\n"
197+
" <a t-attf-href=\"/calendar/meeting/decline?token={{object.access_token}}&amp;id={{object.event_id.id}}\" style=\"padding: 5px 10px; color: #FFFFFF; text-decoration: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius: 3px\">\n"
198+
" Decline</a>\n"
199+
" <a t-attf-href=\"/calendar/meeting/view?token={{object.access_token}}&amp;id={{object.event_id.id}}\" style=\"padding: 5px 10px; color: #FFFFFF; text-decoration: none; background-color: #875A7B; border: 1px solid #875A7B; border-radius: 3px\">View</a>\n"
302200
" </div>\n"
303201
" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>\n"
304202
" <td width=\"130px;\" style=\"min-width: 130px;\">\n"
305203
" <div style=\"border-top-start-radius: 3px; border-top-end-radius: 3px; font-size: 12px; border-collapse: separate; text-align: center; font-weight: bold; color: #ffffff; min-height: 18px; background-color: #875A7B; border: 1px solid #875A7B;\">\n"
306204
" <t t-out=\"format_datetime(dt=object.event_id.start, tz=object.mail_tz if not object.event_id.allday else None, dt_format='EEEE', lang_code=object.env.lang) or ''\">Tuesday</t>\n"
307205
" </div>\n"
308206
" <div style=\"font-size: 48px; min-height: auto; font-weight: bold; text-align: center; color: #5F5F5F; background-color: #F8F8F8; border: 1px solid #875A7B;\">\n"
309-
" <t t-out=\"str(object.event_id.start.day) or ''\">4</t>\n"
207+
" <t t-out=\"format_datetime(dt=object.event_id.start, tz=object.mail_tz if not object.event_id.allday else None, dt_format='d', lang_code=object.env.lang) or ''\">4</t>\n"
310208
" </div>\n"
311209
" <div style=\"font-size: 12px; text-align: center; font-weight: bold; color: #ffffff; background-color: #875A7B;\">\n"
312210
" <t t-out=\"format_datetime(dt=object.event_id.start, tz=object.mail_tz if not object.event_id.allday else None, dt_format='MMMM y', lang_code=object.env.lang) or ''\">May 2021</t>\n"
@@ -328,9 +226,6 @@ msgid ""
328226
" <td style=\"padding-top: 5px;\">\n"
329227
" <p><strong>Details of the event</strong></p>\n"
330228
" <ul>\n"
331-
" <t t-if=\"is_online\">\n"
332-
" <li>Appointment Type: <t t-out=\"object.event_id.appointment_type_id.name or ''\">Schedule a Demo</t></li>\n"
333-
" </t>\n"
334229
" <t t-if=\"object.event_id.location\">\n"
335230
" <li>Location: <t t-out=\"object.event_id.location or ''\">Bruxelles</t>\n"
336231
" (<a target=\"_blank\" t-attf-href=\"http://maps.google.com/maps?oi=map&amp;q={{object.event_id.location}}\">View Map</a>)\n"
@@ -354,17 +249,6 @@ msgid ""
354249
" </t>\n"
355250
" </li>\n"
356251
" </ul></li>\n"
357-
" <li t-if=\"is_online and object.event_id.appointment_type_id.resource_manage_capacity\">\n"
358-
" For: <t t-out=\"object.event_id.resource_total_capacity_reserved\"></t> people\n"
359-
" </li>\n"
360-
" <li t-if=\"is_online and object.event_id.appointment_type_id.assign_method != 'time_auto_assign'\">\n"
361-
" Resources\n"
362-
" <ul>\n"
363-
" <li t-foreach=\"object.event_id.appointment_resource_ids\" t-as=\"resource\">\n"
364-
" <span style=\"margin-left:5px\" t-out=\"resource.name or ''\">Table 1</span>\n"
365-
" </li>\n"
366-
" </ul>\n"
367-
" </li>\n"
368252
" <t t-if=\"object.event_id.videocall_location\">\n"
369253
" <li>\n"
370254
" How to Join:\n"
@@ -390,6 +274,91 @@ msgid ""
390274
" "
391275
msgstr ""
392276

277+
#. module: calendar
278+
#: model:mail.template,body_html:calendar.calendar_template_meeting_update
279+
msgid ""
280+
"<div>\n"
281+
" <t t-set=\"colors\" t-value=\"{'needsAction': 'grey', 'accepted': 'green', 'tentative': '#FFFF00', 'declined': 'red'}\"></t>\n"
282+
" <t t-set=\"is_online\" t-value=\"'appointment_type_id' in object and object.appointment_type_id\"></t>\n"
283+
" <t t-set=\"target_responsible\" t-value=\"object.partner_id == object.partner_id\"></t>\n"
284+
" <t t-set=\"target_customer\" t-value=\"object.partner_id == customer\"></t>\n"
285+
" <t t-set=\"recurrent\" t-value=\"object.recurrence_id and not ctx.get('calendar_template_ignore_recurrence')\"></t>\n"
286+
" <t t-set=\"mail_tz\" t-value=\"object._get_mail_tz() or ctx.get('mail_tz')\"></t>\n"
287+
" <div>\n"
288+
" <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\n"
289+
" <tr>\n"
290+
" <td width=\"130px;\" style=\"min-width: 130px;\">\n"
291+
" <div style=\"border-top-start-radius: 3px; border-top-end-radius: 3px; font-size: 12px; border-collapse: separate; text-align: center; font-weight: bold; color: #ffffff; min-height: 18px; background-color: #875A7B; border: 1px solid #875A7B;\">\n"
292+
" <t t-out=\"format_datetime(dt=object.start, tz=mail_tz if not object.allday else None, dt_format='EEEE', lang_code=object.env.lang) \">Tuesday</t>\n"
293+
" </div>\n"
294+
" <div style=\"font-size: 48px; min-height: auto; font-weight: bold; text-align: center; color: #5F5F5F; background-color: #F8F8F8; border: 1px solid #875A7B;\">\n"
295+
" <t t-out=\"format_datetime(dt=object.start, tz=mail_tz if not object.allday else None, dt_format='d', lang_code=object.env.lang)\">4</t>\n"
296+
" </div>\n"
297+
" <div style=\"font-size: 12px; text-align: center; font-weight: bold; color: #ffffff; background-color: #875A7B;\">\n"
298+
" <t t-out=\"format_datetime(dt=object.start, tz=mail_tz if not object.allday else None, dt_format='MMMM y', lang_code=object.env.lang)\">May 2021</t>\n"
299+
" </div>\n"
300+
" <div style=\"border-collapse: separate; color: #5F5F5F; text-align: center; font-size: 12px; border-bottom-end-radius: 3px; font-weight: bold; border: 1px solid #875A7B; border-bottom-start-radius: 3px;\">\n"
301+
" <t t-if=\"not object.allday\">\n"
302+
" <div>\n"
303+
" <t t-out=\"format_time(time=object.start, tz=mail_tz, time_format='short', lang_code=object.env.lang)\">11:00 AM</t>\n"
304+
" </div>\n"
305+
" <t t-if=\"mail_tz\">\n"
306+
" <div style=\"font-size: 10px; font-weight: normal\">\n"
307+
" (<t t-out=\"mail_tz\"> Europe/Brussels</t>)\n"
308+
" </div>\n"
309+
" </t>\n"
310+
" </t>\n"
311+
" </div>\n"
312+
" </td>\n"
313+
" <td width=\"20px;\"></td>\n"
314+
" <td style=\"padding-top: 5px;\">\n"
315+
" <p>\n"
316+
" <strong>Details of the event</strong>\n"
317+
" </p>\n"
318+
" <ul>\n"
319+
" <t t-if=\"not is_html_empty(object.description)\">\n"
320+
" <li>Description:\n"
321+
" <t t-out=\"object.description\">Internal meeting for discussion for new pricing for product and services.</t></li>\n"
322+
" </t>\n"
323+
" <t t-if=\"object.videocall_location\">\n"
324+
" <li>\n"
325+
" How to Join:\n"
326+
" <t t-if=\"object.get_base_url() in object.videocall_location\"> Join with Odoo Discuss</t>\n"
327+
" <t t-else=\"\"> Join at</t><br>\n"
328+
" <a t-att-href=\"object.videocall_location\" target=\"_blank\" t-out=\"object.videocall_location or ''\">www.mycompany.com/calendar/join_videocall/xyz</a>\n"
329+
" </li>\n"
330+
" </t>\n"
331+
" <t t-if=\"object.location\">\n"
332+
" <li>Location: <t t-out=\"object.location or ''\">Bruxelles</t>\n"
333+
" (<a target=\"_blank\" t-attf-href=\"http://maps.google.com/maps?oi=map&amp;q={{object.location}}\">View Map</a>)\n"
334+
" </li>\n"
335+
" </t>\n"
336+
" <t t-if=\"recurrent\">\n"
337+
" <li>When: <t t-out=\"object.recurrence_id.get_recurrence_name()\">Every 1 Weeks, for 3 events</t></li>\n"
338+
" </t>\n"
339+
" <t t-if=\"not object.allday and object.duration\">\n"
340+
" <li>Duration:\n"
341+
" <t t-out=\"('%dH%02d' % (object.duration,round(object.duration*60)%60))\">0H30</t>\n"
342+
" </li>\n"
343+
" </t>\n"
344+
" </ul>\n"
345+
" </td>\n"
346+
" </tr>\n"
347+
" </table>\n"
348+
" </div>\n"
349+
" <div class=\"user_input\">\n"
350+
" <hr>\n"
351+
" <p placeholder=\"Enter your message here\"><br></p>\n"
352+
"\n"
353+
" </div>\n"
354+
" <t t-if=\"object.user_id.signature\">\n"
355+
" <br>\n"
356+
" <t t-out=\"object.user_id.signature or ''\">--<br>Mitchell Admin</t>\n"
357+
" </t>\n"
358+
"</div>\n"
359+
" "
360+
msgstr ""
361+
393362
#. module: calendar
394363
#: model:mail.template,body_html:calendar.calendar_template_meeting_reminder
395364
msgid ""
@@ -2513,6 +2482,13 @@ msgstr ""
25132482
msgid "You have to choose at least one day in the week"
25142483
msgstr ""
25152484

2485+
#. module: calendar
2486+
#. odoo-javascript
2487+
#: code:addons/calendar/static/src/views/attendee_calendar/common/attendee_calendar_common_renderer.xml:0
2488+
#, python-format
2489+
msgid "You're alone in this meeting"
2490+
msgstr ""
2491+
25162492
#. module: calendar
25172493
#. odoo-javascript
25182494
#: code:addons/calendar/static/src/views/fields/many2many_attendee_expandable.xml:0
@@ -2549,13 +2525,6 @@ msgstr ""
25492525
msgid "e.g: 12/31/2023"
25502526
msgstr ""
25512527

2552-
#. module: calendar
2553-
#. odoo-python
2554-
#: code:addons/calendar/models/calendar_recurrence.py:0
2555-
#, python-format
2556-
msgid "for %s events"
2557-
msgstr ""
2558-
25592528
#. module: calendar
25602529
#: model_terms:ir.ui.view,arch_db:calendar.view_calendar_event_form
25612530
msgid "maybe,"
@@ -2567,8 +2536,10 @@ msgid "no,"
25672536
msgstr ""
25682537

25692538
#. module: calendar
2570-
#: model_terms:ir.ui.view,arch_db:calendar.view_calendar_event_form
2571-
msgid "to"
2539+
#. odoo-javascript
2540+
#: code:addons/calendar/static/src/views/fields/many2many_attendee.xml:0
2541+
#, python-format
2542+
msgid "props.placeholder"
25722543
msgstr ""
25732544

25742545
#. module: calendar

0 commit comments

Comments
 (0)