fix translation keys
This commit is contained in:
@@ -17,7 +17,7 @@ public class BoolOption extends AbstractButtonOption<Boolean>
|
|||||||
@Override
|
@Override
|
||||||
public Text getButtonText()
|
public Text getButtonText()
|
||||||
{
|
{
|
||||||
return this.getValue() ? Text.translatable("text.button.true").withColor(BOOLEAN_TRUE_COLOR) : Text.translatable("text.button.false").withColor(BOOLEAN_FALSE_COLOR);
|
return this.getValue() ? Text.translatable("dacl.button.true").withColor(BOOLEAN_TRUE_COLOR) : Text.translatable("dacl.button.false").withColor(BOOLEAN_FALSE_COLOR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ public class SubOption extends AbstractButtonOption<JsonObject>
|
|||||||
@Override
|
@Override
|
||||||
public Text getButtonText()
|
public Text getButtonText()
|
||||||
{
|
{
|
||||||
return Text.translatable("text.button.suboption");
|
return Text.translatable("dacl.button.suboption");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -32,12 +32,12 @@ public class RangeValidator<T extends Number & Comparable<T>> extends AbstractVa
|
|||||||
{
|
{
|
||||||
if (min == null && max != null)
|
if (min == null && max != null)
|
||||||
{
|
{
|
||||||
return Text.translatable("error.range.smaller", max).toString();
|
return Text.translatable("dacl.range.smaller", max).toString();
|
||||||
}
|
}
|
||||||
if (min != null && max == null)
|
if (min != null && max == null)
|
||||||
{
|
{
|
||||||
return Text.translatable("error.range.larger", min).toString();
|
return Text.translatable("dacl.range.larger", min).toString();
|
||||||
}
|
}
|
||||||
return Text.translatable("error.range.between", min, max).toString();
|
return Text.translatable("dacl.range.between", min, max).toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"text.button.true": "True",
|
"dacl.button.true": "True",
|
||||||
"text.button.false": "False",
|
"dacl.button.false": "False",
|
||||||
"error.range.smaller": "Number must be smaller than %s",
|
"dacl.range.smaller": "Number must be smaller than %s",
|
||||||
"error.range.larger": "Number must be larger than %s",
|
"dacl.range.larger": "Number must be larger than %s",
|
||||||
"error.range.between": "Number must be between %s and %s",
|
"dacl.range.between": "Number must be between %s and %s",
|
||||||
"text.button.suboption": "Open"
|
"dacl.button.suboption": "Open"
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user