[FIX] calendar: translatable date content
The time_display is present in a translatable email template but was not translated. Added the missing term. Updated .pot file for a few missing terms. Removed base_calendar.pot that has no reason to be in 8.0 Fixes #9573
This commit is contained in:
parent
2fd14db574
commit
1c5c255186
|
@ -797,9 +797,9 @@ class calendar_event(osv.Model):
|
||||||
time = _("AllDay , %s") % (event_date)
|
time = _("AllDay , %s") % (event_date)
|
||||||
elif zduration < 24:
|
elif zduration < 24:
|
||||||
duration = date + timedelta(hours=zduration)
|
duration = date + timedelta(hours=zduration)
|
||||||
time = ("%s at (%s To %s) (%s)") % (event_date, display_time, duration.strftime(format_time), tz)
|
time = _("%s at (%s To %s) (%s)") % (event_date, display_time, duration.strftime(format_time), tz)
|
||||||
else:
|
else:
|
||||||
time = ("%s at %s To\n %s at %s (%s)") % (event_date, display_time, date_deadline.strftime(format_date), date_deadline.strftime(format_time), tz)
|
time = _("%s at %s To\n %s at %s (%s)") % (event_date, display_time, date_deadline.strftime(format_date), date_deadline.strftime(format_time), tz)
|
||||||
return time
|
return time
|
||||||
|
|
||||||
def _compute(self, cr, uid, ids, fields, arg, context=None):
|
def _compute(self, cr, uid, ids, fields, arg, context=None):
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -6,8 +6,8 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Odoo Server 8.0\n"
|
"Project-Id-Version: Odoo Server 8.0\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2015-01-21 14:07+0000\n"
|
"POT-Creation-Date: 2015-11-25 13:28+0000\n"
|
||||||
"PO-Revision-Date: 2015-01-21 14:07+0000\n"
|
"PO-Revision-Date: 2015-11-25 13:28+0000\n"
|
||||||
"Last-Translator: <>\n"
|
"Last-Translator: <>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
|
@ -43,11 +43,11 @@ msgid "\n"
|
||||||
" <table>\n"
|
" <table>\n"
|
||||||
" <tr>\n"
|
" <tr>\n"
|
||||||
" <td>\n"
|
" <td>\n"
|
||||||
" <div style=\"border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;\">${object.event_id.get_interval(object.event_id.start, 'dayname')}</div>\n"
|
" <div style=\"border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;\">${object.event_id.get_interval(object.event_id.start, 'dayname', tz=object.partner_id.tz)}</div>\n"
|
||||||
" <div style=\"font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;\">\n"
|
" <div style=\"font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;\">\n"
|
||||||
" ${object.event_id.get_interval(object.event_id.start,'day')}\n"
|
" ${object.event_id.get_interval(object.event_id.start,'day', tz=object.partner_id.tz)}\n"
|
||||||
" </div>\n"
|
" </div>\n"
|
||||||
" <div style='font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba'>${object.event_id.get_interval(object.event_id.start, 'month')}</div>\n"
|
" <div style='font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba'>${object.event_id.get_interval(object.event_id.start, 'month', tz=object.partner_id.tz)}</div>\n"
|
||||||
" <div style=\"border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;\">${not object.event_id.allday and object.event_id.get_interval(object.event_id.start, 'time', tz=object.partner_id.tz) or ''}</div>\n"
|
" <div style=\"border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;\">${not object.event_id.allday and object.event_id.get_interval(object.event_id.start, 'time', tz=object.partner_id.tz) or ''}</div>\n"
|
||||||
" </td>\n"
|
" </td>\n"
|
||||||
" <td>\n"
|
" <td>\n"
|
||||||
|
@ -161,11 +161,11 @@ msgid "\n"
|
||||||
" <table>\n"
|
" <table>\n"
|
||||||
" <tr>\n"
|
" <tr>\n"
|
||||||
" <td>\n"
|
" <td>\n"
|
||||||
" <div style=\"border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;\">${object.event_id.get_interval(object.event_id.start, 'dayname')}</div>\n"
|
" <div style=\"border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;\">${object.event_id.get_interval(object.event_id.start, 'dayname', tz=object.partner_id.tz)}</div>\n"
|
||||||
" <div style=\"font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;\">\n"
|
" <div style=\"font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;\">\n"
|
||||||
" ${object.event_id.get_interval(object.event_id.start,'day')}\n"
|
" ${object.event_id.get_interval(object.event_id.start,'day', tz=object.partner_id.tz)}\n"
|
||||||
" </div>\n"
|
" </div>\n"
|
||||||
" <div style='font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba'>${object.event_id.get_interval(object.event_id.start, 'month')}</div>\n"
|
" <div style='font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba'>${object.event_id.get_interval(object.event_id.start, 'month', tz=object.partner_id.tz)}</div>\n"
|
||||||
" <div style=\"border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;\">${not object.event_id.allday and object.event_id.get_interval(object.event_id.start, 'time', tz=object.partner_id.tz) or ''}</div>\n"
|
" <div style=\"border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;\">${not object.event_id.allday and object.event_id.get_interval(object.event_id.start, 'time', tz=object.partner_id.tz) or ''}</div>\n"
|
||||||
" </td>\n"
|
" </td>\n"
|
||||||
" <td>\n"
|
" <td>\n"
|
||||||
|
@ -286,11 +286,11 @@ msgid " \n"
|
||||||
" <table>\n"
|
" <table>\n"
|
||||||
" <tr> \n"
|
" <tr> \n"
|
||||||
" <td>\n"
|
" <td>\n"
|
||||||
" <div style=\"border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;\">${object.event_id.get_interval(object.event_id.start, 'dayname')}</div>\n"
|
" <div style=\"border-top-left-radius:3px;border-top-right-radius:3px;font-size:12px;border-collapse:separate;text-align:center;font-weight:bold;color:#ffffff;width:130px;min-height: 18px;border-color:#ffffff;background:#8a89ba;padding-top: 4px;\">${object.event_id.get_interval(object.event_id.start, 'dayname', tz=object.partner_id.tz)}</div>\n"
|
||||||
" <div style=\"font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;\">\n"
|
" <div style=\"font-size:48px;min-height:auto;font-weight:bold;text-align:center;color: #5F5F5F;background-color: #E1E2F8;width: 130px;\">\n"
|
||||||
" ${object.event_id.get_interval(object.event_id.start,'day')}\n"
|
" ${object.event_id.get_interval(object.event_id.start,'day', tz=object.partner_id.tz)}\n"
|
||||||
" </div>\n"
|
" </div>\n"
|
||||||
" <div style='font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba'>${object.event_id.get_interval(object.event_id.start, 'month')}</div>\n"
|
" <div style='font-size:12px;text-align:center;font-weight:bold;color:#ffffff;background-color:#8a89ba'>${object.event_id.get_interval(object.event_id.start, 'month', tz=object.partner_id.tz)}</div>\n"
|
||||||
" <div style=\"border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;\">${not object.event_id.allday and object.event_id.get_interval(object.event_id.start, 'time', tz=object.partner_id.tz) or ''}</div>\n"
|
" <div style=\"border-collapse:separate;color:#8a89ba;text-align:center;width: 128px;font-size:12px;border-bottom-right-radius:3px;font-weight:bold;border:1px solid;border-bottom-left-radius:3px;\">${not object.event_id.allday and object.event_id.get_interval(object.event_id.start, 'time', tz=object.partner_id.tz) or ''}</div>\n"
|
||||||
" </td>\n"
|
" </td>\n"
|
||||||
" <td>\n"
|
" <td>\n"
|
||||||
|
@ -404,6 +404,19 @@ msgstr ""
|
||||||
msgid "${object.event_id.name} - Reminder"
|
msgid "${object.event_id.name} - Reminder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: calendar
|
||||||
|
#: code:addons/calendar/calendar.py:802
|
||||||
|
#, python-format
|
||||||
|
msgid "%s at %s To\n"
|
||||||
|
" %s at %s (%s)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: calendar
|
||||||
|
#: code:addons/calendar/calendar.py:800
|
||||||
|
#, python-format
|
||||||
|
msgid "%s at (%s To %s) (%s)"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: calendar
|
#. module: calendar
|
||||||
#: model:ir.actions.act_window,help:calendar.action_calendar_event
|
#: model:ir.actions.act_window,help:calendar.action_calendar_event
|
||||||
msgid "<p class=\"oe_view_nocontent_create\">\n"
|
msgid "<p class=\"oe_view_nocontent_create\">\n"
|
||||||
|
@ -530,6 +543,13 @@ msgstr ""
|
||||||
msgid "Calendar"
|
msgid "Calendar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: calendar
|
||||||
|
#: view:calendar.alarm:calendar.view_calendar_alarm_tree
|
||||||
|
#: model:ir.actions.act_window,name:calendar.action_calendar_alarm
|
||||||
|
#: model:ir.ui.menu,name:calendar.menu_calendar_alarm
|
||||||
|
msgid "Calendar Alarm"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: calendar
|
#. module: calendar
|
||||||
#. openerp-web
|
#. openerp-web
|
||||||
#: code:addons/calendar/static/src/xml/base_calendar.xml:42
|
#: code:addons/calendar/static/src/xml/base_calendar.xml:42
|
||||||
|
@ -653,6 +673,11 @@ msgstr ""
|
||||||
msgid "Duration"
|
msgid "Duration"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#. module: calendar
|
||||||
|
#: field:calendar.alarm,duration_minutes:0
|
||||||
|
msgid "Duration in minutes"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#. module: calendar
|
#. module: calendar
|
||||||
#: selection:calendar.alarm,type:0
|
#: selection:calendar.alarm,type:0
|
||||||
#: field:calendar.attendee,email:0
|
#: field:calendar.attendee,email:0
|
||||||
|
@ -660,7 +685,7 @@ msgid "Email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: calendar
|
#. module: calendar
|
||||||
#: code:addons/calendar/calendar.py:1381
|
#: code:addons/calendar/calendar.py:1402
|
||||||
#, python-format
|
#, python-format
|
||||||
msgid "Email addresses not found"
|
msgid "Email addresses not found"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -823,7 +848,7 @@ msgstr ""
|
||||||
|
|
||||||
#. module: calendar
|
#. module: calendar
|
||||||
#: help:calendar.event,active:0
|
#: help:calendar.event,active:0
|
||||||
msgid "If the active field is set to true, it will allow you to hide the event alarm information without removing it."
|
msgid "If the active field is set to false, it will allow you to hide the event alarm information without removing it."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#. module: calendar
|
#. module: calendar
|
||||||
|
|
Loading…
Reference in New Issue