From 64ab4a82b3b1c1cd3006019af395b072f564de5a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Date: Wed, 31 May 2017 17:06:40 +0200 Subject: [PATCH] [fix] Yypos in en.json (#314) * serialzed => serialized * typo close global_settings_key_doesnt_exists * serialized/serialize & setings/settings --- locales/en.json | 4 ++-- src/yunohost/settings.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/locales/en.json b/locales/en.json index 6c6c8f277..2ba2a48f6 100644 --- a/locales/en.json +++ b/locales/en.json @@ -124,9 +124,9 @@ "global_settings_bad_choice_for_enum": "Bad value for setting {setting:s}, received {received_type:s}, except {expected_type:s}", "global_settings_bad_type_for_setting": "Bad type for setting {setting:s}, received {received_type:s}, except {expected_type:s}", "global_settings_cant_open_settings": "Failed to open settings file, reason: {reason:s}", - "global_settings_cant_serialize_setings": "Failed to serialzed settings data, reason: {reason:s}", + "global_settings_cant_serialize_settings": "Failed to serialize settings data, reason: {reason:s}", "global_settings_cant_write_settings": "Failed to write settings file, reason: {reason:s}", - "global_settings_key_doesnt_exists": "The key '{settings_key:s}' doesn't exists in the global settings, you can see all the available keys by doing 'yunohost settings list", + "global_settings_key_doesnt_exists": "The key '{settings_key:s}' doesn't exists in the global settings, you can see all the available keys by doing 'yunohost settings list'", "global_settings_reset_success": "Success. Your previous settings have been backuped in {path:s}", "global_settings_setting_example_bool": "Example boolean option", "global_settings_setting_example_int": "Example int option", diff --git a/src/yunohost/settings.py b/src/yunohost/settings.py index c2266a4c9..f11371aee 100644 --- a/src/yunohost/settings.py +++ b/src/yunohost/settings.py @@ -224,7 +224,7 @@ def _save_settings(settings, location=SETTINGS_PATH): result = json.dumps(settings_without_description, indent=4) except Exception as e: raise MoulinetteError(errno.EINVAL, - m18n.n('global_settings_cant_serialize_setings', reason=e), + m18n.n('global_settings_cant_serialize_settings', reason=e), exc_info=1) try: