diff --git a/beesdoo_shift/i18n/fr.po b/beesdoo_shift/i18n/fr.po index bcd3627..97fca52 100644 --- a/beesdoo_shift/i18n/fr.po +++ b/beesdoo_shift/i18n/fr.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-01-21 13:18+0000\n" -"PO-Revision-Date: 2020-01-21 13:18+0000\n" +"POT-Creation-Date: 2020-01-23 13:26+0000\n" +"PO-Revision-Date: 2020-01-23 13:26+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -28,114 +28,126 @@ msgstr "\n" #. module: beesdoo_shift #: model:mail.template,body_html:beesdoo_shift.email_template_non_attendance msgid "\n" -"
\n" +"
\n" "\n" -" % if object.replaced_id:\n" -"

Hello ${object.replaced_id.name},

\n" +" % if object.replaced_id:\n" +"

Hello ${object.replaced_id.name},\n" "\n" -"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

You were supposed to replace ${object.worker_id.name}.

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}),\n" +" and you were supposed to replace ${object.worker_id.name}.\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.worker_id:\n" -"

Hello ${object.worker_id.name},

\n" +" % if not object.replaced_id:\n" +"

Hello ${object.worker_id.name},

\n" "\n" -"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.state == 'absent_0':\n" -" Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do.\n" -" % endif\n" -" % if object.state == 'absent_1':\n" -" Super-cooperator assigned you 1 compensation, so you have to attend another shift.\n" -" % endif\n" -" % if object.state == 'absent_2':\n" -" Super-cooperator assigned you 2 compensations, so you have to attend 2 anothers shifts.\n" -" % endif\n" +" % if object.worker_id.working_mode == 'regular':\n" +" % if object.state == 'absent_0':\n" +"

Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_1':\n" +"

Super-cooperator assigned you 1 compensation, so you have to attend one additionnal shift before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_2':\n" +"

Super-cooperator assigned you 2 compensations, so you have to attend two additionnal shifts before your next regular shift.\n" +" % endif\n" +" % endif\n" "\n" -"

Your status have been updated to \"${object.worker_id.state}\".\n" -"

If you have any question regarding this non-attendance, just answer this e-mail.\n" -"

\n" -"
\n" -"

Cooperatively yours,
\n" -" The Members' office volunteers

\n" -"

${object.worker_id.company_id.name}.

\n" +" % if object.worker_id.working_mode == 'irregular':\n" +" Your shift counter is ${object.worker_id.cooperative_status_ids.sr}.\n" +" You should be at a minimum of 0 before the ${object.worker_id.cooperative_status_ids.future_alert_date}.\n" +" % endif\n" "\n" -" % if object.worker_id.company_id.street:\n" -" ${object.worker_id.company_id.street}\n" -" % endif\n" -" % if object.worker_id.company_id.street2:\n" -" ${object.worker_id.company_id.street2}
\n" -" % endif\n" -" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" -" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" -" % endif\n" -" % if object.worker_id.company_id.country_id:\n" -" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" -" % endif\n" -" % if object.worker_id.company_id.phone:\n" -" Phone:  ${object.worker_id.company_id.phone}\n" -" % endif\n" +"
If you have any question regarding this non-attendance, just answer this e-mail.\n" +"

\n" +"
\n" +"

Cooperatively yours,
\n" +" The Members' office volunteers

\n" +"

${object.worker_id.company_id.name}.

\n" "\n" -" % if object.worker_id.company_id.website:\n" -"
\n" -" Web : ${object.worker_id.company_id.website}\n" -"
\n" -" %endif\n" -" % if object.worker_id.company_id.logo_url:\n" -"
\n" -" \n" -"
\n" -" %endif\n" -"
\n" +" % if object.worker_id.company_id.street:\n" +" ${object.worker_id.company_id.street}\n" +" % endif\n" +" % if object.worker_id.company_id.street2:\n" +" ${object.worker_id.company_id.street2}
\n" +" % endif\n" +" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" +" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" +" % endif\n" +" % if object.worker_id.company_id.country_id:\n" +" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" +" % endif\n" +" % if object.worker_id.company_id.phone:\n" +" Phone:  ${object.worker_id.company_id.phone}\n" +" % endif\n" +"\n" +" % if object.worker_id.company_id.website:\n" +"
\n" +" Web : ${object.worker_id.company_id.website}\n" +"
\n" +" %endif\n" +" % if object.worker_id.company_id.logo_url:\n" +"
\n" +" \n" +"
\n" +" %endif\n" +"
\n" " " -msgstr "\n" -"
\n" +msgstr "
\n" "\n" " % if object.replaced_id:\n" -"

Bonjour ${object.replaced_id.name},

