Skip to content

Commit

Permalink
Added precise explanation for the restore quick action button
Browse files Browse the repository at this point in the history
  • Loading branch information
Fallen-Breath committed Feb 24, 2024
1 parent 804f215 commit 243c760
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lang/en_us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,8 @@ prime_backup:
title: '[Quick Actions]'
create: 'Create a new backup'
create.comment: "I'm a comment"
restore: 'restore to the latest backup'
restore: restore to the latest backup
restore_explain: To be precise, restore to the latest non-temporary backup

job:
_base:
Expand Down
9 changes: 5 additions & 4 deletions lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,11 @@ prime_backup:
common_commands.hover: '输入指令{}以查看完整的指令列表'
recent_backups: '【最新的{}个备份】'
quick_actions:
title: '【快捷操作】'
create: '创建一个新备份'
create.comment: '我是一个注释'
restore: '回档到最新的备份'
title: 【快捷操作】
create: 创建一个新备份
create.comment: 我是一个注释
restore: 回档到最新的备份
restore_explain: 准确地说,回档到最新的非临时备份

job:
_base:
Expand Down
2 changes: 1 addition & 1 deletion prime_backup/mcdr/task/general/show_welcome_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def run(self) -> None:
buttons.append(
RTextList('[', self.tr('quick_actions.restore', TextComponents.backup_brief(backups[0])), ']').
set_color(RColor.red).
h(TextComponents.command('back')).
h(RTextBase.join('\n', [TextComponents.command('back'), self.tr('quick_actions.restore_explain')])).
c(RAction.suggest_command, mkcmd('back'))
)
self.reply(RTextBase.join(' ', buttons))

0 comments on commit 243c760

Please sign in to comment.