Add missing end dot on translatable strings

issue8670
review252211037
This commit is contained in:
Sergi Almacellas Abellana
2019-09-30 09:40:31 +02:00
parent 7167b9224e
commit f5f4fa465d
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -822,7 +822,7 @@ def check_version(box, version=__version__):
return True
except Exception:
logger.error(
_("Unable to check for new version"), exc_info=True)
_("Unable to check for new version."), exc_info=True)
return True
else:
if check_version(box, version):
+4 -4
View File
@@ -307,9 +307,9 @@ class DBListEditor(object):
label = None
if self.test_server_version(host, port) is False:
label = _('Incompatible version of the server')
label = _('Incompatible version of the server.')
elif dbs is None:
label = _('Could not connect to the server')
label = _('Could not connect to the server.')
if label:
self.database_label.set_label('<b>%s</b>' % label)
self.database_label.show()
@@ -623,11 +623,11 @@ class DBLogin(object):
if not test:
if test is False:
common.warning('',
_('Incompatible version of the server'),
_('Incompatible version of the server.'),
parent=self.dialog)
else:
common.warning('',
_('Could not connect to the server'),
_('Could not connect to the server.'),
parent=self.dialog)
continue
database = self.entry_database.get_text()
+3 -3
View File
@@ -1059,18 +1059,18 @@ class Screen(SignalEvent):
def invalid_message(self, record=None):
if record is None:
record = self.current_record
domain_string = _('"%s" is not valid according to its domain')
domain_string = _('"%s" is not valid according to its domain.')
domain_parser = DomainParser(
{n: f.attrs for n, f in record.group.fields.items()})
fields = []
for field, invalid in sorted(record.invalid_fields.items()):
string = record.group.fields[field].attrs['string']
if invalid == 'required' or invalid == [[field, '!=', None]]:
fields.append(_('"%s" is required') % string)
fields.append(_('"%s" is required.') % string)
elif invalid == 'domain':
fields.append(domain_string % string)
elif invalid == 'children':
fields.append(_('The values of "%s" are not valid') % string)
fields.append(_('The values of "%s" are not valid.') % string)
else:
if domain_parser.stringable(invalid):
fields.append(domain_parser.string(invalid))