\n" +"

Bonjour ${object.replaced_id.name},\n" "\n" -"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

Tu devais remplacer ${object.worker_id.name}.

\n" +"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}), et tu devais remplacer ${object.worker_id.name}.\n" +"

Ton statut est désormais \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" " % endif\n" "\n" -" % if object.worker_id:\n" -"

Bonjour ${object.worker_id.name},

\n" +" % if not object.replaced_id:\n" +"

Bonjour ${object.worker_id.name},

\n" "\n" -"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

\n" +"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" +"

Ton statut est désormais \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" " % endif\n" "\n" -" % if object.state == 'absent_0':\n" -" Ton/ta supercoop t'a attribué 0 compensation, tu n'auras donc pas de shift à rattraper.\n" -" % endif\n" -" % if object.state == 'absent_1':\n" -" Ton/ta supercoop t'a attribué 1 compensation, tu dois donc faire un shift avant ton prochain shift régulier.\n" +" % if object.worker_id.working_mode == 'regular':\n" +" % if object.state == 'absent_0':\n" +"

Ton/ta supercoop t'a attribué 0 compensation, tu n'as donc pas de shifts à réaliser avant ton prochain shift régulier.\n" +" % endif\n" +" % if object.state == 'absent_1':\n" +"

Ton/ta supercoop t'a attribué 1 compensation, tu dois donc faire un shift avant ton prochain shift régulier.\n" +" % endif\n" +" % if object.state == 'absent_2':\n" +"

Ton/ta supercoop t'a attribué 2 compensations, tu dois donc faire deux shifts avant ton prochain shift régulier.\n" +" % endif\n" " % endif\n" -" % if object.state == 'absent_2':\n" -" Ton/ta supercoop t'a attribué 2 compensations, tu dois donc faire deux shifts avant ton prochain shift régulier. \n" +"\n" +" % if object.worker_id.working_mode == 'irregular':\n" +" Ton compteur de shifts vaut ${object.worker_id.cooperative_status_ids.sr}.\n" +" Il doit au minimum être à 0 avant le ${object.worker_id.cooperative_status_ids.future_alert_date}.\n" " % endif\n" "\n" -"

Ton statut est maintenant \"${object.worker_id.state}\".\n" -"

Si tu as une question à propos de cette absence, réponds à cet e-mail.\n" +"
Si tu as une question à propos de cette absence, réponds à cet e-mail.\n" "

\n" -"
\n" -"

Coopérativement,
\n" -" Les bénévoles du Bureau des Membres

\n" -"

${object.worker_id.company_id.name}.

\n" +"
\n" +"

Coopérativement,
\n" +" Les bénévoles du Bureau des Membres

\n" +"

${object.worker_id.company_id.name}.

\n" "\n" " % if object.worker_id.company_id.street:\n" " ${object.worker_id.company_id.street}\n" " % endif\n" " % if object.worker_id.company_id.street2:\n" -" ${object.worker_id.company_id.street2}
\n" +" ${object.worker_id.company_id.street2}
\n" " % endif\n" " % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" -" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" +" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" " % endif\n" " % if object.worker_id.company_id.country_id:\n" -" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" +" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" " % endif\n" " % if object.worker_id.company_id.phone:\n" " Phone:  ${object.worker_id.company_id.phone}\n" @@ -2356,8 +2368,8 @@ msgstr "Vous ne pouvez pas encoder d'exemption temporaire tant que la précéden #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:325 #, python-format -msgid "You cannot modify a validated attendance sheet." -msgstr "Vous ne pouvez pas modifier une feuille de présence validée." +msgid "A validated attendance sheet can't be modified" +msgstr "Vous ne pouvez pas modifier une feuille de présence validée" #. module: beesdoo_shift #: code:addons/beesdoo_shift/wizard/subscribe.py:15 @@ -2368,7 +2380,7 @@ msgstr "Vous ne pouvez réaliser cette opération sur vous-même." #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/task.py:89 #, python-format -msgid "You cannot set shift state to 'present' or 'absent' for a future shift." +msgid "Shift state of a future shift can't be set to 'present' or 'absent'." msgstr "Vous ne pouvez inscrire un shift futur comme 'present' ou 'absent'." #. module: beesdoo_shift @@ -2386,13 +2398,13 @@ msgstr "Vous n'avez pas les accès nécessaires pour effectuer cette opération. #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:103 #, python-format -msgid "You must choose a compensation number." +msgid "A compensation number is required" msgstr "Vous devez choisir un nombre de compensations" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:546 #, python-format -msgid "You must wait for the shifts to begin to validate sheet." +msgid "Attendance sheet can only be validated once the shifts have started." msgstr "Vous devez attendre que le créneau ait débuté pour valider la feuille de présence." #. module: beesdoo_shift diff --git a/beesdoo_shift/i18n/fr_BE.po b/beesdoo_shift/i18n/fr_BE.po index bcd3627..6d379c6 100644 --- a/beesdoo_shift/i18n/fr_BE.po +++ b/beesdoo_shift/i18n/fr_BE.po @@ -6,8 +6,8 @@ msgid "" msgstr "" "Project-Id-Version: Odoo Server 9.0c\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2020-01-21 13:18+0000\n" -"PO-Revision-Date: 2020-01-21 13:18+0000\n" +"POT-Creation-Date: 2020-01-23 13:26+0000\n" +"PO-Revision-Date: 2020-01-23 13:26+0000\n" "Last-Translator: <>\n" "Language-Team: \n" "MIME-Version: 1.0\n" @@ -28,114 +28,126 @@ msgstr "\n" #. module: beesdoo_shift #: model:mail.template,body_html:beesdoo_shift.email_template_non_attendance msgid "\n" -"
\n" +"
\n" "\n" -" % if object.replaced_id:\n" -"

