diff --git a/tryton/common/common.py b/tryton/common/common.py index 0e0aeb33b6..6a57e652aa 100644 --- a/tryton/common/common.py +++ b/tryton/common/common.py @@ -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): diff --git a/tryton/gui/window/dblogin.py b/tryton/gui/window/dblogin.py index 3e9822ec44..fd030e6a3f 100644 --- a/tryton/gui/window/dblogin.py +++ b/tryton/gui/window/dblogin.py @@ -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('%s' % 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() diff --git a/tryton/gui/window/view_form/screen/screen.py b/tryton/gui/window/view_form/screen/screen.py index addfde0b32..50f43b3d2e 100644 --- a/tryton/gui/window/view_form/screen/screen.py +++ b/tryton/gui/window/view_form/screen/screen.py @@ -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))