1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-27 03:47:38 +00:00

Add translations for HTTP proxy config

This commit is contained in:
Jonathan Coates
2023-06-07 18:33:26 +01:00
parent c91bb5ac33
commit ef19988c37
4 changed files with 25 additions and 2 deletions

View File

@@ -230,6 +230,11 @@ public final class LanguageProvider implements DataProvider {
addConfigEntry(ConfigSpec.httpDownloadBandwidth, "Global download limit");
addConfigEntry(ConfigSpec.httpUploadBandwidth, "Global upload limit");
addConfigGroup(ConfigSpec.serverSpec, "http.proxy", "Proxy");
addConfigEntry(ConfigSpec.httpProxyHost, "Host name");
addConfigEntry(ConfigSpec.httpProxyPort, "Port");
addConfigEntry(ConfigSpec.httpProxyType, "Proxy type");
addConfigGroup(ConfigSpec.serverSpec, "peripheral", "Peripherals");
addConfigEntry(ConfigSpec.commandBlockEnabled, "Enable command block peripheral");
addConfigEntry(ConfigSpec.modemRange, "Modem range (default)");

View File

@@ -213,8 +213,10 @@ public final class CommandComputerCraft {
getMetricsInstance(context.getSource()).start();
var stopCommand = "/computercraft track stop";
Object[] args = new Object[]{ link(text(stopCommand), stopCommand, Component.translatable("commands.computercraft.track.stop.action")) };
context.getSource().sendSuccess(Component.translatable("commands.computercraft.track.start.stop", args), false);
context.getSource().sendSuccess(Component.translatable(
"commands.computercraft.track.start.stop",
link(text(stopCommand), stopCommand, Component.translatable("commands.computercraft.track.stop.action"))
), false);
return 1;
}))