Hello ${object.replaced_id.name},

\n" +" % if object.replaced_id:\n" +"

Hello ${object.replaced_id.name},\n" "\n" -"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

You were supposed to replace ${object.worker_id.name}.

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}),\n" +" and you were supposed to replace ${object.worker_id.name}.\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.worker_id:\n" -"

Hello ${object.worker_id.name},

\n" +" % if not object.replaced_id:\n" +"

Hello ${object.worker_id.name},

\n" "\n" -"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.state == 'absent_0':\n" -" Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do.\n" -" % endif\n" -" % if object.state == 'absent_1':\n" -" Super-cooperator assigned you 1 compensation, so you have to attend another shift.\n" -" % endif\n" -" % if object.state == 'absent_2':\n" -" Super-cooperator assigned you 2 compensations, so you have to attend 2 anothers shifts.\n" -" % endif\n" +" % if object.worker_id.working_mode == 'regular':\n" +" % if object.state == 'absent_0':\n" +"

Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_1':\n" +"

Super-cooperator assigned you 1 compensation, so you have to attend one additionnal shift before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_2':\n" +"

Super-cooperator assigned you 2 compensations, so you have to attend two additionnal shifts before your next regular shift.\n" +" % endif\n" +" % endif\n" "\n" -"

Your status have been updated to \"${object.worker_id.state}\".\n" -"

If you have any question regarding this non-attendance, just answer this e-mail.\n" -"

\n" -"
\n" -"

Cooperatively yours,
\n" -" The Members' office volunteers

\n" -"

${object.worker_id.company_id.name}.

\n" +" % if object.worker_id.working_mode == 'irregular':\n" +" Your shift counter is ${object.worker_id.cooperative_status_ids.sr}.\n" +" You should be at a minimum of 0 before the ${object.worker_id.cooperative_status_ids.future_alert_date}.\n" +" % endif\n" "\n" -" % if object.worker_id.company_id.street:\n" -" ${object.worker_id.company_id.street}\n" -" % endif\n" -" % if object.worker_id.company_id.street2:\n" -" ${object.worker_id.company_id.street2}
\n" -" % endif\n" -" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" -" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" -" % endif\n" -" % if object.worker_id.company_id.country_id:\n" -" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" -" % endif\n" -" % if object.worker_id.company_id.phone:\n" -" Phone:  ${object.worker_id.company_id.phone}\n" -" % endif\n" +"
If you have any question regarding this non-attendance, just answer this e-mail.\n" +"

\n" +"
\n" +"

Cooperatively yours,
\n" +" The Members' office volunteers

\n" +"

${object.worker_id.company_id.name}.

\n" "\n" -" % if object.worker_id.company_id.website:\n" -"
\n" -" Web : ${object.worker_id.company_id.website}\n" -"
\n" -" %endif\n" -" % if object.worker_id.company_id.logo_url:\n" -"
\n" -" \n" -"
\n" -" %endif\n" -"
\n" +" % if object.worker_id.company_id.street:\n" +" ${object.worker_id.company_id.street}\n" +" % endif\n" +" % if object.worker_id.company_id.street2:\n" +" ${object.worker_id.company_id.street2}
\n" +" % endif\n" +" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" +" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" +" % endif\n" +" % if object.worker_id.company_id.country_id:\n" +" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" +" % endif\n" +" % if object.worker_id.company_id.phone:\n" +" Phone:  ${object.worker_id.company_id.phone}\n" +" % endif\n" +"\n" +" % if object.worker_id.company_id.website:\n" +"
\n" +" Web : ${object.worker_id.company_id.website}\n" +"
\n" +" %endif\n" +" % if object.worker_id.company_id.logo_url:\n" +"
\n" +" \n" +"
\n" +" %endif\n" +"
\n" " " -msgstr "\n" -"
\n" +msgstr "
\n" "\n" " % if object.replaced_id:\n" -"

