Merge remote-tracking branch 'origin/unstable' into unstable

This commit is contained in:
Weblate 2016-01-02 11:46:35 +01:00
commit 78c1dcbc4f
2 changed files with 5 additions and 4 deletions

View file

@ -121,10 +121,10 @@
"service_no_log" : "No log to display for service '{:s}'", "service_no_log" : "No log to display for service '{:s}'",
"service_cmd_exec_failed" : "Unable to execute command '{:s}'", "service_cmd_exec_failed" : "Unable to execute command '{:s}'",
"services_configured": "Configuration successfully generated", "services_configured": "Configuration successfully generated",
"service_configuration_conflict": "The file {file:s} has been changed since its last generation. Please apply the modifications manually or use the option --force (it will erase all the modifications previously done to the file). Here are the differences:\n{diff:s}", "service_configuration_conflict": "The file {file:s} has been changed since its last generation. Please apply the modifications manually or use the option --force (it will erase all the modifications previously done to the file).",
"no_such_conf_file": "Unable to copy the file {file:s}: the file does not exist", "no_such_conf_file": "Unable to copy the file {file:s}: the file does not exist",
"service_add_configuration": "Adding the configuration file {file:s}", "service_add_configuration": "Adding the configuration file {file:s}",
"show_diff": "Here are the differences:\n{diff:s}",
"network_check_smtp_ok" : "Outbound mail (SMTP port 25) is not blocked", "network_check_smtp_ok" : "Outbound mail (SMTP port 25) is not blocked",
"network_check_smtp_ko" : "Outbound mail (SMTP port 25) seems to be blocked by your network", "network_check_smtp_ko" : "Outbound mail (SMTP port 25) seems to be blocked by your network",

View file

@ -537,8 +537,9 @@ def service_safecopy(service, new_conf_file, conf_file, force=False):
else: else:
new_hash = previous_hash new_hash = previous_hash
if (len(previous_hash) == 32 or previous_hash[-32:] != current_hash): if (len(previous_hash) == 32 or previous_hash[-32:] != current_hash):
logger.warning(m18n.n('service_configuration_conflict', logger.warning('{0} {1}'.format(
file=conf_file, diff=''.join(diff))) m18n.n('service_configuration_conflict', file=conf_file),
m18n.n('show_diff', diff=''.join(diff))))
# Remove the backup file if the configuration has not changed # Remove the backup file if the configuration has not changed
if new_hash == previous_hash: if new_hash == previous_hash: