This commit is contained in:
Kovid Goyal 2017-06-21 11:42:56 +05:30
parent 1d2d913def
commit 94bf274222
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -845,7 +845,7 @@ class ConfigWidget(ConfigWidgetBase):
lopen(log_error_file, 'rb').read().decode('utf8', 'replace') lopen(log_error_file, 'rb').read().decode('utf8', 'replace')
) )
except EnvironmentError: except EnvironmentError:
el.setPlainText('No error log found') el.setPlainText(_('No error log found'))
layout.addWidget(QLabel(_('Access log:'))) layout.addWidget(QLabel(_('Access log:')))
al = QPlainTextEdit(d) al = QPlainTextEdit(d)
layout.addWidget(al) layout.addWidget(al)
@ -854,7 +854,7 @@ class ConfigWidget(ConfigWidgetBase):
lopen(log_access_file, 'rb').read().decode('utf8', 'replace') lopen(log_access_file, 'rb').read().decode('utf8', 'replace')
) )
except EnvironmentError: except EnvironmentError:
al.setPlainText('No access log found') al.setPlainText(_('No access log found'))
loc = QLabel(_('The server log files are in: {}').format(os.path.dirname(log_error_file))) loc = QLabel(_('The server log files are in: {}').format(os.path.dirname(log_error_file)))
loc.setWordWrap(True) loc.setWordWrap(True)
layout.addWidget(loc) layout.addWidget(loc)