fix: translatable strings (#27443)

This commit is contained in:
Raffael Meyer 2024-08-19 16:43:19 +02:00 committed by GitHub
parent 4f127d4338
commit 6c5a099c1e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ def follow_document(doctype, doc_name, user):
return False
if not frappe.db.get_value("User", user, "document_follow_notify", ignore=True, cache=True):
frappe.toast(_("Document follow not set."))
frappe.toast(_("Document follow is not enabled for this user."))
return False
if not is_document_followed(doctype, doc_name, user):

View file

@ -16,7 +16,7 @@ frappe.views.RenderPreviewer = class RenderPreviewer {
fields.push(...me.body_fields);
me.dialog = new frappe.ui.Dialog({
title: __("Preview on") + " " + __(me.doctype),
title: __("Preview on {0}", [__(me.doctype)]),
no_submit_on_enter: true,
fields: fields,
minimizable: true,