Bonjour ${object.replaced_id.name},

\n" +"

Bonjour ${object.replaced_id.name},\n" "\n" -"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

Tu devais remplacer ${object.worker_id.name}.

\n" +"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}), et tu devais remplacer ${object.worker_id.name}.\n" +"

Ton statut est désormais \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" " % endif\n" "\n" -" % if object.worker_id:\n" -"

Bonjour ${object.worker_id.name},

\n" +" % if not object.replaced_id:\n" +"

Bonjour ${object.worker_id.name},

\n" "\n" -"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

\n" +"

Tu as été encodé(e) comme absent(e) à ton dernier shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" +"

Ton statut est désormais \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" " % endif\n" "\n" -" % if object.state == 'absent_0':\n" -" Ton/ta supercoop t'a attribué 0 compensation, tu n'auras donc pas de shift à rattraper.\n" -" % endif\n" -" % if object.state == 'absent_1':\n" -" Ton/ta supercoop t'a attribué 1 compensation, tu dois donc faire un shift avant ton prochain shift régulier.\n" +" % if object.worker_id.working_mode == 'regular':\n" +" % if object.state == 'absent_0':\n" +"

Ton/ta supercoop t'a attribué 0 compensation, tu n'as donc pas de shifts à réaliser avant ton prochain shift régulier.\n" +" % endif\n" +" % if object.state == 'absent_1':\n" +"

Ton/ta supercoop t'a attribué 1 compensation, tu dois donc faire un shift avant ton prochain shift régulier.\n" +" % endif\n" +" % if object.state == 'absent_2':\n" +"

Ton/ta supercoop t'a attribué 2 compensations, tu dois donc faire deux shifts avant ton prochain shift régulier.\n" +" % endif\n" " % endif\n" -" % if object.state == 'absent_2':\n" -" Ton/ta supercoop t'a attribué 2 compensations, tu dois donc faire deux shifts avant ton prochain shift régulier. \n" +"\n" +" % if object.worker_id.working_mode == 'irregular':\n" +" Ton compteur de shifts vaut ${object.worker_id.cooperative_status_ids.sr}.\n" +" Il doit au minimum être à 0 avant le ${object.worker_id.cooperative_status_ids.future_alert_date}.\n" " % endif\n" "\n" -"

Ton statut est maintenant \"${object.worker_id.state}\".\n" -"

Si tu as une question à propos de cette absence, réponds à cet e-mail.\n" +"
Si tu as une question à propos de cette absence, réponds à cet e-mail.\n" "

\n" -"
\n" -"

Coopérativement,
\n" -" Les bénévoles du Bureau des Membres

\n" -"

${object.worker_id.company_id.name}.

\n" +"
\n" +"

Coopérativement,
\n" +" Les bénévoles du Bureau des Membres

\n" +"

${object.worker_id.company_id.name}.

