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:
@@ -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)");
|
||||
|
||||
@@ -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;
|
||||
}))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user