diff --git a/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py b/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py index 8190ecedcd6d7c2bd921fdad781c2f8fad378a2d..60e0d44ecb6cdec9eec472d87f36185874f40a5c 100644 --- a/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py +++ b/erpnext/accounts/doctype/repost_accounting_ledger/repost_accounting_ledger.py @@ -184,7 +184,7 @@ def validate_docs_for_voucher_types(doc_voucher_types): # Validate voucher types voucher_types = set(doc_voucher_types) if disallowed_types := voucher_types.difference(allowed_types): - message = "are" if len(disallowed_types) > 1 else "is" + message = _("are") if len(disallowed_types) > 1 else _("is") frappe.throw( _("{0} {1} not allowed to be reposted. Modify {2} to enable reposting.").format( frappe.bold(comma_and(list(disallowed_types))), diff --git a/erpnext/venue/notification/reservation_de_ressource___notification_gestionnaire/reservation_de_ressource___notification_gestionnaire.html b/erpnext/venue/notification/reservation_de_ressource___notification_gestionnaire/reservation_de_ressource___notification_gestionnaire.html index f1b1dd3c7954fd4c07ba26d0834764f48e0aa97a..e0dd85e1c2172a238565ea75beb96c93b61ea766 100644 --- a/erpnext/venue/notification/reservation_de_ressource___notification_gestionnaire/reservation_de_ressource___notification_gestionnaire.html +++ b/erpnext/venue/notification/reservation_de_ressource___notification_gestionnaire/reservation_de_ressource___notification_gestionnaire.html @@ -8,11 +8,12 @@ {% if item.item_booking %} {% set booking = frappe.get_doc("Item Booking", item.item_booking) %}
{{ booking.item_name }}
-
{{ _("Start") }}: {{ frappe.utils.format_datetime(booking.starts_on) }}
-
{{ _("End") }}: {{ frappe.utils.format_datetime(booking.ends_on) }}
+
{{ _("Start", context="Item Booking Notification") }}: {{ frappe.utils.format_datetime(booking.starts_on) }}
+
{{ _("End", context="Item Booking Notification") }}: {{ frappe.utils.format_datetime(booking.ends_on) }}
{% if booking.notes %}
{{ _("Notes") }}: {{ booking.notes }}
{% endif %} + {% endif%} {% endfor %} \ No newline at end of file diff --git a/erpnext/venue/notification/reservation_de_ressources___notification_utilisateurs/reservation_de_ressources___notification_utilisateurs.html b/erpnext/venue/notification/reservation_de_ressources___notification_utilisateurs/reservation_de_ressources___notification_utilisateurs.html index 4a2d247e9f8454d2873de78a215b30801f8e874a..72c95dc3ca72769ed1829c851ed8c79e302b4467 100644 --- a/erpnext/venue/notification/reservation_de_ressources___notification_utilisateurs/reservation_de_ressources___notification_utilisateurs.html +++ b/erpnext/venue/notification/reservation_de_ressources___notification_utilisateurs/reservation_de_ressources___notification_utilisateurs.html @@ -8,14 +8,15 @@ {% if item.item_booking %} {% set booking = frappe.get_doc("Item Booking", item.item_booking) %}
{{ booking.item_name }}
-
{{ _("Start") }}: {{ frappe.utils.format_datetime(booking.starts_on) }}
-
{{ _("End") }}: {{ frappe.utils.format_datetime(booking.ends_on) }}
+
{{ _("Start", context="Item Booking Notification") }}: {{ frappe.utils.format_datetime(booking.starts_on) }}
+
{{ _("End", context="Item Booking Notification") }}: {{ frappe.utils.format_datetime(booking.ends_on) }}
{% if booking.notes %}
{{ _("Notes") }}: {{ booking.notes }}
{% endif %} {% if booking.status in ("Confirmed", "Not confirmed") %}
{{ booking.status }}
- {% endif%} - {% endif%} + {% endif %} + + {% endif %} {% endfor %} \ No newline at end of file