From ca2910ba31e95630909f89197b93028ee77b6ef6 Mon Sep 17 00:00:00 2001 From: dis- Date: Sun, 16 Feb 2014 10:38:06 +0900 Subject: [PATCH] refactor: replace #ifdef JP macros --- src/mspells2.c | 1214 +++++++++++--------------------------------------------- 1 file changed, 230 insertions(+), 984 deletions(-) diff --git a/src/mspells2.c b/src/mspells2.c index eafcbe650..1beba7e16 100644 --- a/src/mspells2.c +++ b/src/mspells2.c @@ -812,11 +812,8 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); /* Message */ -#ifdef JP - if (see_m) msg_format("%^s¤Ï¼öʸ¤ò¾§¤¨¤è¤¦¤È¤·¤¿¤¬¼ºÇÔ¤·¤¿¡£", m_name); -#else - if (see_m) msg_format("%^s tries to cast a spell, but fails.", m_name); -#endif + if (see_m) msg_format(_("%^s¤Ï¼öʸ¤ò¾§¤¨¤è¤¦¤È¤·¤¿¤¬¼ºÇÔ¤·¤¿¡£", + "%^s tries to cast a spell, but fails."), m_name); return (TRUE); } @@ -824,11 +821,8 @@ bool monst_spell_monst(int m_idx) /* Hex: Anti Magic Barrier */ if (!spell_is_inate(thrown_spell) && magic_barrier(m_idx)) { -#ifdef JP - if (see_m) msg_format("È¿ËâË¡¥Ð¥ê¥¢¤¬%^s¤Î¼öʸ¤ò¤«¤­¾Ã¤·¤¿¡£", m_name); -#else - if (see_m) msg_format("Anti magic barrier cancels the spell which %^s casts."); -#endif + if (see_m) msg_format(_("È¿ËâË¡¥Ð¥ê¥¢¤¬%^s¤Î¼öʸ¤ò¤«¤­¾Ã¤·¤¿¡£", + "Anti magic barrier cancels the spell which %^s casts."), m_name); return (TRUE); } @@ -842,12 +836,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶«¤ó¤À¡£", m_name, t_name); -#else - msg_format("%^s shrieks at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶«¤ó¤À¡£", "%^s shrieks at %s."), m_name, t_name); } else { @@ -870,11 +859,8 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤¬%s¤ËÂФ·¤ÆËâÎϾõî¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name); -#else - msg_format("%^s invokes a dispel magic at %s.", m_name, t_name); -#endif + msg_format(_("%^s¤¬%s¤ËÂФ·¤ÆËâÎϾõî¤Î¼öʸ¤òÇ°¤¸¤¿¡£", + "%^s invokes a dispel magic at %s."), m_name, t_name); } else { @@ -897,21 +883,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¼Í¤Ã¤¿¡£", m_name); -#else - msg_format("%^s shoots something.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¼Í¤Ã¤¿¡£", "%^s shoots something."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¥í¥±¥Ã¥È¤òȯ¼Í¤·¤¿¡£", m_name, t_name); -#else - msg_format("%^s fires a rocket at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¥í¥±¥Ã¥È¤òȯ¼Í¤·¤¿¡£", "%^s fires a rocket at %s."), m_name, t_name); } } else @@ -934,21 +910,11 @@ bool monst_spell_monst(int m_idx) { if (blind) { -#ifdef JP - msg_format("%^s¤¬´ñ̯¤Ê²»¤òȯ¤·¤¿¡£", m_name); -#else - msg_format("%^s makes a strange noise.", m_name); -#endif - + msg_format(_("%^s¤¬´ñ̯¤Ê²»¤òȯ¤·¤¿¡£", "%^s makes a strange noise."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÌð¤òÊü¤Ã¤¿¡£", m_name, t_name); -#else - msg_format("%^s fires an arrow at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÌð¤òÊü¤Ã¤¿¡£", "%^s fires an arrow at %s."), m_name, t_name); } } else @@ -989,21 +955,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë»À¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes acid at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë»À¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes acid at %s."), m_name, t_name); } } else @@ -1030,21 +986,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë°ðºÊ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes lightning at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë°ðºÊ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes lightning at %s."), m_name, t_name); } } else @@ -1071,21 +1017,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë²Ð±ê¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes fire at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë²Ð±ê¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes fire at %s."), m_name, t_name); } } else @@ -1112,21 +1048,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÎ䵤¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes frost at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÎ䵤¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes frost at %s."), m_name, t_name); } } else @@ -1152,21 +1078,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¥¬¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes gas at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¥¬¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes gas at %s."), m_name, t_name); } } else @@ -1193,21 +1109,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÃϹö¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes nether at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÃϹö¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes nether at %s."), m_name, t_name); } } else @@ -1234,21 +1140,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÁ®¸÷¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes light at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÁ®¸÷¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes light at %s."), m_name, t_name); } } else @@ -1275,21 +1171,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë°Å¹õ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes darkness at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë°Å¹õ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes darkness at %s."), m_name, t_name); } } else @@ -1316,21 +1202,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ëº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes confusion at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ëº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes confusion at %s."), m_name, t_name); } } else @@ -1356,28 +1232,16 @@ bool monst_spell_monst(int m_idx) disturb(1, 1); if (m_ptr->r_idx == MON_JAIAN) -#ifdef JP - msg_format("¡Ö¥Ü¥©¥¨¡Á¡Á¡Á¡Á¡Á¡Á¡×"); -#else - msg_format("'Booooeeeeee'"); -#endif + { + msg_format(_("¡Ö¥Ü¥©¥¨¡Á¡Á¡Á¡Á¡Á¡Á¡×", "'Booooeeeeee'")); + } else if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¹ì²»¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes sound at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¹ì²»¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes sound at %s."), m_name, t_name); } } else @@ -1404,21 +1268,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¥«¥ª¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes chaos at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¥«¥ª¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes chaos at %s."), m_name, t_name); } } else @@ -1445,21 +1299,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÎô²½¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes disenchantment at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÎô²½¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes disenchantment at %s."), m_name, t_name); } } else @@ -1486,21 +1330,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë°ø²Ìº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes nexus at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë°ø²Ìº®Íð¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes nexus at %s."), m_name, t_name); } } else @@ -1527,21 +1361,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë»þ´ÖµÕž¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes time at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë»þ´ÖµÕž¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes time at %s."), m_name, t_name); } } else @@ -1568,21 +1392,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÃÙÆߤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes inertia at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÃÙÆߤΥ֥쥹¤òÅǤ¤¤¿¡£", "%^s breathes inertia at %s."), m_name, t_name); } } else @@ -1609,21 +1423,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë½ÅÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes gravity at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë½ÅÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", "%^s breathes gravity at %s."), m_name, t_name); } } else @@ -1649,28 +1453,16 @@ bool monst_spell_monst(int m_idx) disturb(1, 1); if (m_ptr->r_idx == MON_BOTEI) -#ifdef JP - msg_format("¡Ö¥ÜÄë¥Ó¥ë¥«¥Ã¥¿¡¼¡ª¡ª¡ª¡×"); -#else - msg_format("'Boty-Build cutter!!!'"); -#endif + { + msg_format(_("¡Ö¥ÜÄë¥Ó¥ë¥«¥Ã¥¿¡¼¡ª¡ª¡ª¡×", "'Boty-Build cutter!!!'")); + } else if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÇËÊҤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes shards at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÇËÊҤΥ֥쥹¤òÅǤ¤¤¿¡£", "%^s breathes shards at %s."), m_name, t_name); } } else @@ -1697,21 +1489,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¥×¥é¥º¥Þ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes plasma at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¥×¥é¥º¥Þ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes plasma at %s."), m_name, t_name); } } else @@ -1738,21 +1520,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¥Õ¥©¡¼¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes force at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¥Õ¥©¡¼¥¹¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes force at %s."), m_name, t_name); } } else @@ -1778,21 +1550,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËËâÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes mana at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËËâÎϤΥ֥쥹¤òÅǤ¤¤¿¡£", "%^s breathes mana at %s."), m_name, t_name); } } else @@ -1819,21 +1581,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÊü¼Íǽµå¤òÊü¤Ã¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a ball of radiation at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÊü¼Íǽµå¤òÊü¤Ã¤¿¡£", "%^s casts a ball of radiation at %s."), m_name, t_name); } } else @@ -1858,21 +1610,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÊü¼ÍÀ­ÇÑ´þʪ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes toxic waste at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÊü¼ÍÀ­ÇÑ´þʪ¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes toxic waste at %s."), m_name, t_name); } } else @@ -1898,21 +1640,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬¶²¤í¤·¤²¤Ë¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles frighteningly.", m_name); -#endif - + msg_format(_("%^s¤¬¶²¤í¤·¤²¤Ë¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles frighteningly."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë½ã¥í¥°¥ë¥¹¤òÊü¤Ã¤¿¡£", m_name, t_name); -#else - msg_format("%^s invokes raw Logrus upon %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë½ã¥í¥°¥ë¥¹¤òÊü¤Ã¤¿¡£", "%^s invokes raw Logrus upon %s."), m_name, t_name); } } else @@ -1937,21 +1669,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name); -#else - msg_format("%^s breathes.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ëʬ²ò¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", m_name, t_name); -#else - msg_format("%^s breathes disintegration at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ëʬ²ò¤Î¥Ö¥ì¥¹¤òÅǤ¤¤¿¡£", "%^s breathes disintegration at %s."), m_name, t_name); } } else @@ -1977,21 +1699,12 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts an acid ball at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts an acid ball at %s."), m_name, t_name); } } else @@ -2023,21 +1736,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a lightning ball at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a lightning ball at %s."), m_name, t_name); } } else @@ -2069,37 +1772,21 @@ bool monst_spell_monst(int m_idx) if (m_ptr->r_idx == MON_ROLENTO) { -#ifdef JP - if (blind) - msg_format("%^s¤¬²¿¤«¤òÅꤲ¤¿¡£", m_name); - else - msg_format("%^s¤¬%^s¤Ë¸þ¤«¤Ã¤Æ¼êÜØÃƤòÅꤲ¤¿¡£", m_name, t_name); -#else if (blind) - msg_format("%^s throws something.", m_name); + msg_format(_("%^s¤¬²¿¤«¤òÅꤲ¤¿¡£", "%^s throws something."), m_name); else - msg_format("%^s throws a hand grenade.", m_name); -#endif + msg_format(_("%^s¤¬%^s¤Ë¸þ¤«¤Ã¤Æ¼êÜØÃƤòÅꤲ¤¿¡£", "%^s throws a hand grenade."), m_name, t_name); } else { if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a fire ball at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a fire ball at %s."), m_name, t_name); } } } @@ -2132,21 +1819,12 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a frost ball at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¡¼¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a frost ball at %s."), m_name, t_name); } } else @@ -2178,21 +1856,12 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ°­½­±À¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a stinking cloud at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ°­½­±À¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a stinking cloud at %s."), m_name, t_name); } } else @@ -2216,21 +1885,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹöµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a nether ball at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹöµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a nether ball at %s."), m_name, t_name); } } else @@ -2254,27 +1913,13 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÂФ·¤Æή¤ì¤ë¤è¤¦¤Ê¿È¿¶¤ê¤ò¤·¤¿¡£", m_name, t_name); -#else - msg_format("%^s gestures fluidly at %s.", m_name, t_name); -#endif - -#ifdef JP - msg_format("%^s¤Ï±²´¬¤Ë°û¤ß¹þ¤Þ¤ì¤¿¡£", t_name); -#else - msg_format("%^s is engulfed in a whirlpool.", t_name); -#endif + msg_format(_("%^s¤¬%s¤ËÂФ·¤Æή¤ì¤ë¤è¤¦¤Ê¿È¿¶¤ê¤ò¤·¤¿¡£", "%^s gestures fluidly at %s."), m_name, t_name); + msg_format(_("%^s¤Ï±²´¬¤Ë°û¤ß¹þ¤Þ¤ì¤¿¡£", "%^s is engulfed in a whirlpool."), t_name); } } else @@ -2298,21 +1943,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles powerfully.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles powerfully."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÂФ·¤ÆËâÎϤÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name); -#else - msg_format("%^s invokes a mana storm upon %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÂФ·¤ÆËâÎϤÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", "%^s invokes a mana storm upon %s."), m_name, t_name); } } else @@ -2336,21 +1971,11 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles powerfully.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles powerfully."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÂФ·¤Æ°Å¹õ¤ÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name); -#else - msg_format("%^s invokes a darkness storm upon %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÂФ·¤Æ°Å¹õ¤ÎÍò¤Î¼öʸ¤òÇ°¤¸¤¿¡£", "%^s invokes a darkness storm upon %s."), m_name, t_name); } } else @@ -2369,12 +1994,7 @@ bool monst_spell_monst(int m_idx) if (see_m) { /* Basic message */ -#ifdef JP - msg_format("%^s¤ÏÀº¿À¥¨¥Í¥ë¥®¡¼¤ò%s¤«¤éµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name); -#else - msg_format("%^s draws psychic energy from %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤ÏÀº¿À¥¨¥Í¥ë¥®¡¼¤ò%s¤«¤éµÛ¤¤¤È¤Ã¤¿¡£", "%^s draws psychic energy from %s."), m_name, t_name); } dam = ((randint1(rlev) / 2) + 1); @@ -2386,12 +2006,7 @@ bool monst_spell_monst(int m_idx) case 128+10: if (see_m) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À¡£", m_name, t_name); -#else - msg_format("%^s gazes intently at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À¡£", "%^s gazes intently at %s."), m_name, t_name); } dam = damroll(7, 7); @@ -2403,12 +2018,7 @@ bool monst_spell_monst(int m_idx) case 128+11: if (see_m) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À¡£", m_name, t_name); -#else - msg_format("%^s gazes intently at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò¤¸¤Ã¤Èâˤó¤À¡£", "%^s gazes intently at %s."), m_name, t_name); } dam = damroll(12, 12); @@ -2422,12 +2032,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¼ö¤¤¤ò¤«¤±¤¿¡£", m_name, t_name); -#else - msg_format("%^s points at %s and curses.", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¼ö¤¤¤ò¤«¤±¤¿¡£", "%^s points at %s and curses."), m_name, t_name); } else { @@ -2446,12 +2051,8 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¶²¤í¤·¤²¤Ë¼ö¤¤¤ò¤«¤±¤¿¡£", m_name, t_name); -#else - msg_format("%^s points at %s and curses horribly.", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò»Ø¤µ¤·¤Æ¶²¤í¤·¤²¤Ë¼ö¤¤¤ò¤«¤±¤¿¡£", + "%^s points at %s and curses horribly."), m_name, t_name); } else { @@ -2470,12 +2071,8 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò»Ø¤µ¤·¡¢¶²¤í¤·¤²¤Ë¼öʸ¤ò¾§¤¨¤¿¡ª", m_name, t_name); -#else - msg_format("%^s points at %s, incanting terribly!", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò»Ø¤µ¤·¡¢¶²¤í¤·¤²¤Ë¼öʸ¤ò¾§¤¨¤¿¡ª", + "%^s points at %s, incanting terribly!"), m_name, t_name); } else { @@ -2494,12 +2091,8 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤¬%s¤ÎÈ빦¤òÆͤ¤¤Æ¡¢¡Ö¤ªÁ°¤Ï´û¤Ë»à¤ó¤Ç¤¤¤ë¡×¤È¶«¤ó¤À¡£", m_name, t_name); -#else - msg_format("%^s points at %s, screaming the word, 'DIE!'", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ÎÈ빦¤òÆͤ¤¤Æ¡¢¡Ö¤ªÁ°¤Ï´û¤Ë»à¤ó¤Ç¤¤¤ë¡×¤È¶«¤ó¤À¡£", + "%^s points at %s, screaming the word, 'DIE!'"), m_name, t_name); } else { @@ -2518,12 +2111,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts an acid bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥·¥Ã¥É¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts an acid bolt at %s."), m_name, t_name); } else { @@ -2543,12 +2131,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a lightning bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥µ¥ó¥À¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a lightning bolt at %s."), m_name, t_name); } else { @@ -2568,12 +2151,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a fire bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Õ¥¡¥¤¥¢¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a fire bolt at %s."), m_name, t_name); } else { @@ -2593,12 +2171,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a frost bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¢¥¤¥¹¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a frost bolt at %s."), m_name, t_name); } else { @@ -2622,21 +2195,12 @@ bool monst_spell_monst(int m_idx) if (blind) { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles powerfully.", m_name); -#endif - + msg_format(_("%^s¤¬²¿¤«¤òÎ϶¯¤¯¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles powerfully."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬%s¤ËÂФ·¤Æ¥¹¥¿¡¼¥Ð¡¼¥¹¥È¤Î¼öʸ¤òÇ°¤¸¤¿¡£", m_name, t_name); -#else - msg_format("%^s invokes a starburst upon %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ËÂФ·¤Æ¥¹¥¿¡¼¥Ð¡¼¥¹¥È¤Î¼öʸ¤òÇ°¤¸¤¿¡£", + "%^s invokes a starburst upon %s."), m_name, t_name); } } else @@ -2656,12 +2220,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹö¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a nether bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆÃϹö¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a nether bolt at %s."), m_name, t_name); } else { @@ -2681,12 +2241,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¦¥©¡¼¥¿¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a water bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥¦¥©¡¼¥¿¡¼¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a water bolt at %s."), m_name, t_name); } else { @@ -2706,12 +2262,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆËâÎϤÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a mana bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤ÆËâÎϤÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a mana bolt at %s."), m_name, t_name); } else { @@ -2731,12 +2283,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥×¥é¥º¥Þ¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a plasma bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥×¥é¥º¥Þ¡¦¥Ü¥ë¥È¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a plasma bolt at %s."), m_name, t_name); } else { @@ -2756,12 +2304,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶Ë´¨¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts an ice bolt at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¶Ë´¨¤ÎÌð¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts an ice bolt at %s."), m_name, t_name); } else { @@ -2781,12 +2325,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a magic missile at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¥Þ¥¸¥Ã¥¯¡¦¥ß¥µ¥¤¥ë¤Î¼öʸ¤ò¾§¤¨¤¿¡£", + "%^s casts a magic missile at %s."), m_name, t_name); } else { @@ -2806,12 +2346,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬¶²¤í¤·¤²¤Ê¸¸³Ð¤òºî¤ê½Ð¤·¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a fearful illusion in front of %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬¶²¤í¤·¤²¤Ê¸¸³Ð¤òºî¤ê½Ð¤·¤¿¡£", + "%^s casts a fearful illusion in front of %s."), m_name, t_name); } else { @@ -2821,21 +2357,14 @@ bool monst_spell_monst(int m_idx) if (tr_ptr->flags3 & RF3_NO_FEAR) { -#ifdef JP - if (see_t) msg_format("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", t_name); -#else - if (see_t) msg_format("%^s refuses to be frightened.", t_name); -#endif + if (see_t) msg_format(_("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", + "%^s refuses to be frightened."), t_name); } else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10) { -#ifdef JP - if (see_t) msg_format("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", t_name); -#else - if (see_t) msg_format("%^s refuses to be frightened.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ï¶²Éݤò´¶¤¸¤Ê¤¤¡£", + "%^s refuses to be frightened."), t_name); } else { @@ -2852,12 +2381,9 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%s¤Ï¼öʸ¤ò¾§¤¨¤Æ%s¤ÎÌܤò¾Æ¤­ÉÕ¤«¤»¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a spell, burning %s%s eyes.", m_name, t_name, - (streq(t_name, "it") ? "s" : "'s")); -#endif + _(msg_format("%s¤Ï¼öʸ¤ò¾§¤¨¤Æ%s¤ÎÌܤò¾Æ¤­ÉÕ¤«¤»¤¿¡£", m_name, t_name), + msg_format("%^s casts a spell, burning %s%s eyes.", m_name, t_name, + (streq(t_name, "it") ? "s" : "'s"))); } else @@ -2869,29 +2395,15 @@ bool monst_spell_monst(int m_idx) /* Simulate blindness with confusion */ if (tr_ptr->flags3 & RF3_NO_CONF) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected."), t_name); } else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected."), t_name); } else { -#ifdef JP - if (see_t) msg_format("%^s¤ÏÌܤ¬¸«¤¨¤Ê¤¯¤Ê¤Ã¤¿¡ª ", t_name); -#else - if (see_t) msg_format("%^s is blinded!", t_name); -#endif + if (see_t) msg_format(_("%^s¤ÏÌܤ¬¸«¤¨¤Ê¤¯¤Ê¤Ã¤¿¡ª ", "%^s is blinded!"), t_name); (void)set_monster_confused(t_idx, MON_CONFUSED(t_ptr) + 12 + randint0(4)); } @@ -2906,12 +2418,8 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤ÎÁ°¤Ë¸¸ÏÇŪ¤Ê¸¸¤ò¤Ä¤¯¤ê½Ð¤·¤¿¡£", m_name, t_name); -#else - msg_format("%^s casts a mesmerizing illusion in front of %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ÎÁ°¤Ë¸¸ÏÇŪ¤Ê¸¸¤ò¤Ä¤¯¤ê½Ð¤·¤¿¡£", + "%^s casts a mesmerizing illusion in front of %s."), m_name, t_name); } else { @@ -2921,29 +2429,18 @@ bool monst_spell_monst(int m_idx) if (tr_ptr->flags3 & RF3_NO_CONF) { -#ifdef JP - if (see_t) msg_format("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s disbelieves the feeble spell.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", + "%^s disbelieves the feeble spell."), t_name); } else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10) { -#ifdef JP - if (see_t) msg_format("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s disbelieves the feeble spell.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤ÏÏǤ蘆¤ì¤Ê¤«¤Ã¤¿¡£", + "%^s disbelieves the feeble spell."), t_name); } else { -#ifdef JP - if (see_t) msg_format("%^s¤Ïº®Í𤷤¿¤è¤¦¤À¡£", t_name); -#else - if (see_t) msg_format("%^s seems confused.", t_name); -#endif + if (see_t) msg_format(_("%^s¤Ïº®Í𤷤¿¤è¤¦¤À¡£", + "%^s seems confused."), t_name); (void)set_monster_confused(t_idx, MON_CONFUSED(t_ptr) + 12 + randint0(4)); } @@ -2958,13 +2455,9 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%s¤¬%s¤Î¶ÚÆù¤«¤éÎϤòµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name); -#else - msg_format("%^s drains power from %s%s muscles.", m_name, t_name, - (streq(t_name, "it") ? "s" : "'s")); -#endif - + _(msg_format("%s¤¬%s¤Î¶ÚÆù¤«¤éÎϤòµÛ¤¤¤È¤Ã¤¿¡£", m_name, t_name), + msg_format("%^s drains power from %s%s muscles.", m_name, t_name, + (streq(t_name, "it") ? "s" : "'s"))); } else { @@ -2974,31 +2467,20 @@ bool monst_spell_monst(int m_idx) if (tr_ptr->flags1 & RF1_UNIQUE) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", + "%^s is unaffected."), t_name); } else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", + "%^s is unaffected."), t_name); } else { if (set_monster_slow(t_idx, MON_SLOW(t_ptr) + 50)) { -#ifdef JP - if (see_t) msg_format("%s¤ÎÆ°¤­¤¬ÃÙ¤¯¤Ê¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s starts moving slower.", t_name); -#endif + if (see_t) msg_format(_("%s¤ÎÆ°¤­¤¬ÃÙ¤¯¤Ê¤Ã¤¿¡£", + "%^s starts moving slower."), t_name); } } @@ -3012,12 +2494,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò¤¸¤Ã¤È¸«¤Ä¤á¤¿¡£", m_name, t_name); -#else - msg_format("%^s stares intently at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò¤¸¤Ã¤È¸«¤Ä¤á¤¿¡£", "%^s stares intently at %s."), m_name, t_name); } else { @@ -3028,29 +2505,15 @@ bool monst_spell_monst(int m_idx) if ((tr_ptr->flags1 & RF1_UNIQUE) || (tr_ptr->flags3 & RF3_NO_STUN)) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected."), t_name); } else if (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected.", t_name); -#endif - + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected."), t_name); } else { -#ifdef JP - if (see_t) msg_format("%^s¤ÏËãá㤷¤¿¡ª", t_name); -#else - if (see_t) msg_format("%^s is paralyzed!", t_name); -#endif + if (see_t) msg_format(_("%^s¤ÏËãá㤷¤¿¡ª", "%^s is paralyzed!"), t_name); (void)set_monster_stunned(t_idx, MON_STUNNED(t_ptr) + randint1(4) + 4); } @@ -3066,12 +2529,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤¬¼«Ê¬¤ÎÂΤËÇ°¤òÁ÷¤Ã¤¿¡£", m_name); -#else - msg_format("%^s concentrates on %s body.", m_name, m_poss); -#endif - + msg_format(_("%^s¤¬¼«Ê¬¤ÎÂΤËÇ°¤òÁ÷¤Ã¤¿¡£", "%^s concentrates on %s body."), m_name); } else { @@ -3082,11 +2540,7 @@ bool monst_spell_monst(int m_idx) /* Allow quick speed increases to base+10 */ if (set_monster_fast(m_idx, MON_FAST(m_ptr) + 100)) { -#ifdef JP - if (see_m) msg_format("%^s¤ÎÆ°¤­¤¬Â®¤¯¤Ê¤Ã¤¿¡£", m_name); -#else - if (see_m) msg_format("%^s starts moving faster.", m_name); -#endif + if (see_m) msg_format(_("%^s¤ÎÆ°¤­¤¬Â®¤¯¤Ê¤Ã¤¿¡£", "%^s starts moving faster."), m_name); } break; @@ -3096,12 +2550,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë<ÇËÌǤμê>¤òÊü¤Ã¤¿¡ª", m_name, t_name); -#else - msg_format("%^s invokes the Hand of Doom upon %s!", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë<ÇËÌǤμê>¤òÊü¤Ã¤¿¡ª", "%^s invokes the Hand of Doom upon %s!"), m_name, t_name); } else { @@ -3120,12 +2569,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤Ï¼«Ê¬¤Î½ý¤ËÇ°¤ò½¸Ã椷¤¿¡£", m_name); -#else - msg_format("%^s concentrates on %s wounds.", m_name, m_poss); -#endif - + msg_format(_("%^s¤Ï¼«Ê¬¤Î½ý¤ËÇ°¤ò½¸Ã椷¤¿¡£", "%^s concentrates on %s wounds."), m_name); } else { @@ -3146,12 +2590,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤Ï´°Á´¤Ë¼£¤Ã¤¿¡ª", m_name); -#else - msg_format("%^s looks completely healed!", m_name); -#endif - + msg_format(_("%^s¤Ï´°Á´¤Ë¼£¤Ã¤¿¡ª", "%^s looks completely healed!"), m_name); } else { @@ -3165,11 +2604,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤ÏÂÎÎϤò²óÉü¤·¤¿¤è¤¦¤À¡£", m_name); -#else - msg_format("%^s looks healthier.", m_name); -#endif + msg_format(_("%^s¤ÏÂÎÎϤò²óÉü¤·¤¿¤è¤¦¤À¡£", "%^s looks healthier."), m_name); } else { @@ -3188,11 +2623,7 @@ bool monst_spell_monst(int m_idx) (void)set_monster_monfear(m_idx, 0); /* Message */ -#ifdef JP - if (see_m) msg_format("%^s¤Ïͦµ¤¤ò¼è¤êÌᤷ¤¿¡£", m_name); -#else - if (see_m) msg_format("%^s recovers %s courage.", m_name, m_poss); -#endif + if (see_m) msg_format(_("%^s¤Ïͦµ¤¤ò¼è¤êÌᤷ¤¿¡£", "%^s recovers %s courage."), m_name); } break; @@ -3204,11 +2635,7 @@ bool monst_spell_monst(int m_idx) if (see_m) { disturb(1, 1); -#ifdef JP - msg_format("%s¤Ï̵½ý¤Îµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name); -#else - msg_format("%^s casts a Globe of Invulnerability.", m_name); -#endif + msg_format(_("%s¤Ï̵½ý¤Îµå¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a Globe of Invulnerability."), m_name); } else { @@ -3225,22 +2652,14 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("ËâË¡¤Î¥Ð¥ê¥¢¤¬%^s¤Î¥Æ¥ì¥Ý¡¼¥È¤ò¼ÙË⤷¤¿¡£", m_name); -#else - msg_format("Magic barrier obstructs teleporting of %^s.", m_name); -#endif + msg_format(_("ËâË¡¤Î¥Ð¥ê¥¢¤¬%^s¤Î¥Æ¥ì¥Ý¡¼¥È¤ò¼ÙË⤷¤¿¡£", "Magic barrier obstructs teleporting of %^s."), m_name); } } else { if (see_m) { -#ifdef JP - msg_format("%^s¤¬½Ö»þ¤Ë¾Ã¤¨¤¿¡£", m_name); -#else - msg_format("%^s blinks away.", m_name); -#endif + msg_format(_("%^s¤¬½Ö»þ¤Ë¾Ã¤¨¤¿¡£", "%^s blinks away."), m_name); } teleport_away(m_idx, 10, 0L); } @@ -3252,22 +2671,14 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("ËâË¡¤Î¥Ð¥ê¥¢¤¬%^s¤Î¥Æ¥ì¥Ý¡¼¥È¤ò¼ÙË⤷¤¿¡£", m_name); -#else - msg_format("Magic barrier obstructs teleporting of %^s.", m_name); -#endif + msg_format(_("ËâË¡¤Î¥Ð¥ê¥¢¤¬%^s¤Î¥Æ¥ì¥Ý¡¼¥È¤ò¼ÙË⤷¤¿¡£", "Magic barrier obstructs teleporting of %^s."), m_name); } } else { if (see_m) { -#ifdef JP - msg_format("%^s¤¬¥Æ¥ì¥Ý¡¼¥È¤·¤¿¡£", m_name); -#else - msg_format("%^s teleports away.", m_name); -#endif + msg_format(_("%^s¤¬¥Æ¥ì¥Ý¡¼¥È¤·¤¿¡£", "%^s teleports away."), m_name); } teleport_away_followable(m_idx); } @@ -3299,11 +2710,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤Ï¼êÜØÃƤò¤Ð¤é¤Þ¤¤¤¿¡£", m_name); -#else - msg_format("%^s throws some hand grenades.", m_name); -#endif + msg_format(_("%^s¤Ï¼êÜØÃƤò¤Ð¤é¤Þ¤¤¤¿¡£", "%^s throws some hand grenades."), m_name); } else { @@ -3332,11 +2739,7 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤ÏÆÍÁ³µÞ¾å¾º¤·¤Æ»ë³¦¤«¤é¾Ã¤¨¤¿!", m_name); -#else - msg_format("%^s suddenly go out of your sight!", m_name); -#endif + msg_format(_("%^s¤ÏÆÍÁ³µÞ¾å¾º¤·¤Æ»ë³¦¤«¤é¾Ã¤¨¤¿!", "%^s suddenly go out of your sight!"), m_name); } teleport_away(m_idx, 10, TELEPORT_NONMAGICAL); p_ptr->update |= (PU_MONSTERS); @@ -3347,12 +2750,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤òÄϤó¤Ç¶õÃ椫¤éÅꤲÍî¤È¤·¤¿¡£", m_name, t_name); -#else - msg_format("%^s holds %s, and drops from the sky.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤òÄϤó¤Ç¶õÃ椫¤éÅꤲÍî¤È¤·¤¿¡£", "%^s holds %s, and drops from the sky."), m_name, t_name); } else { @@ -3369,19 +2767,12 @@ bool monst_spell_monst(int m_idx) if (tr_ptr->flags7 & RF7_CAN_FLY) { -#ifdef JP - if (see_t) msg_format("%^s¤ÏÀŤ«¤ËÃåÃϤ·¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s floats gently down to the ground.", t_name); -#endif + if (see_t) msg_format(_("%^s¤ÏÀŤ«¤ËÃåÃϤ·¤¿¡£", "%^s floats gently down to the ground."), t_name); } else { -#ifdef JP - if (see_t) msg_format("%^s¤ÏÃÏÌ̤Ë᤭¤Ä¤±¤é¤ì¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s crashed into the ground.", t_name); -#endif + if (see_t) msg_format(_("%^s¤ÏÃÏÌ̤Ë᤭¤Ä¤±¤é¤ì¤¿¡£", "%^s crashed into the ground."), t_name); + dam += damroll(6, 8); } @@ -3395,16 +2786,14 @@ bool monst_spell_monst(int m_idx) get_damage = take_hit(DAMAGE_NOESCAPE, dam, m_name, -1); if (p_ptr->tim_eyeeye && get_damage > 0 && !p_ptr->is_dead) { -#ifdef JP - msg_format("¹¶·â¤¬%s¼«¿È¤ò½ý¤Ä¤±¤¿¡ª", m_name); -#else char m_name_self[80]; /* hisself */ monster_desc(m_name_self, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE | MD_OBJECTIVE); - msg_format("The attack of %s has wounded %s!", m_name, m_name_self); -#endif + _(msg_format("¹¶·â¤¬%s¼«¿È¤ò½ý¤Ä¤±¤¿¡ª", m_name), + msg_format("The attack of %s has wounded %s!", m_name, m_name_self)); + project(0, 0, m_ptr->fy, m_ptr->fx, get_damage, GF_MISSILE, PROJECT_KILL, -1); set_tim_eyeeye(p_ptr->tim_eyeeye-5, TRUE); } @@ -3428,12 +2817,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤ò°ú¤­Ìᤷ¤¿¡£", m_name, t_name); -#else - msg_format("%^s commands %s to return.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤ò°ú¤­Ìᤷ¤¿¡£", "%^s commands %s to return."), m_name, t_name); } else { @@ -3448,11 +2832,7 @@ bool monst_spell_monst(int m_idx) if (is_original_ap_and_seen(t_ptr)) tr_ptr->r_flagsr |= RFR_RES_TELE; if (see_t) { -#ifdef JP - msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - msg_format("%^s is unaffected!", t_name); -#endif + msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected!"), t_name); } resists_tele = TRUE; @@ -3462,11 +2842,7 @@ bool monst_spell_monst(int m_idx) if (is_original_ap_and_seen(t_ptr)) tr_ptr->r_flagsr |= RFR_RES_TELE; if (see_t) { -#ifdef JP - msg_format("%^s¤ÏÂÑÀ­¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name); -#else - msg_format("%^s resists!", t_name); -#endif + msg_format(_("%^s¤ÏÂÑÀ­¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", "%^s resists!"), t_name); } resists_tele = TRUE; @@ -3488,12 +2864,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤Ï%s¤ò¥Æ¥ì¥Ý¡¼¥È¤µ¤»¤¿¡£", m_name, t_name); -#else - msg_format("%^s teleports %s away.", m_name, t_name); -#endif - + msg_format(_("%^s¤Ï%s¤ò¥Æ¥ì¥Ý¡¼¥È¤µ¤»¤¿¡£", "%^s teleports %s away."), m_name, t_name); } else { @@ -3508,11 +2879,7 @@ bool monst_spell_monst(int m_idx) if (is_original_ap_and_seen(t_ptr)) tr_ptr->r_flagsr |= RFR_RES_TELE; if (see_t) { -#ifdef JP - msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - msg_format("%^s is unaffected!", t_name); -#endif + msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected!"), t_name); } resists_tele = TRUE; @@ -3522,11 +2889,7 @@ bool monst_spell_monst(int m_idx) if (is_original_ap_and_seen(t_ptr)) tr_ptr->r_flagsr |= RFR_RES_TELE; if (see_t) { -#ifdef JP - msg_format("%^s¤ÏÂÑÀ­¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", t_name); -#else - msg_format("%^s resists!", t_name); -#endif + msg_format(_("%^s¤ÏÂÑÀ­¤ò»ý¤Ã¤Æ¤¤¤ë¡ª", "%^s resists!"), t_name); } resists_tele = TRUE; @@ -3548,11 +2911,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Î­¤ò»Ø¤µ¤·¤¿¡£", m_name, t_name); -#else - msg_format("%^s gestures at %s's feet.", m_name, t_name); -#endif + msg_format(_("%^s¤¬%s¤Î­¤ò»Ø¤µ¤·¤¿¡£", "%^s gestures at %s's feet."), m_name, t_name); } else { @@ -3562,20 +2921,12 @@ bool monst_spell_monst(int m_idx) if (tr_ptr->flagsr & (RFR_EFF_RES_NEXU_MASK | RFR_RES_TELE)) { -#ifdef JP - if (see_t) msg_format("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", t_name); -#else - if (see_t) msg_format("%^s is unaffected!", t_name); -#endif + if (see_t) msg_format(_("%^s¤Ë¤Ï¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£", "%^s is unaffected!"), t_name); } else if ((tr_ptr->flags1 & RF1_QUESTOR) || (tr_ptr->level > randint1((rlev - 10) < 1 ? 1 : (rlev - 10)) + 10)) { -#ifdef JP - if (see_t) msg_format("%^s¤Ï¸úÎϤòÄ·¤ÍÊÖ¤·¤¿¡ª", t_name); -#else - if (see_t) msg_format("%^s resist the effects!", t_name); -#endif + if (see_t) msg_format(_("%^s¤Ï¸úÎϤòÄ·¤ÍÊÖ¤·¤¿¡ª", "%^s resist the effects!"), t_name); } else teleport_level((t_idx == p_ptr->riding) ? 0 : t_idx); @@ -3588,12 +2939,7 @@ bool monst_spell_monst(int m_idx) { if (see_either) { -#ifdef JP - msg_format("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¸÷¤Î·õ¤òÊü¤Ã¤¿¡£", m_name, t_name); -#else - msg_format("%^s throw a Psycho-spear at %s.", m_name, t_name); -#endif - + msg_format(_("%^s¤¬%s¤Ë¸þ¤«¤Ã¤Æ¸÷¤Î·õ¤òÊü¤Ã¤¿¡£", "%^s throw a Psycho-spear at %s."), m_name, t_name); } else { @@ -3612,23 +2958,25 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - if (can_use_lite_area) msg_format("%^s¤¬ÊÕ¤ê¤òÌÀ¤ë¤¯¾È¤é¤·¤¿¡£", m_name); - else msg_format("%^s¤¬°Å°Ç¤ÎÃæ¤Ç¼ê¤ò¿¶¤Ã¤¿¡£", m_name); -#else - if (can_use_lite_area) msg_format("%^s cast a spell to light up.", m_name); - else msg_format("%^s gestures in shadow.", m_name); -#endif + if (can_use_lite_area) + { + msg_format(_("%^s¤¬ÊÕ¤ê¤òÌÀ¤ë¤¯¾È¤é¤·¤¿¡£", "%^s cast a spell to light up."), m_name); + } + else + { + msg_format(_("%^s¤¬°Å°Ç¤ÎÃæ¤Ç¼ê¤ò¿¶¤Ã¤¿¡£", "%^s gestures in shadow."), m_name); + } if (see_t) { -#ifdef JP - if (can_use_lite_area) msg_format("%^s¤ÏÇò¤¤¸÷¤ËÊñ¤Þ¤ì¤¿¡£", t_name); - else msg_format("%^s¤Ï°Å°Ç¤ËÊñ¤Þ¤ì¤¿¡£", t_name); -#else - if (can_use_lite_area) msg_format("%^s is surrounded by a white light.", t_name); - else msg_format("%^s is surrounded by darkness.", t_name); -#endif + if (can_use_lite_area) + { + msg_format(_("%^s¤ÏÇò¤¤¸÷¤ËÊñ¤Þ¤ì¤¿¡£", "%^s is surrounded by a white light."), t_name); + } + else + { + msg_format(_("%^s¤Ï°Å°Ç¤ËÊñ¤Þ¤ì¤¿¡£", "%^s is surrounded by darkness."), t_name); + } } } else @@ -3657,19 +3005,11 @@ bool monst_spell_monst(int m_idx) { if (see_m) { -#ifdef JP - msg_format("%^s¤¬¼öʸ¤ò¾§¤¨¤Æ¼Ù°­¤ËÈù¾Ð¤ó¤À¡£", m_name); -#else - msg_format("%^s casts a spell and cackles evilly.", m_name); -#endif + msg_format(_("%^s¤¬¼öʸ¤ò¾§¤¨¤Æ¼Ù°­¤ËÈù¾Ð¤ó¤À¡£", "%^s casts a spell and cackles evilly."), m_name); } else { -#ifdef JP - msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - msg_format("%^s mumbles.", m_name); -#endif + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); } } @@ -3693,17 +3033,14 @@ bool monst_spell_monst(int m_idx) if (see_either) { disturb(1, 1); -#ifdef JP - if (blind) msg_format("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", m_name); -#else - if (blind) msg_format("%^s mumbles.", m_name); -#endif - -#ifdef JP - else msg_format("%^s¤¬»à¼ÔÉü³è¤Î¼öʸ¤ò¾§¤¨¤¿¡£", m_name); -#else - else msg_format("%^s casts a spell to revive corpses.", m_name); -#endif + if (blind) + { + msg_format(_("%^s¤¬²¿¤«¤ò¤Ä¤Ö¤ä¤¤¤¿¡£", "%^s mumbles."), m_name); + } + else + { + msg_format(_("%^s¤¬»à¼ÔÉü³è¤Î¼öʸ¤ò¾§¤¨¤¿¡£", "%^s casts a spell to revive corpses."), m_name); + } } else { @@ -3723,21 +3060,12 @@ bool monst_spell_monst(int m_idx) if (m_ptr->r_idx == MON_SERPENT || m_ptr->r_idx == MON_ZOMBI_SERPENT) { -#ifdef JP - msg_format("%^s¤¬¥À¥ó¥¸¥ç¥ó¤Î¼ç¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons guardians of dungeons.", m_name); -#endif + msg_format(_("%^s¤¬¥À¥ó¥¸¥ç¥ó¤Î¼ç¤ò¾¤´­¤·¤¿¡£", "%^s magically summons guardians of dungeons."), m_name); } else { -#ifdef JP - msg_format("%s¤¬ËâË¡¤Ç%s¤ò¾¤´­¤·¤¿¡£", m_name, - ((r_ptr->flags1 & RF1_UNIQUE) ? "¼ê²¼" : "Ãç´Ö")); -#else - msg_format("%^s magically summons %s %s.", m_name, m_poss, - ((r_ptr->flags1 & RF1_UNIQUE) ? "minions" : "kin")); -#endif + _(msg_format("%s¤¬ËâË¡¤Ç%s¤ò¾¤´­¤·¤¿¡£", m_name, ((r_ptr->flags1 & RF1_UNIQUE) ? "¼ê²¼" : "Ãç´Ö")), + msg_format("%^s magically summons %s %s.", m_name, m_poss, ((r_ptr->flags1 & RF1_UNIQUE) ? "minions" : "kin"))); } } @@ -3777,11 +3105,7 @@ bool monst_spell_monst(int m_idx) { if (known && see_t) { -#ifdef JP - msg_print("ÃÏÌ̤«¤é¿å¤¬¿á¤­½Ð¤·¤¿¡ª"); -#else - msg_print("Water blew off from the ground!"); -#endif + msg_print(_("ÃÏÌ̤«¤é¿å¤¬¿á¤­½Ð¤·¤¿¡ª", "Water blew off from the ground!")); } project(t_idx, 8, y, x, 3, GF_WATER_FLOW, PROJECT_GRID | PROJECT_HIDE, -1); } @@ -3840,12 +3164,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬¥µ¥¤¥Ð¡¼¥Ç¡¼¥â¥ó¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons Cyberdemons!", m_name); -#endif - + msg_format(_("%^s¤¬¥µ¥¤¥Ð¡¼¥Ç¡¼¥â¥ó¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons Cyberdemons!"), m_name); } else { @@ -3877,12 +3196,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤ÇÃç´Ö¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons help!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤ÇÃç´Ö¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons help!"), m_name); } else { @@ -3907,12 +3221,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¥â¥ó¥¹¥¿¡¼¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons monsters!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¥â¥ó¥¹¥¿¡¼¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons monsters!"), m_name); } else { @@ -3940,12 +3249,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¥¢¥ê¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons ants.", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¥¢¥ê¤ò¾¤´­¤·¤¿¡£", "%^s magically summons ants."), m_name); } else { @@ -3973,12 +3277,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¥¯¥â¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons spiders.", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¥¯¥â¤ò¾¤´­¤·¤¿¡£", "%^s magically summons spiders."), m_name); } else { @@ -4006,12 +3305,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¥Ï¥¦¥ó¥É¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons hounds.", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¥Ï¥¦¥ó¥É¤ò¾¤´­¤·¤¿¡£", "%^s magically summons hounds."), m_name); } else { @@ -4039,12 +3333,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¥Ò¥É¥é¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons hydras.", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¥Ò¥É¥é¤ò¾¤´­¤·¤¿¡£", "%^s magically summons hydras."), m_name); } else { @@ -4072,12 +3361,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤ÇÅ·»È¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons an angel!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤ÇÅ·»È¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons an angel!"), m_name); } else { @@ -4114,12 +3398,8 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Çº®Æ٤εÜÄ¤é¥Ç¡¼¥â¥ó¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons a demon from the Courts of Chaos!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Çº®Æ٤εÜÄ¤é¥Ç¡¼¥â¥ó¤ò¾¤´­¤·¤¿¡ª", + "%^s magically summons a demon from the Courts of Chaos!"), m_name); } else { @@ -4147,12 +3427,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons undead.", m_name); -#endif - + msg_format(_("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´­¤·¤¿¡£", "%^s magically summons undead."), m_name); } else { @@ -4180,12 +3455,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¥É¥é¥´¥ó¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons a dragon!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¥É¥é¥´¥ó¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons a dragon!"), m_name); } else { @@ -4213,12 +3483,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´­¤·¤¿¡£", m_name); -#else - msg_format("%^s magically summons undead.", m_name); -#endif - + msg_format(_("%s¤¬ËâË¡¤Ç¥¢¥ó¥Ç¥Ã¥É¤ò¾¤´­¤·¤¿¡£", "%^s magically summons undead."), m_name); } else { @@ -4246,12 +3511,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤Ç¸ÅÂå¥É¥é¥´¥ó¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons ancient dragons!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤Ç¸ÅÂå¥É¥é¥´¥ó¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons ancient dragons!"), m_name); } else { @@ -4279,12 +3539,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬¥¢¥ó¥Ð¡¼¤Î²¦Â²¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons Lords of Amber!", m_name); -#endif - + msg_format(_("%^s¤¬¥¢¥ó¥Ð¡¼¤Î²¦Â²¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons Lords of Amber!"), m_name); } else { @@ -4312,12 +3567,7 @@ bool monst_spell_monst(int m_idx) { disturb(1, 1); -#ifdef JP - msg_format("%^s¤¬ËâË¡¤ÇÆÃÊ̤ʶ¯Å¨¤ò¾¤´­¤·¤¿¡ª", m_name); -#else - msg_format("%^s magically summons special opponents!", m_name); -#endif - + msg_format(_("%^s¤¬ËâË¡¤ÇÆÃÊ̤ʶ¯Å¨¤ò¾¤´­¤·¤¿¡ª", "%^s magically summons special opponents!"), m_name); } else { @@ -4356,11 +3606,7 @@ bool monst_spell_monst(int m_idx) if (fear && see_t) { -#ifdef JP - msg_format("%^s¤Ï¶²Éݤ·¤Æƨ¤²½Ð¤·¤¿¡ª", t_name); -#else - msg_format("%^s flees in terror!", t_name); -#endif + msg_format(_("%^s¤Ï¶²Éݤ·¤Æƨ¤²½Ð¤·¤¿¡ª", "%^s flees in terror!"), t_name); } if (m_ptr->ml && maneable && !world_monster && !p_ptr->blind && (p_ptr->pclass == CLASS_IMITATOR)) -- 2.11.0