Skip to content

Commit

Permalink
Allow stuff before the first coordinate in cpos translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Apr 22, 2024
1 parent 0679087 commit 7d0fb23
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ private static int convertCoords(FabricClientCommandSource source, BlockPos pos,
String sourceWorldName = getLevelName(sourceLevel);
String targetWorldName = getLevelName(targetLevel);

source.sendFeedback(getCoordsTextComponent(pos)
.append(Component.translatable("commands.cpos.coords.left", sourceWorldName, targetWorldName))
.append(getLookCoordsTextComponent(targetPos))
.append(Component.translatable("commands.cpos.coords.right", sourceWorldName, targetWorldName)));
source.sendFeedback(Component.translatable("commands.cpos.coords.left", sourceWorldName, targetWorldName)
.append(getCoordsTextComponent(pos))
.append(Component.translatable("commands.cpos.coords.middle", sourceWorldName, targetWorldName))
.append(getLookCoordsTextComponent(targetPos))
.append(Component.translatable("commands.cpos.coords.right", sourceWorldName, targetWorldName)));

return Command.SINGLE_SUCCESS;
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/clientcommands/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
"commands.cpos.level.overworld": "the Overworld",
"commands.cpos.level.the_end": "the End",
"commands.cpos.level.the_nether": "the Nether",
"commands.cpos.coords.left": " in %1$s is ",
"commands.cpos.coords.left": "",
"commands.cpos.coords.middle": " in %1$s is ",
"commands.cpos.coords.right": " in %2$s",

"commands.crelog.failed": "Failed to relog",
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/clientcommands/lang/id_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
"commands.cpos.level.overworld": "Overworld",
"commands.cpos.level.the_end": "End",
"commands.cpos.level.the_nether": "Nether",
"commands.cpos.coords.left": " di %1$s sama dengan ",
"commands.cpos.coords.left": "",
"commands.cpos.coords.middle": " di %1$s sama dengan ",
"commands.cpos.coords.right": " di %2$s",

"commands.crelog.failed": "Gagal relog",
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/clientcommands/lang/ja_jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,8 @@
"commands.cpos.level.overworld": "現世",
"commands.cpos.level.the_end": "ジ・エンド",
"commands.cpos.level.the_nether": "ネザー",
"commands.cpos.coords.left": " の %1$s は ",
"commands.cpos.coords.left": "",
"commands.cpos.coords.middle": " の %1$s は ",
"commands.cpos.coords.right": " の %2$s",

"commands.crelog.failed": "再ログするのに失敗しました",
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/assets/clientcommands/lang/zh_cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@
"commands.cpos.level.overworld": "主世界",
"commands.cpos.level.the_end": "末地",
"commands.cpos.level.the_nether": "下界",
"commands.cpos.coords.left": "在%1$s中是",
"commands.cpos.coords.left": "",
"commands.cpos.coords.middle": "在%1$s中是",
"commands.cpos.coords.right": "在%2$s中",

"commands.crelog.failed": "未能重新登录",
Expand Down

0 comments on commit 7d0fb23

Please sign in to comment.