aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxander <xander@isxander.dev>2022-09-03 13:45:13 +0100
committerxander <xander@isxander.dev>2022-09-03 13:45:13 +0100
commitbc17b495e7c39eadcc04de3cf05d80bd9efe953a (patch)
tree561f07ce68a54a590accf3caee0b484844647047
parentb775bae81d3ec0c8fb64b0c680e375b6bca4fe5f (diff)
downloadYetAnotherConfigLib-bc17b495e7c39eadcc04de3cf05d80bd9efe953a.tar.gz
YetAnotherConfigLib-bc17b495e7c39eadcc04de3cf05d80bd9efe953a.tar.bz2
YetAnotherConfigLib-bc17b495e7c39eadcc04de3cf05d80bd9efe953a.zip
change boolean translation keys
-rw-r--r--src/main/java/dev/isxander/yacl/gui/controllers/BooleanController.java12
-rw-r--r--src/main/resources/assets/yet-another-config-lib/lang/en_us.json12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/main/java/dev/isxander/yacl/gui/controllers/BooleanController.java b/src/main/java/dev/isxander/yacl/gui/controllers/BooleanController.java
index 04b2ba2..49bc307 100644
--- a/src/main/java/dev/isxander/yacl/gui/controllers/BooleanController.java
+++ b/src/main/java/dev/isxander/yacl/gui/controllers/BooleanController.java
@@ -20,18 +20,18 @@ public class BooleanController implements Controller<Boolean> {
public static final Function<Boolean, Text> ON_OFF_FORMATTER = (state) ->
state
- ? Text.translatable("yacl.control.tickbox.on")
- : Text.translatable("yacl.control.tickbox.off");
+ ? Text.translatable("yacl.control.boolean.on")
+ : Text.translatable("yacl.control.boolean.off");
public static final Function<Boolean, Text> TRUE_FALSE_FORMATTER = (state) ->
state
- ? Text.translatable("yacl.control.tickbox.true")
- : Text.translatable("yacl.control.tickbox.false");
+ ? Text.translatable("yacl.control.boolean.true")
+ : Text.translatable("yacl.control.boolean.false");
public static final Function<Boolean, Text> YES_NO_FORMATTER = (state) ->
state
- ? Text.translatable("yacl.control.tickbox.yes")
- : Text.translatable("yacl.control.tickbox.no");
+ ? Text.translatable("yacl.control.boolean.yes")
+ : Text.translatable("yacl.control.boolean.no");
private final Option<Boolean> option;
private final Function<Boolean, Text> valueFormatter;
diff --git a/src/main/resources/assets/yet-another-config-lib/lang/en_us.json b/src/main/resources/assets/yet-another-config-lib/lang/en_us.json
index d3a1a17..be33ef6 100644
--- a/src/main/resources/assets/yet-another-config-lib/lang/en_us.json
+++ b/src/main/resources/assets/yet-another-config-lib/lang/en_us.json
@@ -1,10 +1,10 @@
{
- "yacl.control.tickbox.on": "ON",
- "yacl.control.tickbox.off": "OFF",
- "yacl.control.tickbox.true": "True",
- "yacl.control.tickbox.false": "False",
- "yacl.control.tickbox.yes": "Yes",
- "yacl.control.tickbox.no": "No",
+ "yacl.control.boolean.on": "ON",
+ "yacl.control.boolean.off": "OFF",
+ "yacl.control.boolean.true": "True",
+ "yacl.control.boolean.false": "False",
+ "yacl.control.boolean.yes": "Yes",
+ "yacl.control.boolean.no": "No",
"yacl.control.action.execute": "EXECUTE",