chore(csvutils): update messages

Avoid semgrep issue with translated string

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
Akhil Narang 2024-05-08 16:17:45 +05:30
parent e69093c82b
commit 123844b10d
No known key found for this signature in database
GPG key ID: 9DCC61E211BF645F

View file

@ -51,7 +51,7 @@ def read_csv_content(fcontent):
if not decoded:
frappe.msgprint(
_("Unknown file encoding. Tried [%s]." % ", ".join(FILE_ENCODING_OPTIONS)),
_("Unknown file encoding. Tried to use: {0}").format(", ".join(FILE_ENCODING_OPTIONS)),
raise_exception=True,
)
@ -70,7 +70,9 @@ def read_csv_content(fcontent):
except csv.Error:
# if sniff fails, show alert on user interface. Fall back to use default dialect (excel)
frappe.msgprint(
_("Delimiter detection failed. Try enable Custom delimiters and adjust Delimiter options."),
_(
"Delimiter detection failed. Try to enable custom delimiters and adjust the delimiter options as per your data."
),
indicator="orange",
alert=True,
)