chore: misc translation/semgrep fixes

This commit is contained in:
Ankush Menat 2021-05-12 19:25:21 +05:30
parent 6d8c691ddd
commit d7eea22609
No known key found for this signature in database
GPG key ID: 8EA82E09BBD13AAF
3 changed files with 4 additions and 7 deletions

View file

@ -929,10 +929,7 @@ class Column:
self.warnings.append(
{
"col": self.column_number,
"message": _(
"Date format could not be determined from the values in"
" this column. Defaulting to yyyy-mm-dd."
),
"message": _("Date format could not be determined from the values in this column. Defaulting to yyyy-mm-dd."),
"type": "info",
}
)

View file

@ -40,7 +40,7 @@ class BotParser(object):
def format_list(self, data):
'''Format list as markdown'''
return _('I found these: ') + ', '.join(' [{title}](/app/Form/{doctype}/{name})'.format(
return _('I found these:') + ' ' + ', '.join(' [{title}](/app/Form/{doctype}/{name})'.format(
title = d.title or d.name,
doctype=self.get_doctype(),
name=d.name) for d in data)

View file

@ -38,13 +38,13 @@ def web_block(template, values=None, **kwargs):
def web_blocks(blocks):
from frappe import throw, _dict
from frappe import throw, _dict, _
from frappe.website.doctype.web_page.web_page import get_web_blocks_html
web_blocks = []
for block in blocks:
if not block.get("template"):
throw("Web Template is not specified")
throw(_("Web Template is not specified"))
doc = _dict(
{