feat(i18n): complete migration — items, entities, AI goals, GUI screens
119 new translation keys across 3 domains: - Items/Blocks/Misc (46 keys): tooltips, action messages, trap states - Entities/AI Goals (55 keys): NPC speech, maid/master/guard messages - Client GUI (18 keys): widget labels, screen buttons, merchant display Remaining 119 Component.literal() are all intentional: - Debug/Admin/Command wands (47) — dev tools, not player-facing - Entity display names (~25) — dynamic getNpcName() calls - Empty string roots (~15) — .append() chain bases - User-typed text (~10) — /me, /pm, /norp chat content - Runtime data (~12) — StringBuilder, gag muffling, MCA compat
This commit is contained in:
@@ -141,8 +141,8 @@ public class ForceFeedingTask extends TimedInteractTask {
|
||||
|
||||
if (feeder instanceof ServerPlayer serverFeeder) {
|
||||
serverFeeder.displayClientMessage(
|
||||
Component.literal(
|
||||
"You force fed " + targetName + "."
|
||||
Component.translatable(
|
||||
"msg.tiedup.forcefeeding.you_fed", targetName
|
||||
).withStyle(ChatFormatting.GRAY),
|
||||
true
|
||||
);
|
||||
@@ -150,9 +150,8 @@ public class ForceFeedingTask extends TimedInteractTask {
|
||||
|
||||
if (targetEntity instanceof ServerPlayer serverTarget) {
|
||||
serverTarget.displayClientMessage(
|
||||
Component.literal("You have been force fed.").withStyle(
|
||||
ChatFormatting.GRAY
|
||||
),
|
||||
Component.translatable("msg.tiedup.forcefeeding.been_fed")
|
||||
.withStyle(ChatFormatting.GRAY),
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user