From 50db7efe080ff5687555ae6b6bbe0f54f79911c0 Mon Sep 17 00:00:00 2001 From: Szum123321 Date: Tue, 3 Aug 2021 23:19:02 +0200 Subject: [PATCH] lang update --- .../szum123321/textile_backup/config/ConfigPOJO.java | 10 +++++----- .../resources/assets/textile_backup/lang/en_us.json | 12 +++++++++--- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java b/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java index f3f755b..c1b17ff 100644 --- a/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java +++ b/src/main/java/net/szum123321/textile_backup/config/ConfigPOJO.java @@ -43,7 +43,7 @@ public class ConfigPOJO implements ConfigData { public long backupInterval = 3600; @Comment("\nDelay in seconds between typing-in /backup restore and it actually starting\n") - @ConfigEntry.Gui.NoTooltip() + @ConfigEntry.Gui.Tooltip() @ConfigEntry.Category("Restore") public int restoreDelay = 30; @@ -91,11 +91,11 @@ public class ConfigPOJO implements ConfigData { \nMaximum size of backup folder in kilo bytes (1024). If set to 0 then backups will not be deleted """) - @ConfigEntry.Gui.NoTooltip() + @ConfigEntry.Gui.Tooltip() public int maxSize = 0; @Comment("\nCompression level \n0 - 9\n Only affects zip compression.\n") - @ConfigEntry.Gui.NoTooltip() + @ConfigEntry.Gui.Tooltip() @ConfigEntry.BoundedDiscrete(max = 9) @ConfigEntry.Category("Create") public int compression = 7; @@ -104,7 +104,7 @@ public class ConfigPOJO implements ConfigData { \nLimit how many cores can be used for compression. 0 means that all available cores will be used """) - @ConfigEntry.Gui.NoTooltip() + @ConfigEntry.Gui.Tooltip() @ConfigEntry.Category("Create") public int compressionCoreCountLimit = 0; @@ -116,7 +116,7 @@ public class ConfigPOJO implements ConfigData { LZMA - tar.xz using lzma compression TAR - .tar with no compression """) - @ConfigEntry.Gui.NoTooltip() + @ConfigEntry.Gui.Tooltip() @ConfigEntry.Category("Create") @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) public ArchiveFormat format = ArchiveFormat.ZIP; diff --git a/src/main/resources/assets/textile_backup/lang/en_us.json b/src/main/resources/assets/textile_backup/lang/en_us.json index 0dc134f..4512982 100644 --- a/src/main/resources/assets/textile_backup/lang/en_us.json +++ b/src/main/resources/assets/textile_backup/lang/en_us.json @@ -10,8 +10,9 @@ "text.autoconfig.textile_backup.option.backupInterval.@Tooltip": "Time between each automatic backup (in seconds)", "text.autoconfig.textile_backup.option.restoreDelay": "Restore Delay", + "text.autoconfig.textile_backup.option.restoreDelay.@Tooltip": "In seconds", - "text.autoconfig.textile_backup.option.doBackupsOnEmptyServer": "Do backups on empty server", + "text.autoconfig.textile_backup.option.doBackupsOnEmptyServer": "Make automatic backups on empty server", "text.autoconfig.textile_backup.option.shutdownBackup": "Make a backup on shutdown", @@ -28,16 +29,21 @@ "text.autoconfig.textile_backup.option.backupsToKeep": "Number of backups to keep", "text.autoconfig.textile_backup.option.maxAge": "Max age of backup", + "text.autoconfig.textile_backup.option.maxAge.@Tooltip": "In seconds since creation", "text.autoconfig.textile_backup.option.maxSize": "Max size of backup folder", + "text.autoconfig.textile_backup.option.maxSize.@Tooltip": "In KBytes", - "text.autoconfig.textile_backup.option.compression": "Compression level (Zip only)", + "text.autoconfig.textile_backup.option.compression": "Compression level", + "text.autoconfig.textile_backup.option.compression.@Tooltip": "Only affects zip", "text.autoconfig.textile_backup.option.compressionCoreCountLimit": "Max number of cores used for compression", + "text.autoconfig.textile_backup.option.compressionCoreCountLimit.@Tooltip": "Set to 0 to use all available cores", "text.autoconfig.textile_backup.option.format": "Archive and compression format", + "text.autoconfig.textile_backup.option.format.@Tooltip": "See: https://github.com/Szum123321/textile_backup/wiki/Configuration#format", - "text.autoconfig.textile_backup.option.permissionLevel": "Min permission level required to run any command", + "text.autoconfig.textile_backup.option.permissionLevel": "Min permission level", "text.autoconfig.textile_backup.option.alwaysSingleplayerAllowed": "Always allow on single-player",