Skip to content

Commit e823e74

Browse files
committed
added lang fallbacks
1 parent 6696aad commit e823e74

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

‎src/main/java/net/f3rr3/reshaped/mixin/client/RuntimeNameMixin.java‎

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,19 @@ private void onGet(String key, String fallback, CallbackInfoReturnable<String> c
5050
.replace(" Bricks", " Brick");
5151

5252
if (path.endsWith("_vertical_slab"))
53-
return cleanedBase + " " + Text.translatable("block.reshaped.vertical_slab").getString();
53+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.vertical_slab", "Vertical Slab").getString();
5454
if (path.endsWith("_vertical_stairs"))
55-
return cleanedBase + " " + Text.translatable("block.reshaped.vertical_stairs").getString();
55+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.vertical_stairs", "Vertical Stairs").getString();
5656
if (path.endsWith("_vertical_step"))
57-
return cleanedBase + " " + Text.translatable("block.reshaped.vertical_step").getString();
58-
if (path.endsWith("_corner")) return cleanedBase + " " + Text.translatable("block.reshaped.corner").getString();
59-
if (path.endsWith("_slab")) return cleanedBase + " " + Text.translatable("block.reshaped.slab").getString();
60-
if (path.endsWith("_stairs")) return cleanedBase + " " + Text.translatable("block.reshaped.stairs").getString();
61-
if (path.endsWith("_step")) return cleanedBase + " " + Text.translatable("block.reshaped.step").getString();
57+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.vertical_step", "Vertical Step").getString();
58+
if (path.endsWith("_corner"))
59+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.corner", "Corner").getString();
60+
if (path.endsWith("_slab"))
61+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.slab", "Slab").getString();
62+
if (path.endsWith("_stairs"))
63+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.stairs", "Stairs").getString();
64+
if (path.endsWith("_step"))
65+
return cleanedBase + " " + Text.translatableWithFallback("block.reshaped.step", "Step").getString();
6266

6367
return null;
6468
}

0 commit comments

Comments
 (0)