\n" "\n" " % if object.worker_id.company_id.street:\n" " ${object.worker_id.company_id.street}\n" " % endif\n" " % if object.worker_id.company_id.street2:\n" -" ${object.worker_id.company_id.street2}
\n" +" ${object.worker_id.company_id.street2}
\n" " % endif\n" " % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" -" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" +" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" " % endif\n" " % if object.worker_id.company_id.country_id:\n" -" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" +" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" " % endif\n" " % if object.worker_id.company_id.phone:\n" " Phone:  ${object.worker_id.company_id.phone}\n" @@ -1602,7 +1614,7 @@ msgstr "Veuillez entrer votre login." #: code:addons/beesdoo_shift/models/attendance_sheet.py:590 #, python-format msgid "Please give your feedback about the number of workers." -msgstr "L'équipe était-elle assez nombreuse ?" +msgstr "Veuillez remplir votre retour concernant le nombre de travailleurs." #. module: beesdoo_shift #: code:addons/beesdoo_shift/wizard/validate_attendance_sheet.py:94 @@ -2356,8 +2368,8 @@ msgstr "Vous ne pouvez pas encoder d'exemption temporaire tant que la précéden #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:325 #, python-format -msgid "You cannot modify a validated attendance sheet." -msgstr "Vous ne pouvez pas modifier une feuille de présence validée." +msgid "A validated attendance sheet can't be modified" +msgstr "Vous ne pouvez pas modifier une feuille de présence validée" #. module: beesdoo_shift #: code:addons/beesdoo_shift/wizard/subscribe.py:15 @@ -2368,7 +2380,7 @@ msgstr "Vous ne pouvez réaliser cette opération sur vous-même." #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/task.py:89 #, python-format -msgid "You cannot set shift state to 'present' or 'absent' for a future shift." +msgid "Shift state of a future shift can't be set to 'present' or 'absent'." msgstr "Vous ne pouvez inscrire un shift futur comme 'present' ou 'absent'." #. module: beesdoo_shift @@ -2386,13 +2398,13 @@ msgstr "Vous n'avez pas les accès nécessaires pour effectuer cette opération. #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:103 #, python-format -msgid "You must choose a compensation number." +msgid "A compensation number is required" msgstr "Vous devez choisir un nombre de compensations" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:546 #, python-format -msgid "You must wait for the shifts to begin to validate sheet." +msgid "Attendance sheet can only be validated once the shifts have started." msgstr "Vous devez attendre que le créneau ait débuté pour valider la feuille de présence." #. module: beesdoo_shift diff --git a/beesdoo_shift/i18n/nl_BE.po b/beesdoo_shift/i18n/nl_BE.po index 9a0c6b0..b821003 100644 --- a/beesdoo_shift/i18n/nl_BE.po +++ b/beesdoo_shift/i18n/nl_BE.po @@ -28,131 +28,144 @@ msgstr "\n" #. module: beesdoo_shift #: model:mail.template,body_html:beesdoo_shift.email_template_non_attendance msgid "\n" -"
\n" +"
\n" "\n" -" % if object.replaced_id:\n" -"

Hello ${object.replaced_id.name},

\n" +" % if object.replaced_id:\n" +"

Hello ${object.replaced_id.name},\n" "\n" -"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

You were supposed to replace ${object.worker_id.name}.

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}),\n" +" and you were supposed to replace ${object.worker_id.name}.\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.worker_id:\n" -"

Hello ${object.worker_id.name},

\n" +" % if not object.replaced_id:\n" +"

Hello ${object.worker_id.name},

\n" "\n" -"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.state == 'absent_0':\n" -" Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do.\n" -" % endif\n" -" % if object.state == 'absent_1':\n" -" Super-cooperator assigned you 1 compensation, so you have to attend another shift.\n" -" % endif\n" -" % if object.state == 'absent_2':\n" -" Super-cooperator assigned you 2 compensations, so you have to attend 2 anothers shifts.\n" -" % endif\n" +" % if object.worker_id.working_mode == 'regular':\n" +" % if object.state == 'absent_0':\n" +"

Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_1':\n" +"

Super-cooperator assigned you 1 compensation, so you have to attend one additionnal shift before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_2':\n" +"

Super-cooperator assigned you 2 compensations, so you have to attend two additionnal shifts before your next regular shift.\n" +" % endif\n" +" % endif\n" "\n" -"

Your status have been updated to \"${object.worker_id.state}\".\n" -"

If you have any question regarding this non-attendance, just answer this e-mail.\n" -"

\n" -"
\n" -"

Cooperatively yours,
\n" -" The Members' office volunteers

\n" -"

${object.worker_id.company_id.name}.

\n" +" % if object.worker_id.working_mode == 'irregular':\n" +" Your shift counter is ${object.worker_id.cooperative_status_ids.sr}.\n" +" You should be at a minimum of 0 before the ${object.worker_id.cooperative_status_ids.future_alert_date}.\n" +" % endif\n" "\n" -" % if object.worker_id.company_id.street:\n" -" ${object.worker_id.company_id.street}\n" -" % endif\n" -" % if object.worker_id.company_id.street2:\n" -" ${object.worker_id.company_id.street2}
\n" -" % endif\n" -" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" -" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" -" % endif\n" -" % if object.worker_id.company_id.country_id:\n" -" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" -" % endif\n" -" % if object.worker_id.company_id.phone:\n" -" Phone:  ${object.worker_id.company_id.phone}\n" -" % endif\n" +"
If you have any question regarding this non-attendance, just answer this e-mail.\n" +"

\n" +"
\n" +"

Cooperatively yours,
\n" +" The Members' office volunteers

\n" +"

${object.worker_id.company_id.name}.

