Skip to content

Commit

Permalink
Fix translation
Browse files Browse the repository at this point in the history
  • Loading branch information
wifi-left committed Jul 10, 2023
1 parent d7dd43c commit 238dfc3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/java/io/wifi/signgui/MyGuiScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ protected void init() {
this.close();
}).position(this.width / 2 + 54, 4 * LineHeight + FiledStartPos + 8).size(100, 20).build();
changeSideButton = ButtonWidget.builder(Text.translatable("gui.wifi.signgui.button.changeside",
Text.translatable("gui.wifi.signgui." + (signgui.textIsFront ? "front" : "back"))), button -> {
Text.translatable("gui.wifi.signgui." + (signgui.textIsFront ? "back" : "front"))), button -> {
// 取消按钮的点击事件,关闭 GUI
signgui.textIsFront = !signgui.textIsFront;
this.titleDisplayer = Text.translatable("gui.wifi.signgui.title",
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/signgui/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"gui.wifi.signgui.title": "\u00a7b\u00a7lSign Editor\u00a7r: %s",
"gui.wifi.signgui.tip": "\u00a7eUse '&&' or '&' for '&' and '&' for \u00a7dSection Sign (Formatting)",
"gui.wifi.signgui.tip": "\u00a7eUse '&&' or '&' for '&' and '&' for \u00a7dSection Sign (Formatting). \u00a7e\u00a7lWARN: \u00a7fYou have to install this mod on your server to modify the sign on the server.",
"gui.wifi.signgui.front": "Front",
"gui.wifi.signgui.back": "Back",
"gui.wifi.signgui.button.changeside": "Change to: %s",
Expand All @@ -11,7 +11,7 @@
"key.signeditorgui.open_gui":"Open GUI",
"msg.signgui.not_a_sign":"This is not a sign",
"msg.signgui.not_a_block":"This is not a block",
"msg.signgui.not_a_op":"You have not Permission to do this",
"msg.signgui.not_op":"You have not Permission to do this",
"msg.signgui.success":"Modify the sign successfully.",
"msg.signgui.unexpected":"Unexpected Exception: %s",
"msg.signgui.changefacing":"Change side: %s"
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/signgui/lang/zh_cn.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"gui.wifi.signgui.title": "\u00a7b\u00a7l告示牌编辑器\u00a7r: %s",
"gui.wifi.signgui.tip": "\u00a7e使用'&&'或者'&'来输入'&',用'&'输入\u00a7dMC颜色字符 (格式化字符)",
"gui.wifi.signgui.tip": "\u00a7e使用'&&'或者'&'来输入'&',用'&'输入\u00a7dMC颜色字符 (格式化字符)\u00a7e\u00a7l注意: \u00a7f修改服务器上告示牌需要服务器也安装此模组。",
"gui.wifi.signgui.front": "正面",
"gui.wifi.signgui.back": "反面",
"gui.wifi.signgui.button.changeside": "切换到: %s",
Expand All @@ -11,7 +11,7 @@
"key.signeditorgui.open_gui":"打开编辑器",
"msg.signgui.not_a_sign":"这不是一个牌子",
"msg.signgui.not_a_block":"这不是一个方块",
"msg.signgui.not_a_op":"你没有足够的权限来做这件事",
"msg.signgui.not_op":"你没有足够的权限来做这件事",
"msg.signgui.success":"成功修改了告示牌",
"msg.signgui.unexpected":"未知的错误: %s",
"msg.signgui.changefacing":"修改方向为:%s"
Expand Down

0 comments on commit 238dfc3

Please sign in to comment.