From 35c5015db228f8f917d5c9f0f7804021ba29efa4 Mon Sep 17 00:00:00 2001 From: Tagadda <36127788+Tagadda@users.noreply.github.com> Date: Sun, 30 Jan 2022 19:29:00 +0000 Subject: [PATCH] Update locales --- locales/en.json | 10 +++------- src/settings.py | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/locales/en.json b/locales/en.json index 98ca26545..e4e14772c 100644 --- a/locales/en.json +++ b/locales/en.json @@ -367,13 +367,6 @@ "firewall_reload_failed": "Could not reload the firewall", "firewall_reloaded": "Firewall reloaded", "firewall_rules_cmd_failed": "Some firewall rule commands have failed. More info in log.", - "global_settings_bad_choice_for_enum": "Bad choice for setting {setting}, received '{choice}', but available choices are: {available_choices}", - "global_settings_bad_type_for_setting": "Bad type for setting {setting}, received {received_type}, expected {expected_type}", - "global_settings_cant_open_settings": "Could not open settings file, reason: {reason}", - "global_settings_cant_serialize_settings": "Could not serialize settings data, reason: {reason}", - "global_settings_cant_write_settings": "Could not save settings file, reason: {reason}", - "global_settings_key_doesnt_exists": "The key '{settings_key}' does not exist in the global settings, you can see all the available keys by running 'yunohost settings list'", - "global_settings_reset_success": "Previous settings now backed up to {path}", "global_settings_setting_admin_strength": "Admin password strength", "global_settings_setting_backup_compress_tar_archives": "Compress backups", "global_settings_setting_backup_compress_tar_archives_help": "When creating new backups, compress the archives (.tar.gz) instead of uncompressed archives (.tar). N.B. : enabling this option means create lighter backup archives, but the initial backup procedure will be significantly longer and heavy on CPU.", @@ -492,6 +485,9 @@ "log_user_permission_reset": "Reset permission '{}'", "log_user_permission_update": "Update accesses for permission '{}'", "log_user_update": "Update info for user '{}'", + "log_settings_set": "Apply setting '{}'", + "log_settings_reset": "Reset setting '{}'", + "log_settings_reset_all": "Reset all setting", "mail_alias_remove_failed": "Could not remove e-mail alias '{mail}'", "mail_domain_unknown": "Invalid e-mail address for domain '{domain}'. Please, use a domain administrated by this server.", "mail_forward_remove_failed": "Could not remove e-mail forwarding '{mail}'", diff --git a/src/settings.py b/src/settings.py index 89321e296..e50fd2256 100644 --- a/src/settings.py +++ b/src/settings.py @@ -215,7 +215,7 @@ class SettingsConfigPanel(ConfigPanel): logger.error(m18n.n("config_apply_failed", error=error)) raise - logger.success("Config updated as expected") + logger.success(m18n.("global_settings_reset_success")) operation_logger.success()