\n" "\n" -" % if object.worker_id.company_id.website:\n" -" \n" -" %endif\n" -" % if object.worker_id.company_id.logo_url:\n" -"
\n" -" \n" -"
\n" -" %endif\n" -"
\n" +" % if object.worker_id.company_id.street:\n" +" ${object.worker_id.company_id.street}\n" +" % endif\n" +" % if object.worker_id.company_id.street2:\n" +" ${object.worker_id.company_id.street2}
\n" +" % endif\n" +" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" +" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" +" % endif\n" +" % if object.worker_id.company_id.country_id:\n" +" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" +" % endif\n" +" % if object.worker_id.company_id.phone:\n" +" Phone:  ${object.worker_id.company_id.phone}\n" +" % endif\n" +"\n" +" % if object.worker_id.company_id.website:\n" +" \n" +" %endif\n" +" % if object.worker_id.company_id.logo_url:\n" +"
\n" +" \n" +"
\n" +" %endif\n" +"
\n" " " msgstr "\n" -"
\n" +"
\n" "\n" -" % if object.replaced_id:\n" -"

Hallo ${object.replaced_id.name},

\n" +" % if object.replaced_id:\n" +"

Hello ${object.replaced_id.name},\n" "\n" -"

Je bent gecodeerd als afwezig bij uw laatste shift(${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

Je had ${object.worker_id.name} moeten vervangen.

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.replaced_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}),\n" +" and you were supposed to replace ${object.worker_id.name}.\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.worker_id:\n" -"

Hallo ${object.worker_id.name},

\n" +" % if not object.replaced_id:\n" +"

Hello ${object.worker_id.name},

\n" "\n" -"

Je bent gecodeerd als afwezig bij uw laatste shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" -"

\n" -" % endif\n" +"

You have been recorded as non-attended during your last shift (${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y - %H:%M')}).\n" +"

Your current status is \"${object.worker_id.cooperative_status_ids.get_status_value()}\".\n" +" % endif\n" "\n" -" % if object.state == 'absent_0':\n" -" Je supercoop gaf je 0 compensation. Je moet dus nul shift komen doen voor je volgende regelmatige shift. .\n" -" % endif\n" -" % if object.state == 'absent_1':\n" -" Je supercoop gaf je 1 compensation. Je moet dus een shift komen doen voor je volgende regelmatige shift. .\n" -" % endif\n" -" % if object.state == 'absent_2':\n" -" Je supercoop gaf je 2 compensations. Je moet dus twee shift komen doen voor je volgende regelmatige shift. .\n" -" % endif\n" +" % if object.worker_id.working_mode == 'regular':\n" +" % if object.state == 'absent_0':\n" +"

Super-cooperator assigned you 0 compensation, so you won't have any additionnal shift to do before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_1':\n" +"

Super-cooperator assigned you 1 compensation, so you have to attend one additionnal shift before your next regular shift.\n" +" % endif\n" +" % if object.state == 'absent_2':\n" +"

Super-cooperator assigned you 2 compensations, so you have to attend two additionnal shifts before your next regular shift.\n" +" % endif\n" +" % endif\n" "\n" -"

-Jow status is nu \"${object.worker_id.state}\".\n" -"

Als je een vraag hebt over deze afwezigheid, beantwoord dan deze e-mail.\n" -"

\n" -"
\n" -"

Met coöperatieve groeten,
\n" -" De vrijwilligers van het Ledenbureau

\n" -"

${object.worker_id.company_id.name}.

\n" +" % if object.worker_id.working_mode == 'irregular':\n" +" Your shift counter is ${object.worker_id.cooperative_status_ids.sr}.\n" +" You should be at a minimum of 0 before the ${object.worker_id.cooperative_status_ids.future_alert_date}.\n" +" % endif\n" "\n" -" % if object.worker_id.company_id.street:\n" -" ${object.worker_id.company_id.street}\n" -" % endif\n" -" % if object.worker_id.company_id.street2:\n" -" ${object.worker_id.company_id.street2}
\n" -" % endif\n" -" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" -" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" -" % endif\n" -" % if object.worker_id.company_id.country_id:\n" -" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" -" % endif\n" -" % if object.worker_id.company_id.phone:\n" -" Phone:  ${object.worker_id.company_id.phone}\n" -" % endif\n" +"
If you have any question regarding this non-attendance, just answer this e-mail.\n" +"

\n" +"
\n" +"

Cooperatively yours,
\n" +" The Members' office volunteers

\n" +"

${object.worker_id.company_id.name}.

\n" "\n" -" % if object.worker_id.company_id.website:\n" -" \n" -" %endif\n" -" % if object.worker_id.company_id.logo_url:\n" -"
\n" -" \n" -"
\n" -" %endif\n" -"
\n" +" % if object.worker_id.company_id.street:\n" +" ${object.worker_id.company_id.street}\n" +" % endif\n" +" % if object.worker_id.company_id.street2:\n" +" ${object.worker_id.company_id.street2}
\n" +" % endif\n" +" % if object.worker_id.company_id.city or object.worker_id.company_id.zip:\n" +" ${object.worker_id.company_id.zip} ${object.worker_id.company_id.city}
\n" +" % endif\n" +" % if object.worker_id.company_id.country_id:\n" +" ${object.worker_id.company_id.state_id and ('%s, ' % object.worker_id.company_id.state_id.name) or ''} ${object.worker_id.company_id.country_id.name or ''}
\n" +" % endif\n" +" % if object.worker_id.company_id.phone:\n" +" Phone:  ${object.worker_id.company_id.phone}\n" +" % endif\n" +"\n" +" % if object.worker_id.company_id.website:\n" +" \n" +" %endif\n" +" % if object.worker_id.company_id.logo_url:\n" +"
\n" +" \n" +"
\n" +" %endif\n" +"
\n" " " #. module: beesdoo_shift @@ -225,15 +238,15 @@ msgid "\n" msgstr "\n" "
\n" "\n" -"

Hello ${object.worker_id.name},

\n" +"

Dag ${object.worker_id.name},

\n" "\n" -"

You are awaited the ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y')}\n" -" for the shift starting at ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%H:%M')}.\n" +"

U wordt verwacht op ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%d.%m.%Y')}\n" +" voor de shift die aanvangt om ${format_tz(object.start_time,object.worker_id.tz or 'Europe/Brussels','%H:%M')}.\n" "\n" -"

Please contact us at ${object.worker_id.company_id.email} if you have any trouble attending the shift.\n" +"

Gelieve ons te contacteren op ${object.worker_id.company_id.email} moest u op deze shift niet aanwezig kunnen zijn.\n" "

\n" "
\n" -"

Sustainably yours,

\n" +"

Coöperatieve groeten,,

\n" "

${object.worker_id.company_id.name}.

\n" "\n" " % if object.worker_id.company_id.street:\n" @@ -597,19 +610,19 @@ msgstr "Opmerkingen over jouw shift" #: code:addons/beesdoo_shift/models/attendance_sheet.py:582 #, python-format msgid "Compensation number is missing for %s" -msgstr "Compensation number is missing for %s" +msgstr "Een compensatie nummer is vereist (%s)" #. module: beesdoo_shift #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_shift_is_compensation msgid "Compensation shift" -msgstr "Compensation shift" +msgstr "Compensatie shift" #. module: beesdoo_shift #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_sheet_added_is_compensation #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_sheet_expected_is_compensation #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_sheet_shift_is_compensation msgid "Compensation shift ?" -msgstr "Compensation shift ?" +msgstr "Compensatie shift ?" #. module: beesdoo_shift #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_sheet_expected_compensation_no @@ -832,7 +845,7 @@ msgstr "Standaard Soort taak" #. module: beesdoo_shift #: model:ir.model.fields,help:beesdoo_shift.field_beesdoo_shift_config_settings_default_task_type_id msgid "Default task type for attendance sheet pre-filling" -msgstr "Default task type for attendance sheet pre-filling" +msgstr "Standaard soort taak toe te kennen bij voor-invullen van aanwezigheidslijst" #. module: beesdoo_shift #: model:ir.ui.view,arch_db:beesdoo_shift.task_template_view_kanban @@ -1690,7 +1703,7 @@ msgstr "Vervangingswerker" #. module: beesdoo_shift #: model:ir.model.fields,help:beesdoo_shift.field_beesdoo_shift_sheet_expected_replacement_worker_id msgid "Replacement Worker (must be regular)" -msgstr "Replacement Worker (must be regular)" +msgstr "Vervangingswerker (regelmatig werkregime vereist)" #. module: beesdoo_shift #: model:ir.ui.view,arch_db:beesdoo_shift.task_shift_view_kanban @@ -1778,7 +1791,7 @@ msgstr "Shift Staat" #: code:addons/beesdoo_shift/models/attendance_sheet.py:574 #, python-format msgid "Shift State is missing for %s" -msgstr "Shift State is missing for %s" +msgstr "De shift status van %s ontbreekt" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:557 @@ -2253,7 +2266,7 @@ msgstr "Vervangingswerker" #. module: beesdoo_shift #: model:ir.ui.view,arch_db:beesdoo_shift.task_template_view_kanban msgid "Worker Number:" -msgstr "Worker Number:" +msgstr "Werker's nummer :" #. module: beesdoo_shift #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_shift_worker_id @@ -2263,7 +2276,7 @@ msgstr "Werker id" #. module: beesdoo_shift #: model:ir.model.fields,field_description:beesdoo_shift.field_beesdoo_shift_template_worker_name msgid "Worker name" -msgstr "Worker name" +msgstr "Werker's naam" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:553 @@ -2280,7 +2293,7 @@ msgstr "Werknemernummer" #: code:addons/beesdoo_shift/models/attendance_sheet.py:330 #, python-format msgid "Worker not found (invalid barcode or status)." -msgstr "Worker not found (invalid barcode or status)." +msgstr "Werker niet gevonden (ongeldige barcode of status)." #. module: beesdoo_shift #: model:ir.ui.view,arch_db:beesdoo_shift.task_shift_view_kanban @@ -2306,13 +2319,13 @@ msgstr "Werkregime" #: code:addons/beesdoo_shift/models/attendance_sheet.py:567 #, python-format msgid "Working mode is missing for %s" -msgstr "Working mode is missing for %s" +msgstr "Werkregime van %s ontbreekt" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/task.py:266 #, python-format msgid "Working mode is not properly defined. Please check if the worker is subscribed" -msgstr "Working mode is not properly defined. Please check if the worker is subscribed" +msgstr "Werkregime is niet correct gedefinieerd. Gelieve na te gaan of de werker geregistreerd en niet geblokkeerd is" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/cooperative_status.py:418 @@ -2355,8 +2368,8 @@ msgstr "You cannot encode new temporary exemptuon since the previous one are not #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:325 #, python-format -msgid "You cannot modify a validated attendance sheet." -msgstr "You cannot modify a validated attendance sheet." +msgid "A validated attendance sheet can't be modified" +msgstr "Een gevalideerde aanwezigheidslijst kan niet bewerkt worden" #. module: beesdoo_shift #: code:addons/beesdoo_shift/wizard/subscribe.py:15 @@ -2367,8 +2380,8 @@ msgstr "You cannot perform this operation on yourself" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/task.py:89 #, python-format -msgid "You cannot set shift state to 'present' or 'absent' for a future shift." -msgstr "You cannot set shift state to 'present' or 'absent' for a future shift." +msgid "Shift state of a future shift can't be set to 'present' or 'absent'." +msgstr "De shift status van een toekomstige shift kan niet op 'aanwezig' of 'afwezig' worden gezet." #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/cooperative_status.py:425 @@ -2385,14 +2398,14 @@ msgstr "You don't have the required access for this operation." #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:103 #, python-format -msgid "You must choose a compensation number." -msgstr "You must choose a compensation number." +msgid "A compensation number is required" +msgstr "Een compensatie nummer is vereist" #. module: beesdoo_shift #: code:addons/beesdoo_shift/models/attendance_sheet.py:546 #, python-format -msgid "You must wait for the shifts to begin to validate sheet." -msgstr "You must wait for the shifts to begin to validate sheet." +msgid "Attendance sheet can only be validated once the shifts have started." +msgstr "Aanwezigheidslijsten kunnen pas worden gevalideerd nadat de shifts begonnen zijn." #. module: beesdoo_shift #: code:addons/beesdoo_shift/wizard/extension.py:29 diff --git a/beesdoo_shift/models/attendance_sheet.py b/beesdoo_shift/models/attendance_sheet.py index 9f40035..cd98dfe 100644 --- a/beesdoo_shift/models/attendance_sheet.py +++ b/beesdoo_shift/models/attendance_sheet.py @@ -100,7 +100,7 @@ class AttendanceSheetShiftExpected(models.Model): def _constrain_compensation_no(self): if self.state == "absent": if not self.compensation_no: - raise UserError(_("You must choose a compensation number.")) + raise UserError(_("A compensation number is required")) class AttendanceSheetShiftAdded(models.Model): @@ -322,7 +322,7 @@ class AttendanceSheet(models.Model): def on_barcode_scanned(self, barcode): if self.state == "validated": raise UserError( - _("You cannot modify a validated attendance sheet.") + _("A validated attendance sheet can't be modified") ) worker = self.env["res.partner"].search([("barcode", "=", barcode)]) @@ -543,7 +543,7 @@ class AttendanceSheet(models.Model): raise UserError(_("The sheet has already been validated.")) if start_time_dt > datetime.now(): raise UserError( - _("You must wait for the shifts to begin to validate sheet.") + _("Attendance sheet can only be validated once the shifts have started.") ) # Fields validation diff --git a/beesdoo_shift/models/task.py b/beesdoo_shift/models/task.py index 253279d..75ad52c 100644 --- a/beesdoo_shift/models/task.py +++ b/beesdoo_shift/models/task.py @@ -87,8 +87,8 @@ class Task(models.Model): if datetime.now() < start_time_dt: if self.state in ["done", "absent_2", "absent_1", "absent_0"]: raise UserError(_( - "You cannot set shift state to 'present' " - "or 'absent' for a future shift." + "Shift state of a future shift " + "can't be set to 'present' or 'absent'." )) @api.constrains('is_regular', 'is_compensation')