Un-split some strings for translateability. And so begins the battle between gettext and pep8...

pull/3/head
Jonas Thelemann 2017-04-05 15:05:11 +01:00 committed by Dave Page
parent 6d9cfa6679
commit b8566a0127
3 changed files with 4 additions and 6 deletions

View File

@ -247,8 +247,7 @@ class ForeignTableView(PGChildNodeView, DataTypeReader):
status=410,
success=0,
errormsg=gettext(
"Could not find the required parameter \
(%s)." % arg
"Could not find the required parameter (%s)." % arg
)
)

View File

@ -1,4 +1,4 @@
<p>{{ _('You are currently running version {0} of {1}, however the current version is {2}.').format(current_version,
product_name, upgrade_version) }}</p>
<p>{{ _('Please click <a class="alert-link" href="{0}" target="_new">here</a> for more
information.').format(download_url) }}</p>
<p>{{ _('Please click <a class="alert-link" href="{0}" target="_new">here</a> for more information.').format(
download_url) }}</p>

View File

@ -259,8 +259,7 @@ class Filemanager(object):
self.trans_id = trans_id
self.patherror = encode_json(
{
'Error': gettext('No permission to operate on \
specified path.'),
'Error': gettext('No permission to operate on specified path.'),
'Code': 0
}
)