Skip to content

Commit

Permalink
messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Oct 3, 2022
1 parent 2308966 commit fbeee10
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
8 changes: 6 additions & 2 deletions lang/en_us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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中...请稍等
Expand Down
4 changes: 2 additions & 2 deletions quick_backup_multi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit fbeee10

Please sign in to comment.