Update Translation "->'

This commit is contained in:
OzzieIsaacs
2018-09-08 14:50:52 +02:00
parent 2de41a5c86
commit a5d15a19de
23 changed files with 207 additions and 293 deletions
+2 -2
View File
@@ -3281,7 +3281,7 @@ def edit_book(book_id):
if '.' in requested_file.filename:
file_ext = requested_file.filename.rsplit('.', 1)[-1].lower()
if file_ext not in ALLOWED_EXTENSIONS:
flash(_('File extension "%s" is not allowed to be uploaded to this server' % file_ext),
flash(_("File extension '%(ext)s' is not allowed to be uploaded to this server", ext=file_ext),
category="error")
return redirect(url_for('show_book', book_id=book.id))
else:
@@ -3573,7 +3573,7 @@ def upload():
file_ext = requested_file.filename.rsplit('.', 1)[-1].lower()
if file_ext not in ALLOWED_EXTENSIONS:
flash(
_('File extension "%(ext)s" is not allowed to be uploaded to this server',
_("File extension '%(ext)s' is not allowed to be uploaded to this server",
ext=file_ext), category="error")
return redirect(url_for('index'))
else: