summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMODKILLER10012022-08-22 13:52:14 -0400
committerMODKILLER10012022-08-22 13:52:14 -0400
commit9e48894bc1060117b0e6565e559a18068496df0a (patch)
tree7d46498cd9e208de39d8a1c71a369b8c6e755a5f /src
parentab92fb7a850aa562f2f15c0c291c58ff7cf24efd (diff)
add localization for server address
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java2
-rw-r--r--src/main/resources/assets/nochatreports/lang/en_us.json3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java
index 364d58b..124b64e 100644
--- a/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java
+++ b/src/main/java/com/aizistral/nochatreports/config/ModMenuIntegration.java
@@ -165,7 +165,7 @@ public class ModMenuIntegration implements ModMenuApi {
.setAddButtonTooltip(Component.translatable("option.NoChatReports.whitelistedServers.addButtonTooltip"))
.setRemoveButtonTooltip(Component.translatable("option.NoChatReports.whitelistedServers.removeButtonTooltip"))
.setSaveConsumer(newValue -> NoReportsConfig.getInstance().whitelistedServers = newValue)
- .setCreateNewInstance(baseListEntry -> new StringListListEntry.StringListCell("Click here to edit server address", (StringListListEntry) baseListEntry))
+ .setCreateNewInstance(baseListEntry -> new StringListListEntry.StringListCell(Language.getInstance().getOrDefault(("option.NoChatReports.whitelistedServers.serverAddress")), (StringListListEntry) baseListEntry))
.build());
// Save config
diff --git a/src/main/resources/assets/nochatreports/lang/en_us.json b/src/main/resources/assets/nochatreports/lang/en_us.json
index 9590581..2dac977 100644
--- a/src/main/resources/assets/nochatreports/lang/en_us.json
+++ b/src/main/resources/assets/nochatreports/lang/en_us.json
@@ -46,5 +46,6 @@
"option.NoChatReports.whitelistedServers.tooltip": "Contains servers for which \"Unsafe Server\" warning screen should never display. Servers are added to this list automatically when you check \"Do not show again for this server\" box in that screen.\nEach entry is a string that is formatted as §l<server-ip>:<port>§r.",
"option.NoChatReports.whitelistedServers.addButtonTooltip": "Add server",
"option.NoChatReports.whitelistedServers.removeButtonTooltip": "Remove server",
- "option.NoChatReports.whitelistedServers.instructions": "Click the + to add a server. Click the - to remove the selected server."
+ "option.NoChatReports.whitelistedServers.instructions": "Click the + to add a server. Click the - to remove the selected server.",
+ "option.NoChatReports.whitelistedServers.serverAddress": "Click here to edit server address"
} \ No newline at end of file