Merge "Add i18n translation to guestagent 4/5"

This commit is contained in:
Jenkins 2017-01-19 11:26:05 +00:00 committed by Gerrit Code Review
commit 880c707dd8
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class InnoBackupExIncremental(InnoBackupEx):
def __init__(self, *args, **kwargs):
if not kwargs.get('lsn'):
raise AttributeError('lsn attribute missing, bad parent?')
raise AttributeError(_('lsn attribute missing, bad parent?'))
super(InnoBackupExIncremental, self).__init__(*args, **kwargs)
self.parent_location = kwargs.get('parent_location')
self.parent_checksum = kwargs.get('parent_checksum')

View File

@ -253,7 +253,7 @@ class PostgresqlReplicationStreaming(base.Replication):
def _write_standby_recovery_file(self, service, snapshot,
sslmode='prefer'):
LOG.info("Snapshot data received:" + str(snapshot))
LOG.info(_("Snapshot data received: %s") % str(snapshot))
logging_config = snapshot['log_position']
conninfo_params = \