Skip to content

Commit

Permalink
add the exit prompt message i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Sep 8, 2024
1 parent 34a7aba commit b15e0f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import javax.swing.JOptionPane;

import net.minecraft.client.Minecraft;
import net.minecraft.client.resources.I18n;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Unique;
Expand Down Expand Up @@ -47,7 +48,7 @@ public class MixinMinecraft_ConfirmExit {
final ImageIcon imageIcon = resource == null ? null : new ImageIcon(resource);
final int result = JOptionPane.showConfirmDialog(
frame,
"Are you sure you want to exit the game ?",
I18n.format("dreamcraft.gui.quitmessage"),
Refstrings.NAME,
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE,
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/dreamcraft/lang/en_US.lang
Original file line number Diff line number Diff line change
Expand Up @@ -1773,3 +1773,4 @@ item.tconstruct.manual.weaponry.part_materials=\n\nValid Shaft Materials:\n* Sti
item.tconstruct.manual.weaponry.bolts=\n\nBolts:\nCrafting bolts is a delicate process. First you need a core in the form of a tool rod.\nTake this tool rod to a smeltery and put it into a Casting Table. Pour some metal onto it to coat the tip with a more damaging material.\nAfter this process, add a fletching and your bolts are ready to be used.\n\nSince the bolts consist of a harder core and tip they carry more weight than regular arrows, making them perfect to fight armored targets.

dreamcraft.mobsinfocompat.limitedropcount=Drops only %s times per person
dreamcraft.gui.quitmessage=Are you sure you want to exit the game ?
3 changes: 2 additions & 1 deletion src/main/resources/assets/dreamcraft/lang/zh_CN.lang
Original file line number Diff line number Diff line change
Expand Up @@ -667,4 +667,5 @@ tc.aspect.help.custom1=平衡的事物
tc.aspect.help.custom2=扭曲的思想
tc.aspect.help.custom3=新事物的起始
tc.aspect.help.custom4=宇宙
tc.aspect.help.custom5=荣耀
tc.aspect.help.custom5=荣耀
dreamcraft.gui.quitmessage=你确定要退出游戏吗?

0 comments on commit b15e0f8

Please sign in to comment.