From cf5341530b197e2a6d7569e4d2ec267d6ab0019c Mon Sep 17 00:00:00 2001 From: Deskull Date: Fri, 21 Sep 2018 08:00:09 +0900 Subject: [PATCH] =?utf8?q?[Refactor]=20#37353=E3=80=80cmd1.c=E3=81=AE?= =?utf8?q?=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=E6=95=B4=E7=90=86?= =?utf8?q?=E3=80=82=20Refactor=20messages=20of=20cmd1.c.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd1.c | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/src/cmd1.c b/src/cmd1.c index 05b6cf0e5..9f038c4e5 100644 --- a/src/cmd1.c +++ b/src/cmd1.c @@ -750,14 +750,8 @@ void carry(bool pickup) delete_object_idx(this_o_idx); /* Message */ -#ifdef JP - msg_format(" $%ld の価値がある%sを見つけた。", + msg_format(_(" $%ld の価値がある%sを見つけた。", "You collect %ld gold pieces worth of %s."), (long)value, o_name); -#else - msg_format("You collect %ld gold pieces worth of %s.", - (long)value, o_name); -#endif - sound(SOUND_SELL); @@ -1192,17 +1186,10 @@ static void py_attack_aux(int y, int x, bool *fear, bool *mdeath, s16b hand, BIT sound(SOUND_HIT); /* Message */ -#ifdef JP - if (backstab) msg_format("あなたは冷酷にも眠っている無力な%sを突き刺した!", m_name); - else if (fuiuchi) msg_format("不意を突いて%sに強烈な一撃を喰らわせた!", m_name); - else if (stab_fleeing) msg_format("逃げる%sを背中から突き刺した!", m_name); - else if (!monk_attack) msg_format("%sを攻撃した。", m_name); -#else - if (backstab) msg_format("You cruelly stab the helpless, sleeping %s!", m_name); - else if (fuiuchi) msg_format("You make surprise attack, and hit %s with a powerful blow!", m_name); - else if (stab_fleeing) msg_format("You backstab the fleeing %s!", m_name); - else if (!monk_attack) msg_format("You hit %s.", m_name); -#endif + if (backstab) msg_format(_("あなたは冷酷にも眠っている無力な%sを突き刺した!", "You cruelly stab the helpless, sleeping %s!"), m_name); + else if (fuiuchi) msg_format(_("不意を突いて%sに強烈な一撃を喰らわせた!", "You make surprise attack, and hit %s with a powerful blow!"), m_name); + else if (stab_fleeing) msg_format(_("逃げる%sを背中から突き刺した!", "You backstab the fleeing %s!"), m_name); + else if (!monk_attack) msg_format(_("%sを攻撃した。", "You hit %s."), m_name); /* Hack -- bare hands do one damage */ k = 1; -- 2.11.0