Skip to content

Commit

Permalink
style from PrimeBackup
Browse files Browse the repository at this point in the history
  • Loading branch information
SkyDynamic committed Dec 16, 2023
1 parent 49cb284 commit 835d1c7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ public static MutableText list() {
totalBackupSizeB += backupSizeB;
double backupSizeMB = (double) backupSizeB / FileUtils.ONE_MB;
double backupSizeGB = (double) backupSizeB / FileUtils.ONE_GB;
String sizeString = (backupSizeMB >= 1000) ? String.format("%.2f GB", backupSizeGB) : String.format("%.2fMB", backupSizeMB);
String sizeString = (backupSizeMB >= 1000) ? String.format("%.2fGB", backupSizeGB) : String.format("%.2fMB", backupSizeMB);
resultText.append("\n" + tr("quickbackupmulti.list_backup.slot.header", finalJ) + " ")
.append(backText)
.append(deleteText)
.append(2§l" + sizeString)
.append(tr("quickbackupmulti.list_backup.slot.info", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(result.timestamp), desc));
.append(a" + sizeString)
.append(String.format(" §b%s§7: §r%s", new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(result.timestamp), desc));
} catch (IOException e) {
resultText.append(Messenger.literal("\n"+ tr("quickbackupmulti.list_backup.slot.header", j) + " §2[▷] §c[×] §rNone"));
resultText.append(Messenger.literal("\n"+ tr("quickbackupmulti.list_backup.slot.header", j) + " §2[▷] §c[×] §r") + tr("quickbackupmulti.empty_comment"));
}
}
double totalBackupSizeMB = (double) totalBackupSizeB / FileUtils.ONE_MB;
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/assets/quickbackupmulti/lang/en_us.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ quickbackupmulti:
restore: Click to restore to slot §6%s§r
delete: Click to delete slot §6%s§r
total_space: "Total space consumed: §a%s§r"
info: " §rDate: %s; Desc: %s"

restore:
countdown:
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/assets/quickbackupmulti/lang/zh_cn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ quickbackupmulti:
restore: 点击回档至槽位§6%s§r
delete: 点击删除槽位§6%s§r
total_space: "备份总占用空间: §a%s§r"
info: " §r日期: %s; 注释: %s"

restore:
countdown:
Expand Down

0 comments on commit 835d1c7

Please sign in to comment.