summaryrefslogtreecommitdiff
path: root/addons/hr_holidays
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2020-11-27 13:42:36 +0000
committerMartin Trigaux <mat@odoo.com>2020-11-27 15:42:35 +0000
commit9b3b2e8d711e3be75b1faffaf6f4f8f4ec90186e (patch)
treebbbdb1866672d29aa7eb496e56344a387c3ea00f /addons/hr_holidays
parente5bec425c7dc06d5c853b49f84c1fca19fd71d98 (diff)
[FIX] *: rephrase, correct typos
Courtesy of Transifex's translators for reporting bad/unclear sentences. closes odoo/odoo#62539 Related: odoo/enterprise#15032 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/hr_holidays')
-rw-r--r--addons/hr_holidays/data/hr_holidays_demo.xml4
-rw-r--r--addons/hr_holidays/i18n/hr_holidays.pot21
-rw-r--r--addons/hr_holidays/models/hr_leave_allocation.py4
-rw-r--r--addons/hr_holidays/models/hr_leave_type.py2
4 files changed, 20 insertions, 11 deletions
diff --git a/addons/hr_holidays/data/hr_holidays_demo.xml b/addons/hr_holidays/data/hr_holidays_demo.xml
index 70d9b9bc1e2..33f3d007fcb 100644
--- a/addons/hr_holidays/data/hr_holidays_demo.xml
+++ b/addons/hr_holidays/data/hr_holidays_demo.xml
@@ -8,7 +8,7 @@
<!--Leave Type-->
<record id="hr_holiday_status_dv" model="hr.leave.type">
- <field name="name">Parental Time Off</field>
+ <field name="name">Parental Leaves</field>
<field name="allocation_type">fixed</field>
<field name="color_name">brown</field>
<field name="leave_validation_type">both</field>
@@ -132,7 +132,7 @@
</record>
<record id="hr_holidays_allocation_pl_al" model="hr.leave.allocation">
- <field name="name">Parental Time Off</field>
+ <field name="name">Parental Leaves</field>
<field name="holiday_status_id" ref="hr_holiday_status_dv"/>
<field name="number_of_days">10</field>
<field name="employee_id" ref="hr.employee_al"/>
diff --git a/addons/hr_holidays/i18n/hr_holidays.pot b/addons/hr_holidays/i18n/hr_holidays.pot
index d2a805c8f51..62cc0887314 100644
--- a/addons/hr_holidays/i18n/hr_holidays.pot
+++ b/addons/hr_holidays/i18n/hr_holidays.pot
@@ -6,8 +6,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.0\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-11-17 10:35+0000\n"
-"PO-Revision-Date: 2020-11-17 10:35+0000\n"
+"POT-Creation-Date: 2020-11-27 15:27+0000\n"
+"PO-Revision-Date: 2020-11-27 15:27+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
@@ -874,7 +874,7 @@ msgstr ""
#, python-format
msgid ""
"Allocation request state must be \"Refused\" or \"To Approve\" in order to "
-"reset to Draft."
+"be reset to Draft."
msgstr ""
#. module: hr_holidays
@@ -1654,7 +1654,9 @@ msgstr ""
#. module: hr_holidays
#: model:ir.model.fields,help:hr_holidays.field_hr_leave__message_has_error
+#: model:ir.model.fields,help:hr_holidays.field_hr_leave__message_has_sms_error
#: model:ir.model.fields,help:hr_holidays.field_hr_leave_allocation__message_has_error
+#: model:ir.model.fields,help:hr_holidays.field_hr_leave_allocation__message_has_sms_error
msgid "If checked, some messages have a delivery error."
msgstr ""
@@ -2261,7 +2263,7 @@ msgstr ""
#. module: hr_holidays
#: model:hr.leave.type,name:hr_holidays.hr_holiday_status_dv
-msgid "Parental Time Off"
+msgid "Parental Leaves"
msgstr ""
#. module: hr_holidays
@@ -2424,6 +2426,12 @@ msgid "Run until"
msgstr ""
#. module: hr_holidays
+#: model:ir.model.fields,field_description:hr_holidays.field_hr_leave__message_has_sms_error
+#: model:ir.model.fields,field_description:hr_holidays.field_hr_leave_allocation__message_has_sms_error
+msgid "SMS Delivery error"
+msgstr ""
+
+#. module: hr_holidays
#: model_terms:ir.ui.view,arch_db:hr_holidays.hr_leave_view_form_dashboard_new_time_off
msgid "Save"
msgstr ""
@@ -2645,7 +2653,7 @@ msgstr ""
#. module: hr_holidays
#: model:ir.model.fields,help:hr_holidays.field_hr_leave_allocation__second_approver_id
msgid ""
-"This area is automaticly filled by the user who validates the allocation "
+"This area is automatically filled by the user who validates the allocation "
"with second level (If allocation type need second validation)"
msgstr ""
@@ -2671,7 +2679,8 @@ msgstr ""
#: model:ir.model.fields,help:hr_holidays.field_hr_leave_type__responsible_id
msgid ""
"This user will be responsible for approving this type of time off. This is "
-"only used when validation is 'hr' or 'both'"
+"only used when validation is 'By Time Off Officer' or 'By Employee's Manager"
+" and Time Off Officer'"
msgstr ""
#. module: hr_holidays
diff --git a/addons/hr_holidays/models/hr_leave_allocation.py b/addons/hr_holidays/models/hr_leave_allocation.py
index 82266cc7ea5..f0b65351fcc 100644
--- a/addons/hr_holidays/models/hr_leave_allocation.py
+++ b/addons/hr_holidays/models/hr_leave_allocation.py
@@ -88,7 +88,7 @@ class HolidaysAllocation(models.Model):
help='This area is automatically filled by the user who validates the allocation')
second_approver_id = fields.Many2one(
'hr.employee', string='Second Approval', readonly=True, copy=False,
- help='This area is automaticly filled by the user who validates the allocation with second level (If allocation type need second validation)')
+ help='This area is automatically filled by the user who validates the allocation with second level (If allocation type need second validation)')
validation_type = fields.Selection(string='Validation Type', related='holiday_status_id.allocation_validation_type', readonly=True)
can_reset = fields.Boolean('Can reset', compute='_compute_can_reset')
can_approve = fields.Boolean('Can Approve', compute='_compute_can_approve')
@@ -484,7 +484,7 @@ class HolidaysAllocation(models.Model):
def action_draft(self):
if any(holiday.state not in ['confirm', 'refuse'] for holiday in self):
- raise UserError(_('Allocation request state must be "Refused" or "To Approve" in order to reset to Draft.'))
+ raise UserError(_('Allocation request state must be "Refused" or "To Approve" in order to be reset to Draft.'))
self.write({
'state': 'draft',
'first_approver_id': False,
diff --git a/addons/hr_holidays/models/hr_leave_type.py b/addons/hr_holidays/models/hr_leave_type.py
index 48baf174ab6..e0687b1c135 100644
--- a/addons/hr_holidays/models/hr_leave_type.py
+++ b/addons/hr_holidays/models/hr_leave_type.py
@@ -74,7 +74,7 @@ class HolidaysType(models.Model):
responsible_id = fields.Many2one('res.users', 'Responsible',
domain=lambda self: [('groups_id', 'in', self.env.ref('hr_holidays.group_hr_holidays_user').id)],
help="This user will be responsible for approving this type of time off. "
- "This is only used when validation is 'hr' or 'both'",)
+ "This is only used when validation is 'By Time Off Officer' or 'By Employee's Manager and Time Off Officer'",)
leave_validation_type = fields.Selection([
('no_validation', 'No Validation'),
('hr', 'By Time Off Officer'),