diff --git a/lang/en_us.yml b/lang/en_us.yml index e23d5e4..dc07663 100644 --- a/lang/en_us.yml +++ b/lang/en_us.yml @@ -31,8 +31,12 @@ quick_backup_multi: rename: §9Renaming§r delete_backup: - success: §aSlot §6{0}§r delete success§r - fail: "§4Slot §6{0}§r delete fail, error code {1}§r" + success: Slot §6{0}§r delete §asuccess§r + fail: "Slot §6{0}§r delete §4failed§r, error code {1}" + + rename_backup: + success: Slot §6{0}§r rename §asuccess§r + fail: "Slot §6{0}§r rename §4failed§r, error code {1}" create_backup: start: §aBacking up§r, please wait diff --git a/lang/zh_cn.yml b/lang/zh_cn.yml index f06aa18..3831399 100644 --- a/lang/zh_cn.yml +++ b/lang/zh_cn.yml @@ -31,8 +31,12 @@ quick_backup_multi: rename: §9重命名§r delete_backup: - success: §a删除槽位§6{0}§r完成§r - fail: "§4删除槽位§6{0}§r失败§r,错误代码: {1}" + success: 删除槽位§6{0}§r§a完成§r + fail: "删除槽位§6{0}§r§4失败§r,错误代码: {1}" + + rename_backup: + success: 重命名槽位§6{0}§r§a完成§r + fail: "重命名槽位§6{0}§r§4失败§r,错误代码: {1}" create_backup: start: §a备份§r中...请稍等 diff --git a/quick_backup_multi/__init__.py b/quick_backup_multi/__init__.py index c6240b8..16c4c34 100644 --- a/quick_backup_multi/__init__.py +++ b/quick_backup_multi/__init__.py @@ -216,9 +216,9 @@ def rename_backup(source: CommandSource, slot: int, comment: str): slot_info['comment'] = comment write_slot_info(get_slot_path(slot), slot_info) except Exception as e: - print_message(source, tr('delete_backup.fail', slot, e), tell=False) + print_message(source, tr('rename_backup.fail', slot, e), tell=False) else: - print_message(source, tr('delete_backup.success', slot), tell=False) + print_message(source, tr('rename_backup.success', slot), tell=False) def clean_up_slot_1():