• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: Commit

変愚蛮怒のメインリポジトリです


Commit MetaInfo

Revision6e5f7f9ab0e3d5ea35d031dbe99c4b61b1db004b (tree)
Time2014-02-27 12:39:16
Authordis- <dis.rogue@gmai...>
Commiterdis-

Log Message

refactor: replace ifdef macro in spells1.c

Change Summary

Incremental Difference

--- a/src/spells1.c
+++ b/src/spells1.c
@@ -613,38 +613,18 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
613613 case GF_POIS:
614614 case GF_NUKE:
615615 case GF_DEATH_RAY:
616-#ifdef JP
617- message = "枯れた";break;
618-#else
619- message = "was blasted.";break;
620-#endif
616+ message = _("枯れた", "was blasted."); break;
621617 case GF_TIME:
622-#ifdef JP
623- message = "縮んだ";break;
624-#else
625- message = "shrank.";break;
626-#endif
618+ message = _("縮んだ", "shrank."); break;
627619 case GF_ACID:
628-#ifdef JP
629- message = "溶けた";break;
630-#else
631- message = "melted.";break;
632-#endif
620+ message = _("溶けた", "melted."); break;
633621 case GF_COLD:
634622 case GF_ICE:
635-#ifdef JP
636- message = "凍り、砕け散った";break;
637-#else
638- message = "was frozen and smashed.";break;
639-#endif
623+ message = _("凍り、砕け散った", "was frozen and smashed."); break;
640624 case GF_FIRE:
641625 case GF_ELEC:
642626 case GF_PLASMA:
643-#ifdef JP
644- message = "燃えた";break;
645-#else
646- message = "burns up!";break;
647-#endif
627+ message = _("燃えた", "burns up!"); break;
648628 case GF_METEOR:
649629 case GF_CHAOS:
650630 case GF_MANA:
@@ -656,21 +636,13 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
656636 case GF_DISENCHANT:
657637 case GF_FORCE:
658638 case GF_GRAVITY:
659-#ifdef JP
660- message = "粉砕された";break;
661-#else
662- message = "was crushed.";break;
663-#endif
639+ message = _("粉砕された", "was crushed."); break;
664640 default:
665641 message = NULL;break;
666642 }
667643 if (message)
668644 {
669-#ifdef JP
670- msg_format("木は%s。", message);
671-#else
672- msg_format("A tree %s", message);
673-#endif
645+ msg_format(_("木は%s。", "A tree %s"), message);
674646 cave_set_feat(y, x, one_in_(3) ? feat_brake : feat_grass);
675647
676648 /* Observe */
@@ -738,12 +710,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
738710 /* Check line of sight */
739711 if (known)
740712 {
741-#ifdef JP
742- msg_print("まばゆい閃光が走った!");
743-#else
744- msg_print("There is a bright flash of light!");
745-#endif
746-
713+ msg_print(_("まばゆい閃光が走った!", "There is a bright flash of light!"));
747714 obvious = TRUE;
748715 }
749716
@@ -762,12 +729,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
762729 /* Check line of sound */
763730 if (known && (old_feat != c_ptr->feat))
764731 {
765-#ifdef JP
766- msg_print("カチッと音がした!");
767-#else
768- msg_print("Click!");
769-#endif
770-
732+ msg_print(_("カチッと音がした!", "Click!"));
771733 obvious = TRUE;
772734 }
773735 }
@@ -796,12 +758,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
796758 if (known)
797759 {
798760 /* Message */
799-#ifdef JP
800- msg_print("まばゆい閃光が走った!");
801-#else
802- msg_print("There is a bright flash of light!");
803-#endif
804-
761+ msg_print(_("まばゆい閃光が走った!", "There is a bright flash of light!"));
805762 obvious = TRUE;
806763 }
807764
@@ -844,12 +801,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
844801 if (known && have_flag(mimic_f_ptr->flags, FF_OPEN))
845802 {
846803 /* Message */
847-#ifdef JP
848- msg_format("%sに何かがつっかえて開かなくなった。", f_name + mimic_f_ptr->name);
849-#else
850- msg_format("The %s seems stuck.", f_name + mimic_f_ptr->name);
851-#endif
852-
804+ msg_format(_("%sに何かがつっかえて開かなくなった。", "The %s seems stuck."), f_name + mimic_f_ptr->name);
853805 obvious = TRUE;
854806 }
855807 }
@@ -864,12 +816,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
864816 /* Message */
865817 if (known && (c_ptr->info & (CAVE_MARK)))
866818 {
867-#ifdef JP
868- msg_format("%sが溶けて泥になった!", f_name + f_info[get_feat_mimic(c_ptr)].name);
869-#else
870- msg_format("The %s turns into mud!", f_name + f_info[get_feat_mimic(c_ptr)].name);
871-#endif
872-
819+ msg_format(_("%sが溶けて泥になった!", "The %s turns into mud!"), f_name + f_info[get_feat_mimic(c_ptr)].name);
873820 obvious = TRUE;
874821 }
875822
@@ -1107,11 +1054,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
11071054 {
11081055 if (is_mirror_grid(c_ptr))
11091056 {
1110-#ifdef JP
1111- msg_print("鏡が割れた!");
1112-#else
1113- msg_print("The mirror was crashed!");
1114-#endif
1057+ msg_print(_("鏡が割れた!", "The mirror was crashed!"));
11151058 sound(SOUND_GLASS);
11161059 remove_mirror(y, x);
11171060 project(0, 2, y, x, p_ptr->lev / 2 + 5, GF_SHARDS, (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP | PROJECT_NO_HANGEKI), -1);
@@ -1122,11 +1065,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
11221065 /* Message */
11231066 if (known && (c_ptr->info & CAVE_MARK))
11241067 {
1125-#ifdef JP
1126- msg_format("%sが割れた!", f_name + f_info[get_feat_mimic(c_ptr)].name);
1127-#else
1128- msg_format("The %s was crashed!", f_name + f_info[get_feat_mimic(c_ptr)].name);
1129-#endif
1068+ msg_format(_("%sが割れた!", "The %s was crashed!"), f_name + f_info[get_feat_mimic(c_ptr)].name);
11301069 sound(SOUND_GLASS);
11311070 }
11321071
@@ -1142,12 +1081,8 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
11421081 case GF_SOUND:
11431082 {
11441083 if (is_mirror_grid(c_ptr) && p_ptr->lev < 40)
1145- {
1146-#ifdef JP
1147- msg_print("鏡が割れた!");
1148-#else
1149- msg_print("The mirror was crashed!");
1150-#endif
1084+ {
1085+ msg_print(_("鏡が割れた!", "The mirror was crashed!"));
11511086 sound(SOUND_GLASS);
11521087 remove_mirror(y, x);
11531088 project(0, 2, y, x, p_ptr->lev / 2 + 5, GF_SHARDS, (PROJECT_GRID | PROJECT_ITEM | PROJECT_KILL | PROJECT_JUMP | PROJECT_NO_HANGEKI), -1);
@@ -1158,11 +1093,7 @@ static bool project_f(int who, int r, int y, int x, int dam, int typ)
11581093 /* Message */
11591094 if (known && (c_ptr->info & CAVE_MARK))
11601095 {
1161-#ifdef JP
1162- msg_format("%sが割れた!", f_name + f_info[get_feat_mimic(c_ptr)].name);
1163-#else
1164- msg_format("The %s was crashed!", f_name + f_info[get_feat_mimic(c_ptr)].name);
1165-#endif
1096+ msg_format(_("%sが割れた!", "The %s was crashed!"), f_name + f_info[get_feat_mimic(c_ptr)].name);
11661097 sound(SOUND_GLASS);
11671098 }
11681099
@@ -1276,12 +1207,7 @@ static bool project_o(int who, int r, int y, int x, int dam, int typ)
12761207 if (hates_acid(o_ptr))
12771208 {
12781209 do_kill = TRUE;
1279-#ifdef JP
1280-note_kill = "融けてしまった!";
1281-#else
1282- note_kill = (plural ? " melt!" : " melts!");
1283-#endif
1284-
1210+ note_kill = _("融けてしまった!", (plural ? " melt!" : " melts!"));
12851211 if (have_flag(flgs, TR_IGNORE_ACID)) ignore = TRUE;
12861212 }
12871213 break;
@@ -1293,12 +1219,7 @@ note_kill = "融
12931219 if (hates_elec(o_ptr))
12941220 {
12951221 do_kill = TRUE;
1296-#ifdef JP
1297-note_kill = "壊れてしまった!";
1298-#else
1299- note_kill = (plural ? " are destroyed!" : " is destroyed!");
1300-#endif
1301-
1222+ note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
13021223 if (have_flag(flgs, TR_IGNORE_ELEC)) ignore = TRUE;
13031224 }
13041225 break;
@@ -1309,13 +1230,8 @@ note_kill = "
13091230 {
13101231 if (hates_fire(o_ptr))
13111232 {
1312- do_kill = TRUE;
1313-#ifdef JP
1314-note_kill = "燃えてしまった!";
1315-#else
1316- note_kill = (plural ? " burn up!" : " burns up!");
1317-#endif
1318-
1233+ do_kill = TRUE;
1234+ note_kill = _("燃えてしまった!", (plural ? " burn up!" : " burns up!"));
13191235 if (have_flag(flgs, TR_IGNORE_FIRE)) ignore = TRUE;
13201236 }
13211237 break;
@@ -1326,12 +1242,7 @@ note_kill = "燃
13261242 {
13271243 if (hates_cold(o_ptr))
13281244 {
1329-#ifdef JP
1330-note_kill = "砕け散ってしまった!";
1331-#else
1332- note_kill = (plural ? " shatter!" : " shatters!");
1333-#endif
1334-
1245+ note_kill = _("砕け散ってしまった!", (plural ? " shatter!" : " shatters!"));
13351246 do_kill = TRUE;
13361247 if (have_flag(flgs, TR_IGNORE_COLD)) ignore = TRUE;
13371248 }
@@ -1344,24 +1255,14 @@ note_kill = "
13441255 if (hates_fire(o_ptr))
13451256 {
13461257 do_kill = TRUE;
1347-#ifdef JP
1348-note_kill = "燃えてしまった!";
1349-#else
1350- note_kill = (plural ? " burn up!" : " burns up!");
1351-#endif
1352-
1258+ note_kill = _("燃えてしまった!", (plural ? " burn up!" : " burns up!"));
13531259 if (have_flag(flgs, TR_IGNORE_FIRE)) ignore = TRUE;
13541260 }
13551261 if (hates_elec(o_ptr))
13561262 {
13571263 ignore = FALSE;
13581264 do_kill = TRUE;
1359-#ifdef JP
1360-note_kill = "壊れてしまった!";
1361-#else
1362- note_kill = (plural ? " are destroyed!" : " is destroyed!");
1363-#endif
1364-
1265+ note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
13651266 if (have_flag(flgs, TR_IGNORE_ELEC)) ignore = TRUE;
13661267 }
13671268 break;
@@ -1372,25 +1273,15 @@ note_kill = "
13721273 {
13731274 if (hates_fire(o_ptr))
13741275 {
1375- do_kill = TRUE;
1376-#ifdef JP
1377-note_kill = "燃えてしまった!";
1378-#else
1379- note_kill = (plural ? " burn up!" : " burns up!");
1380-#endif
1381-
1276+ do_kill = TRUE;
1277+ note_kill = _("燃えてしまった!", (plural ? " burn up!" : " burns up!"));
13821278 if (have_flag(flgs, TR_IGNORE_FIRE)) ignore = TRUE;
13831279 }
13841280 if (hates_cold(o_ptr))
13851281 {
13861282 ignore = FALSE;
13871283 do_kill = TRUE;
1388-#ifdef JP
1389-note_kill = "砕け散ってしまった!";
1390-#else
1391- note_kill = (plural ? " shatter!" : " shatters!");
1392-#endif
1393-
1284+ note_kill = _("砕け散ってしまった!", (plural ? " shatter!" : " shatters!"));
13941285 if (have_flag(flgs, TR_IGNORE_COLD)) ignore = TRUE;
13951286 }
13961287 break;
@@ -1403,13 +1294,8 @@ note_kill = "
14031294 case GF_SOUND:
14041295 {
14051296 if (hates_cold(o_ptr))
1406- {
1407-#ifdef JP
1408-note_kill = "砕け散ってしまった!";
1409-#else
1410- note_kill = (plural ? " shatter!" : " shatters!");
1411-#endif
1412-
1297+ {
1298+ note_kill = _("砕け散ってしまった!", (plural ? " shatter!" : " shatters!"));
14131299 do_kill = TRUE;
14141300 }
14151301 break;
@@ -1421,36 +1307,21 @@ note_kill = "
14211307 case GF_SUPER_RAY:
14221308 {
14231309 do_kill = TRUE;
1424-#ifdef JP
1425-note_kill = "壊れてしまった!";
1426-#else
1427- note_kill = (plural ? " are destroyed!" : " is destroyed!");
1428-#endif
1429-
1310+ note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
14301311 break;
14311312 }
14321313
14331314 case GF_DISINTEGRATE:
14341315 {
14351316 do_kill = TRUE;
1436-#ifdef JP
1437-note_kill = "蒸発してしまった!";
1438-#else
1439- note_kill = (plural ? " evaporate!" : " evaporates!");
1440-#endif
1441-
1317+ note_kill = _("蒸発してしまった!", (plural ? " evaporate!" : " evaporates!"));
14421318 break;
14431319 }
14441320
14451321 case GF_CHAOS:
14461322 {
14471323 do_kill = TRUE;
1448-#ifdef JP
1449-note_kill = "壊れてしまった!";
1450-#else
1451- note_kill = (plural ? " are destroyed!" : " is destroyed!");
1452-#endif
1453-
1324+ note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
14541325 if (have_flag(flgs, TR_RES_CHAOS)) ignore = TRUE;
14551326 else if ((o_ptr->tval == TV_SCROLL) && (o_ptr->sval == SV_SCROLL_CHAOS)) ignore = TRUE;
14561327 break;
@@ -1462,13 +1333,8 @@ note_kill = "
14621333 {
14631334 if (object_is_cursed(o_ptr))
14641335 {
1465- do_kill = TRUE;
1466-#ifdef JP
1467-note_kill = "壊れてしまった!";
1468-#else
1469- note_kill = (plural ? " are destroyed!" : " is destroyed!");
1470-#endif
1471-
1336+ do_kill = TRUE;
1337+ note_kill = _("壊れてしまった!", (plural ? " are destroyed!" : " is destroyed!"));
14721338 }
14731339 break;
14741340 }
@@ -1501,12 +1367,7 @@ note_kill = "
15011367 /* Notice */
15021368 if (known && (o_ptr->marked & OM_FOUND))
15031369 {
1504-#ifdef JP
1505-msg_print("カチッと音がした!");
1506-#else
1507- msg_print("Click!");
1508-#endif
1509-
1370+ msg_print(_("カチッと音がした!", "Click!"));
15101371 obvious = TRUE;
15111372 }
15121373 }
@@ -1531,29 +1392,17 @@ msg_print("
15311392 {
15321393 if (!note_kill)
15331394 {
1534-#ifdef JP
1535-note_kill = "灰になった。";
1536-#else
1537- note_kill = (plural ? " become dust." : " becomes dust.");
1538-#endif
1395+ note_kill = _("灰になった。", (plural ? " become dust." : " becomes dust."));
15391396 }
15401397 continue;
15411398 }
15421399 else if (summon_named_creature(who, y, x, o_ptr->pval, mode))
15431400 {
1544-#ifdef JP
1545-note_kill = "生き返った。";
1546-#else
1547- note_kill = " revived.";
1548-#endif
1401+ note_kill = _("生き返った。", " revived.");
15491402 }
15501403 else if (!note_kill)
15511404 {
1552-#ifdef JP
1553-note_kill = "灰になった。";
1554-#else
1555- note_kill = (plural ? " become dust." : " becomes dust.");
1556-#endif
1405+ note_kill = _("灰になった。", (plural ? " become dust." : " becomes dust."));
15571406 }
15581407 }
15591408 do_kill = TRUE;
@@ -1580,14 +1429,8 @@ note_kill = "
15801429 /* Observe the resist */
15811430 if (known && (o_ptr->marked & OM_FOUND))
15821431 {
1583-#ifdef JP
1584-msg_format("%sは影響を受けない!",
1585- o_name);
1586-#else
1587- msg_format("The %s %s unaffected!",
1588- o_name, (plural ? "are" : "is"));
1589-#endif
1590-
1432+ msg_format(_("%sは影響を受けない!",
1433+ (plural ? "The %s are unaffected!" : "The %s is unaffected!")), o_name);
15911434 }
15921435 }
15931436
@@ -1597,12 +1440,7 @@ msg_format("%s
15971440 /* Describe if needed */
15981441 if (known && (o_ptr->marked & OM_FOUND) && note_kill)
15991442 {
1600-#ifdef JP
1601-msg_format("%sは%s", o_name, note_kill);
1602-#else
1603- msg_format("The %s%s", o_name, note_kill);
1604-#endif
1605-
1443+ msg_format(_("%sは%s", "The %s%s"), o_name, note_kill);
16061444 }
16071445
16081446 k_idx = o_ptr->k_idx;
@@ -1739,10 +1577,7 @@ static bool project_m(int who, int r, int y, int x, int dam, int typ, int flg, b
17391577
17401578 /* Hold the monster name */
17411579 char m_name[80];
1742-
1743-#ifndef JP
17441580 char m_poss[10];
1745-#endif
17461581
17471582 int photo = 0;
17481583
@@ -1776,11 +1611,8 @@ static bool project_m(int who, int r, int y, int x, int dam, int typ, int flg, b
17761611 /* Get the monster name (BEFORE polymorphing) */
17771612 monster_desc(m_name, m_ptr, 0);
17781613
1779-#ifndef JP
17801614 /* Get the monster possessive ("his"/"her"/"its") */
17811615 monster_desc(m_poss, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE);
1782-#endif
1783-
17841616
17851617 if (p_ptr->riding && (c_ptr->m_idx == p_ptr->riding)) disturb(1, 1);
17861618
@@ -1794,11 +1626,7 @@ static bool project_m(int who, int r, int y, int x, int dam, int typ, int flg, b
17941626
17951627 if (r_ptr->flagsr & RFR_RES_ALL)
17961628 {
1797-#ifdef JP
1798- note = "には完全な耐性がある!";
1799-#else
1800- note = " is immune.";
1801-#endif
1629+ note = _("には完全な耐性がある!", " is immune.");
18021630 dam = 0;
18031631 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
18041632 break;
@@ -1813,23 +1641,14 @@ static bool project_m(int who, int r, int y, int x, int dam, int typ, int flg, b
18131641
18141642 if (r_ptr->flagsr & RFR_RES_ALL)
18151643 {
1816-#ifdef JP
1817- note = "には完全な耐性がある!";
1818-#else
1819- note = " is immune.";
1820-#endif
1644+ note = _("には完全な耐性がある!", " is immune.");
18211645 dam = 0;
18221646 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
18231647 break;
18241648 }
18251649 if (r_ptr->flagsr & RFR_IM_ACID)
18261650 {
1827-#ifdef JP
1828-note = "にはかなり耐性がある!";
1829-#else
1830- note = " resists a lot.";
1831-#endif
1832-
1651+ note = _("にはかなり耐性がある!", " resists a lot.");
18331652 dam /= 9;
18341653 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_ACID);
18351654 }
@@ -1843,24 +1662,15 @@ note = "
18431662
18441663 if (r_ptr->flagsr & RFR_RES_ALL)
18451664 {
1846-#ifdef JP
1847- note = "には完全な耐性がある!";
1848-#else
1849- note = " is immune.";
1850-#endif
1665+ note = _("には完全な耐性がある!", " is immune.");
18511666 dam = 0;
18521667 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
18531668 break;
18541669 }
18551670 if (r_ptr->flagsr & RFR_IM_ELEC)
18561671 {
1857-#ifdef JP
1858-note = "にはかなり耐性がある!";
1859-#else
1860- note = " resists a lot.";
1861-#endif
1862-
1863- dam /= 9;
1672+ note = _("にはかなり耐性がある!", " resists a lot.");
1673+ dam /= 9;
18641674 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_ELEC);
18651675 }
18661676 break;
@@ -1873,34 +1683,20 @@ note = "
18731683
18741684 if (r_ptr->flagsr & RFR_RES_ALL)
18751685 {
1876-#ifdef JP
1877- note = "には完全な耐性がある!";
1878-#else
1879- note = " is immune.";
1880-#endif
1686+ note = _("には完全な耐性がある!", " is immune.");
18811687 dam = 0;
18821688 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
18831689 break;
18841690 }
18851691 if (r_ptr->flagsr & RFR_IM_FIRE)
18861692 {
1887-#ifdef JP
1888-note = "にはかなり耐性がある!";
1889-#else
1890- note = " resists a lot.";
1891-#endif
1892-
1693+ note = _("にはかなり耐性がある!", " resists a lot.");
18931694 dam /= 9;
18941695 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_FIRE);
18951696 }
18961697 else if (r_ptr->flags3 & (RF3_HURT_FIRE))
18971698 {
1898-#ifdef JP
1899-note = "はひどい痛手をうけた。";
1900-#else
1901- note = " is hit hard.";
1902-#endif
1903-
1699+ note = _("はひどい痛手をうけた。", " is hit hard.");
19041700 dam *= 2;
19051701 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_FIRE);
19061702 }
@@ -1914,34 +1710,20 @@ note = "
19141710
19151711 if (r_ptr->flagsr & RFR_RES_ALL)
19161712 {
1917-#ifdef JP
1918- note = "には完全な耐性がある!";
1919-#else
1920- note = " is immune.";
1921-#endif
1713+ note = _("には完全な耐性がある!", " is immune.");
19221714 dam = 0;
19231715 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
19241716 break;
19251717 }
19261718 if (r_ptr->flagsr & RFR_IM_COLD)
19271719 {
1928-#ifdef JP
1929-note = "にはかなり耐性がある!";
1930-#else
1931- note = " resists a lot.";
1932-#endif
1933-
1720+ note = _("にはかなり耐性がある!", " resists a lot.");
19341721 dam /= 9;
19351722 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_COLD);
19361723 }
19371724 else if (r_ptr->flags3 & (RF3_HURT_COLD))
1938- {
1939-#ifdef JP
1940-note = "はひどい痛手をうけた。";
1941-#else
1942- note = " is hit hard.";
1943-#endif
1944-
1725+ {
1726+ note = _("はひどい痛手をうけた。", " is hit hard.");
19451727 dam *= 2;
19461728 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_COLD);
19471729 }
@@ -1955,23 +1737,14 @@ note = "
19551737
19561738 if (r_ptr->flagsr & RFR_RES_ALL)
19571739 {
1958-#ifdef JP
1959- note = "には完全な耐性がある!";
1960-#else
1961- note = " is immune.";
1962-#endif
1740+ note = _("には完全な耐性がある!", " is immune.");
19631741 dam = 0;
19641742 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
19651743 break;
19661744 }
19671745 if (r_ptr->flagsr & RFR_IM_POIS)
19681746 {
1969-#ifdef JP
1970-note = "にはかなり耐性がある!";
1971-#else
1972- note = " resists a lot.";
1973-#endif
1974-
1747+ note = _("にはかなり耐性がある!", " resists a lot.");
19751748 dam /= 9;
19761749 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_POIS);
19771750 }
@@ -1985,23 +1758,14 @@ note = "
19851758
19861759 if (r_ptr->flagsr & RFR_RES_ALL)
19871760 {
1988-#ifdef JP
1989- note = "には完全な耐性がある!";
1990-#else
1991- note = " is immune.";
1992-#endif
1761+ note = _("には完全な耐性がある!", " is immune.");
19931762 dam = 0;
19941763 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
19951764 break;
19961765 }
19971766 if (r_ptr->flagsr & RFR_IM_POIS)
19981767 {
1999-#ifdef JP
2000-note = "には耐性がある。";
2001-#else
2002- note = " resists.";
2003-#endif
2004-
1768+ note = _("には耐性がある。", " resists.");
20051769 dam *= 3; dam /= randint1(6) + 6;
20061770 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_POIS);
20071771 }
@@ -2015,25 +1779,16 @@ note = "
20151779 if (seen) obvious = TRUE;
20161780
20171781 if (r_ptr->flagsr & RFR_RES_ALL)
2018- {
2019-#ifdef JP
2020- note = "には完全な耐性がある!";
2021-#else
2022- note = " is immune.";
2023-#endif
1782+ {
1783+ note = _("には完全な耐性がある!", " is immune.");
20241784 dam = 0;
20251785 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
20261786 break;
20271787 }
20281788 if (r_ptr->flags3 & RF3_GOOD)
2029- {
1789+ {
1790+ note = _("はひどい痛手をうけた。", " is hit hard.");
20301791 dam *= 2;
2031-#ifdef JP
2032-note = "はひどい痛手を受けた。";
2033-#else
2034- note = " is hit hard.";
2035-#endif
2036-
20371792 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_GOOD);
20381793 }
20391794 break;
@@ -2045,46 +1800,27 @@ note = "
20451800 if (seen) obvious = TRUE;
20461801
20471802 if (r_ptr->flagsr & RFR_RES_ALL)
2048- {
2049-#ifdef JP
2050- note = "には完全な耐性がある!";
2051-#else
2052- note = " is immune.";
2053-#endif
1803+ {
1804+ note = _("には完全な耐性がある!", " is immune.");
20541805 dam = 0;
20551806 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
20561807 break;
20571808 }
20581809 if (r_ptr->flags3 & RF3_GOOD)
2059- {
1810+ {
1811+ note = _("には完全な耐性がある!", " is immune.");
20601812 dam = 0;
2061-#ifdef JP
2062-note = "には完全な耐性がある。";
2063-#else
2064- note = " is immune.";
2065-#endif
2066-
20671813 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= RF3_GOOD;
20681814 }
20691815 else if (r_ptr->flags3 & RF3_EVIL)
20701816 {
2071- dam *= 2;
2072-#ifdef JP
2073-note = "はひどい痛手を受けた。";
2074-#else
2075- note = " is hit hard.";
2076-#endif
2077-
1817+ dam *= 2;
1818+ note = _("はひどい痛手をうけた。", " is hit hard.");
20781819 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= RF3_EVIL;
20791820 }
20801821 else
2081- {
2082-#ifdef JP
2083-note = "には耐性がある。";
2084-#else
2085- note = " resists.";
2086-#endif
2087-
1822+ {
1823+ note = _("には耐性がある。", " resists.");
20881824 dam *= 3; dam /= randint1(6) + 6;
20891825 }
20901826 break;
@@ -2096,12 +1832,8 @@ note = "
20961832 if (seen) obvious = TRUE;
20971833
20981834 if (r_ptr->flagsr & RFR_RES_ALL)
2099- {
2100-#ifdef JP
2101- note = "には完全な耐性がある!";
2102-#else
2103- note = " is immune.";
2104-#endif
1835+ {
1836+ note = _("には完全な耐性がある!", " is immune.");
21051837 dam = 0;
21061838 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
21071839 break;
@@ -2116,23 +1848,14 @@ note = "
21161848
21171849 if (r_ptr->flagsr & RFR_RES_ALL)
21181850 {
2119-#ifdef JP
2120- note = "には完全な耐性がある!";
2121-#else
2122- note = " is immune.";
2123-#endif
1851+ note = _("には完全な耐性がある!", " is immune.");
21241852 dam = 0;
21251853 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
21261854 break;
21271855 }
21281856 if (r_ptr->flagsr & RFR_RES_PLAS)
2129- {
2130-#ifdef JP
2131-note = "には耐性がある。";
2132-#else
2133- note = " resists.";
2134-#endif
2135-
1857+ {
1858+ note = _("には耐性がある。", " resists.");
21361859 dam *= 3; dam /= randint1(6) + 6;
21371860 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_PLAS);
21381861 }
@@ -2146,11 +1869,7 @@ note = "
21461869
21471870 if (r_ptr->flagsr & RFR_RES_ALL)
21481871 {
2149-#ifdef JP
2150- note = "には完全な耐性がある!";
2151-#else
2152- note = " is immune.";
2153-#endif
1872+ note = _("には完全な耐性がある!", " is immune.");
21541873 dam = 0;
21551874 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
21561875 break;
@@ -2158,37 +1877,22 @@ note = "
21581877 if (r_ptr->flagsr & RFR_RES_NETH)
21591878 {
21601879 if (r_ptr->flags3 & RF3_UNDEAD)
2161- {
2162-#ifdef JP
2163- note = "には完全な耐性がある。";
2164-#else
2165- note = " is immune.";
2166-#endif
2167-
1880+ {
1881+ note = _("には完全な耐性がある!", " is immune.");
21681882 dam = 0;
21691883 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_UNDEAD);
21701884 }
21711885 else
21721886 {
2173-#ifdef JP
2174- note = "には耐性がある。";
2175-#else
2176- note = " resists.";
2177-#endif
2178-
1887+ note = _("には耐性がある。", " resists.");
21791888 dam *= 3; dam /= randint1(6) + 6;
21801889 }
21811890 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_NETH);
21821891 }
21831892 else if (r_ptr->flags3 & RF3_EVIL)
2184- {
1893+ {
1894+ note = _("はいくらか耐性を示した。", " resists somewhat.");
21851895 dam /= 2;
2186-#ifdef JP
2187- note = "はいくらか耐性を示した。";
2188-#else
2189- note = " resists somewhat.";
2190-#endif
2191-
21921896 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_EVIL);
21931897 }
21941898 break;
@@ -2201,11 +1905,7 @@ note = "
22011905
22021906 if (r_ptr->flagsr & RFR_RES_ALL)
22031907 {
2204-#ifdef JP
2205- note = "には完全な耐性がある!";
2206-#else
2207- note = " is immune.";
2208-#endif
1908+ note = _("には完全な耐性がある!", " is immune.");
22091909 dam = 0;
22101910 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
22111911 break;
@@ -2213,23 +1913,13 @@ note = "
22131913 if (r_ptr->flagsr & RFR_RES_WATE)
22141914 {
22151915 if ((m_ptr->r_idx == MON_WATER_ELEM) || (m_ptr->r_idx == MON_UNMAKER))
2216- {
2217-#ifdef JP
2218- note = "には完全な耐性がある。";
2219-#else
2220- note = " is immune.";
2221-#endif
2222-
1916+ {
1917+ note = _("には完全な耐性がある!", " is immune.");
22231918 dam = 0;
22241919 }
22251920 else
2226- {
2227-#ifdef JP
2228- note = "には耐性がある。";
2229-#else
2230- note = " resists.";
2231-#endif
2232-
1921+ {
1922+ note = _("には耐性がある。", " resists.");
22331923 dam *= 3; dam /= randint1(6) + 6;
22341924 }
22351925 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_WATE);
@@ -2243,35 +1933,21 @@ note = "
22431933 if (seen) obvious = TRUE;
22441934
22451935 if (r_ptr->flagsr & RFR_RES_ALL)
2246- {
2247-#ifdef JP
2248- note = "には完全な耐性がある!";
2249-#else
2250- note = " is immune.";
2251-#endif
1936+ {
1937+ note = _("には完全な耐性がある!", " is immune.");
22521938 dam = 0;
22531939 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
22541940 break;
22551941 }
22561942 if (r_ptr->flagsr & RFR_RES_CHAO)
2257- {
2258-#ifdef JP
2259- note = "には耐性がある。";
2260-#else
2261- note = " resists.";
2262-#endif
2263-
1943+ {
1944+ note = _("には耐性がある。", " resists.");
22641945 dam *= 3; dam /= randint1(6) + 6;
22651946 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_CHAO);
22661947 }
22671948 else if ((r_ptr->flags3 & RF3_DEMON) && one_in_(3))
2268- {
2269-#ifdef JP
2270- note = "はいくらか耐性を示した。";
2271-#else
2272- note = " resists somewhat.";
2273-#endif
2274-
1949+ {
1950+ note = _("はいくらか耐性を示した。", " resists somewhat.");
22751951 dam *= 3; dam /= randint1(6) + 6;
22761952 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_DEMON);
22771953 }
@@ -2289,25 +1965,16 @@ note = "
22891965 if (seen) obvious = TRUE;
22901966
22911967 if (r_ptr->flagsr & RFR_RES_ALL)
2292- {
2293-#ifdef JP
2294- note = "には完全な耐性がある!";
2295-#else
2296- note = " is immune.";
2297-#endif
1968+ {
1969+ note = _("には完全な耐性がある!", " is immune.");
22981970 dam = 0;
22991971 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
23001972 break;
23011973 }
23021974 if (r_ptr->flagsr & RFR_RES_SHAR)
23031975 {
2304-#ifdef JP
2305- note = "には耐性がある。";
2306-#else
2307- note = " resists.";
2308-#endif
2309-
2310- dam *= 3; dam /= randint1(6) + 6;
1976+ note = _("には耐性がある。", " resists.");
1977+ dam *= 3; dam /= randint1(6) + 6;
23111978 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_SHAR);
23121979 }
23131980 break;
@@ -2320,23 +1987,14 @@ note = "
23201987
23211988 if (r_ptr->flagsr & RFR_RES_ALL)
23221989 {
2323-#ifdef JP
2324- note = "には完全な耐性がある!";
2325-#else
2326- note = " is immune.";
2327-#endif
1990+ note = _("には完全な耐性がある!", " is immune.");
23281991 dam = 0;
23291992 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
23301993 break;
23311994 }
23321995 if (r_ptr->flagsr & RFR_RES_SHAR)
2333- {
2334-#ifdef JP
2335- note = "はいくらか耐性を示した。";
2336-#else
2337- note = " resists somewhat.";
2338-#endif
2339-
1996+ {
1997+ note = _("はいくらか耐性を示した。", " resists somewhat.");
23401998 dam /= 2;
23411999 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_SHAR);
23422000 }
@@ -2351,24 +2009,15 @@ note = "
23512009
23522010 if (r_ptr->flagsr & RFR_RES_ALL)
23532011 {
2354-#ifdef JP
2355- note = "には完全な耐性がある!";
2356-#else
2357- note = " is immune.";
2358-#endif
2012+ note = _("には完全な耐性がある!", " is immune.");
23592013 dam = 0;
23602014 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
23612015 break;
23622016 }
23632017 if (r_ptr->flagsr & RFR_RES_SOUN)
23642018 {
2365-#ifdef JP
2366- note = "には耐性がある。";
2367-#else
2368- note = " resists.";
2369-#endif
2370-
2371- dam *= 2; dam /= randint1(6) + 6;
2019+ note = _("には耐性がある。", " resists.");
2020+ dam *= 2; dam /= randint1(6) + 6;
23722021 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_SOUN);
23732022 }
23742023 else do_stun = (10 + randint1(15) + r) / (r + 1);
@@ -2382,24 +2031,15 @@ note = "
23822031
23832032 if (r_ptr->flagsr & RFR_RES_ALL)
23842033 {
2385-#ifdef JP
2386- note = "には完全な耐性がある!";
2387-#else
2388- note = " is immune.";
2389-#endif
2034+ note = _("には完全な耐性がある!", " is immune.");
23902035 dam = 0;
23912036 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
23922037 break;
23932038 }
23942039 if (r_ptr->flags3 & RF3_NO_CONF)
23952040 {
2396-#ifdef JP
2397- note = "には耐性がある。";
2398-#else
2399- note = " resists.";
2400-#endif
2401-
2402- dam *= 3; dam /= randint1(6) + 6;
2041+ note = _("には耐性がある。", " resists.");
2042+ dam *= 3; dam /= randint1(6) + 6;
24032043 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_NO_CONF);
24042044 }
24052045 else do_conf = (10 + randint1(15) + r) / (r + 1);
@@ -2413,24 +2053,15 @@ note = "
24132053
24142054 if (r_ptr->flagsr & RFR_RES_ALL)
24152055 {
2416-#ifdef JP
2417- note = "には完全な耐性がある!";
2418-#else
2419- note = " is immune.";
2420-#endif
2056+ note = _("には完全な耐性がある!", " is immune.");
24212057 dam = 0;
24222058 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
24232059 break;
24242060 }
24252061 if (r_ptr->flagsr & RFR_RES_DISE)
24262062 {
2427-#ifdef JP
2428- note = "には耐性がある。";
2429-#else
2430- note = " resists.";
2431-#endif
2432-
2433- dam *= 3; dam /= randint1(6) + 6;
2063+ note = _("には耐性がある。", " resists.");
2064+ dam *= 3; dam /= randint1(6) + 6;
24342065 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_DISE);
24352066 }
24362067 break;
@@ -2442,24 +2073,15 @@ note = "
24422073 if (seen) obvious = TRUE;
24432074
24442075 if (r_ptr->flagsr & RFR_RES_ALL)
2445- {
2446-#ifdef JP
2447- note = "には完全な耐性がある!";
2448-#else
2449- note = " is immune.";
2450-#endif
2076+ {
2077+ note = _("には完全な耐性がある!", " is immune.");
24512078 dam = 0;
24522079 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
24532080 break;
24542081 }
24552082 if (r_ptr->flagsr & RFR_RES_NEXU)
2456- {
2457-#ifdef JP
2458- note = "には耐性がある。";
2459-#else
2460- note = " resists.";
2461-#endif
2462-
2083+ {
2084+ note = _("には耐性がある。", " resists.");
24632085 dam *= 3; dam /= randint1(6) + 6;
24642086 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_NEXU);
24652087 }
@@ -2472,24 +2094,15 @@ note = "
24722094 if (seen) obvious = TRUE;
24732095
24742096 if (r_ptr->flagsr & RFR_RES_ALL)
2475- {
2476-#ifdef JP
2477- note = "には完全な耐性がある!";
2478-#else
2479- note = " is immune.";
2480-#endif
2097+ {
2098+ note = _("には完全な耐性がある!", " is immune.");
24812099 dam = 0;
24822100 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
24832101 break;
24842102 }
24852103 if (r_ptr->flagsr & RFR_RES_WALL)
2486- {
2487-#ifdef JP
2488- note = "には耐性がある。";
2489-#else
2490- note = " resists.";
2491-#endif
2492-
2104+ {
2105+ note = _("には耐性がある。", " resists.");
24932106 dam *= 3; dam /= randint1(6) + 6;
24942107 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_WALL);
24952108 }
@@ -2503,24 +2116,15 @@ note = "
25032116 if (seen) obvious = TRUE;
25042117
25052118 if (r_ptr->flagsr & RFR_RES_ALL)
2506- {
2507-#ifdef JP
2508- note = "には完全な耐性がある!";
2509-#else
2510- note = " is immune.";
2511-#endif
2119+ {
2120+ note = _("には完全な耐性がある!", " is immune.");
25122121 dam = 0;
25132122 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
25142123 break;
25152124 }
25162125 if (r_ptr->flagsr & RFR_RES_INER)
2517- {
2518-#ifdef JP
2519- note = "には耐性がある。";
2520-#else
2521- note = " resists.";
2522-#endif
2523-
2126+ {
2127+ note = _("には耐性がある。", " resists.");
25242128 dam *= 3; dam /= randint1(6) + 6;
25252129 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_INER);
25262130 }
@@ -2537,11 +2141,7 @@ note = "
25372141 {
25382142 if (set_monster_slow(c_ptr->m_idx, MON_SLOW(m_ptr) + 50))
25392143 {
2540-#ifdef JP
2541- note = "の動きが遅くなった。";
2542-#else
2543- note = " starts moving slower.";
2544-#endif
2144+ note = _("の動きが遅くなった。", " starts moving slower.");
25452145 }
25462146 }
25472147 }
@@ -2555,23 +2155,14 @@ note = "
25552155
25562156 if (r_ptr->flagsr & RFR_RES_ALL)
25572157 {
2558-#ifdef JP
2559- note = "には完全な耐性がある!";
2560-#else
2561- note = " is immune.";
2562-#endif
2158+ note = _("には完全な耐性がある!", " is immune.");
25632159 dam = 0;
25642160 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
25652161 break;
25662162 }
25672163 if (r_ptr->flagsr & RFR_RES_TIME)
25682164 {
2569-#ifdef JP
2570- note = "には耐性がある。";
2571-#else
2572- note = " resists.";
2573-#endif
2574-
2165+ note = _("には耐性がある。", " resists.");
25752166 dam *= 3; dam /= randint1(6) + 6;
25762167 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_TIME);
25772168 }
@@ -2587,12 +2178,8 @@ note = "
25872178 if (seen) obvious = TRUE;
25882179
25892180 if (r_ptr->flagsr & RFR_RES_ALL)
2590- {
2591-#ifdef JP
2592- note = "には完全な耐性がある!";
2593-#else
2594- note = " is immune.";
2595-#endif
2181+ {
2182+ note = _("には完全な耐性がある!", " is immune.");
25962183 dam = 0;
25972184 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
25982185 break;
@@ -2602,23 +2189,13 @@ note = "
26022189 if (r_ptr->flags1 & (RF1_UNIQUE))
26032190 {
26042191 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
2605-#ifdef JP
2606-note = "には効果がなかった。";
2607-#else
2608- note = " is unaffected!";
2609-#endif
2610-
2192+ note = _("には効果がなかった。", " is unaffected!");
26112193 resist_tele = TRUE;
26122194 }
26132195 else if (r_ptr->level > randint1(100))
26142196 {
26152197 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
2616-#ifdef JP
2617-note = "には耐性がある!";
2618-#else
2619- note = " resists!";
2620-#endif
2621-
2198+ note = _("には耐性がある!", " resists!");
26222199 resist_tele = TRUE;
26232200 }
26242201 }
@@ -2628,13 +2205,8 @@ note = "
26282205 if (p_ptr->riding && (c_ptr->m_idx == p_ptr->riding)) do_dist = 0;
26292206
26302207 if (r_ptr->flagsr & RFR_RES_GRAV)
2631- {
2632-#ifdef JP
2633- note = "には耐性がある。";
2634-#else
2635- note = " resists.";
2636-#endif
2637-
2208+ {
2209+ note = _("には耐性がある!", " resists!");
26382210 dam *= 3; dam /= randint1(6) + 6;
26392211 do_dist = 0;
26402212 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_GRAV);
@@ -2653,11 +2225,7 @@ note = "
26532225 {
26542226 if (set_monster_slow(c_ptr->m_idx, MON_SLOW(m_ptr) + 50))
26552227 {
2656-#ifdef JP
2657- note = "の動きが遅くなった。";
2658-#else
2659- note = " starts moving slower.";
2660-#endif
2228+ note = _("の動きが遅くなった。", " starts moving slower.");
26612229 }
26622230 }
26632231
@@ -2671,12 +2239,7 @@ note = "
26712239 /* Resist */
26722240 do_stun = 0;
26732241 /* No obvious effect */
2674-#ifdef JP
2675- note = "には効果がなかった。";
2676-#else
2677- note = " is unaffected!";
2678-#endif
2679-
2242+ note = _("には効果がなかった。", " is unaffected!");
26802243 obvious = FALSE;
26812244 }
26822245 }
@@ -2692,11 +2255,7 @@ note = "
26922255
26932256 if (r_ptr->flagsr & RFR_RES_ALL)
26942257 {
2695-#ifdef JP
2696- note = "には完全な耐性がある!";
2697-#else
2698- note = " is immune.";
2699-#endif
2258+ note = _("には完全な耐性がある!", " is immune.");
27002259 dam = 0;
27012260 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
27022261 break;
@@ -2712,11 +2271,7 @@ note = "
27122271
27132272 if (r_ptr->flagsr & RFR_RES_ALL)
27142273 {
2715-#ifdef JP
2716- note = "には完全な耐性がある!";
2717-#else
2718- note = " is immune.";
2719-#endif
2274+ note = _("には完全な耐性がある!", " is immune.");
27202275 dam = 0;
27212276 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
27222277 break;
@@ -2724,14 +2279,8 @@ note = "
27242279 if (r_ptr->flags3 & RF3_HURT_ROCK)
27252280 {
27262281 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_ROCK);
2727-#ifdef JP
2728-note = "の皮膚がただれた!";
2729-note_dies = "は蒸発した!";
2730-#else
2731- note = " loses some skin!";
2732- note_dies = " evaporates!";
2733-#endif
2734-
2282+ note = _("の皮膚がただれた!", " loses some skin!");
2283+ note_dies = _("は蒸発した!", " evaporates!");
27352284 dam *= 2;
27362285 }
27372286 break;
@@ -2744,22 +2293,15 @@ note_dies = "
27442293 /* PSI only works if the monster can see you! -- RG */
27452294 if (!(los(m_ptr->fy, m_ptr->fx, py, px)))
27462295 {
2747-#ifdef JP
2748- if (seen_msg) msg_format("%sはあなたが見えないので影響されない!", m_name);
2749-#else
2750- if (seen_msg) msg_format("%^s can't see you, and isn't affected!", m_name);
2751-#endif
2296+ if (seen_msg)
2297+ msg_format(_("%sはあなたが見えないので影響されない!", "%^s can't see you, and isn't affected!"), m_name);
27522298 skipped = TRUE;
27532299 break;
27542300 }
27552301
27562302 if (r_ptr->flagsr & RFR_RES_ALL)
27572303 {
2758-#ifdef JP
2759- note = "には完全な耐性がある!";
2760-#else
2761- note = " is immune.";
2762-#endif
2304+ note = _("には完全な耐性がある!", " is immune.");
27632305 dam = 0;
27642306 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
27652307 break;
@@ -2767,25 +2309,16 @@ note_dies = "
27672309 if (r_ptr->flags2 & RF2_EMPTY_MIND)
27682310 {
27692311 dam = 0;
2770-#ifdef JP
2771- note = "には完全な耐性がある!";
2772-#else
2773- note = " is immune!";
2774-#endif
2312+ note = _("には完全な耐性がある!", " is immune.");
27752313 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_EMPTY_MIND);
27762314
27772315 }
27782316 else if ((r_ptr->flags2 & (RF2_STUPID | RF2_WEIRD_MIND)) ||
27792317 (r_ptr->flags3 & RF3_ANIMAL) ||
27802318 (r_ptr->level > randint1(3 * dam)))
2781- {
2319+ {
2320+ note = _("には耐性がある!", " resists!");
27822321 dam /= 3;
2783-#ifdef JP
2784- note = "には耐性がある。";
2785-#else
2786- note = " resists.";
2787-#endif
2788-
27892322
27902323 /*
27912324 * Powerful demons & undead can turn a mindcrafter's
@@ -2796,22 +2329,14 @@ note_dies = "
27962329 one_in_(2))
27972330 {
27982331 note = NULL;
2799-#ifdef JP
2800- msg_format("%^sの堕落した精神は攻撃を跳ね返した!", m_name);
2801-#else
2802- msg_format("%^s%s corrupted mind backlashes your attack!",
2803- m_name, (seen ? "'s" : "s"));
2804-#endif
2332+ msg_format(_("%^sの堕落した精神は攻撃を跳ね返した!",
2333+ (seen ? "%^s's corrupted mind backlashes your attack!" :
2334+ "%^ss corrupted mind backlashes your attack!")), m_name);
28052335
28062336 /* Saving throw */
28072337 if ((randint0(100 + r_ptr->level / 2) < p_ptr->skill_sav) && !CHECK_MULTISHADOW())
28082338 {
2809-#ifdef JP
2810- msg_print("しかし効力を跳ね返した!");
2811-#else
2812- msg_print("You resist the effects!");
2813-#endif
2814-
2339+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
28152340 }
28162341 else
28172342 {
@@ -2831,12 +2356,7 @@ note_dies = "
28312356 case 3:
28322357 {
28332358 if (r_ptr->flags3 & RF3_NO_FEAR)
2834-#ifdef JP
2835- note = "には効果がなかった。";
2836-#else
2837- note = " is unaffected.";
2838-#endif
2839-
2359+ note = _("には効果がなかった。", " is unaffected.");
28402360 else
28412361 set_afraid(p_ptr->afraid + 3 + randint1(dam));
28422362 break;
@@ -2866,23 +2386,13 @@ note_dies = "
28662386 do_fear = 3 + randint1(dam);
28672387 break;
28682388 default:
2869-#ifdef JP
2870- note = "は眠り込んでしまった!";
2871-#else
2872- note = " falls asleep!";
2873-#endif
2874-
2389+ note = _("は眠り込んでしまった!", " falls asleep!");
28752390 do_sleep = 3 + randint1(dam);
28762391 break;
28772392 }
28782393 }
28792394
2880-#ifdef JP
2881- note_dies = "の精神は崩壊し、肉体は抜け殻となった。";
2882-#else
2883- note_dies = " collapses, a mindless husk.";
2884-#endif
2885-
2395+ note_dies = _("の精神は崩壊し、肉体は抜け殻となった。", " collapses, a mindless husk.");
28862396 break;
28872397 }
28882398
@@ -2891,37 +2401,23 @@ note_dies = "
28912401 if (seen) obvious = TRUE;
28922402
28932403 if (r_ptr->flagsr & RFR_RES_ALL)
2894- {
2895-#ifdef JP
2896- note = "には完全な耐性がある!";
2897-#else
2898- note = " is immune.";
2899-#endif
2404+ {
2405+ note = _("には完全な耐性がある!", " is immune.");
29002406 dam = 0;
29012407 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
29022408 break;
29032409 }
29042410 if (r_ptr->flags2 & RF2_EMPTY_MIND)
29052411 {
2906- dam = 0;
2907-#ifdef JP
2908- note = "には完全な耐性がある!";
2909-#else
2910- note = " is immune!";
2911-#endif
2912-
2412+ dam = 0;
2413+ note = _("には完全な耐性がある!", " is immune.");
29132414 }
29142415 else if ((r_ptr->flags2 & (RF2_STUPID | RF2_WEIRD_MIND)) ||
29152416 (r_ptr->flags3 & RF3_ANIMAL) ||
29162417 (r_ptr->level > randint1(3 * dam)))
2917- {
2418+ {
2419+ note = _("には耐性がある!", " resists!");
29182420 dam /= 3;
2919-#ifdef JP
2920- note = "には耐性がある。";
2921-#else
2922- note = " resists.";
2923-#endif
2924-
29252421
29262422 /*
29272423 * Powerful demons & undead can turn a mindcrafter's
@@ -2932,21 +2428,13 @@ note_dies = "
29322428 (one_in_(2)))
29332429 {
29342430 note = NULL;
2935-#ifdef JP
2936- msg_format("%^sの堕落した精神は攻撃を跳ね返した!", m_name);
2937-#else
2938- msg_format("%^s%s corrupted mind backlashes your attack!",
2939- m_name, (seen ? "'s" : "s"));
2940-#endif
2941-
2431+ msg_format(_("%^sの堕落した精神は攻撃を跳ね返した!",
2432+ (seen ? "%^s's corrupted mind backlashes your attack!" :
2433+ "%^ss corrupted mind backlashes your attack!")), m_name);
29422434 /* Saving throw */
29432435 if ((randint0(100 + r_ptr->level / 2) < p_ptr->skill_sav) && !CHECK_MULTISHADOW())
29442436 {
2945-#ifdef JP
2946- msg_print("あなたは効力を跳ね返した!");
2947-#else
2948- msg_print("You resist the effects!");
2949-#endif
2437+ msg_print(_("あなたは効力を跳ね返した!", "You resist the effects!"));
29502438 }
29512439 else
29522440 {
@@ -2954,12 +2442,7 @@ note_dies = "
29542442 monster_desc(killer, m_ptr, MD_IGNORE_HALLU | MD_ASSUME_VISIBLE | MD_INDEF_VISIBLE);
29552443 if (!CHECK_MULTISHADOW())
29562444 {
2957-#ifdef JP
2958- msg_print("超能力パワーを吸いとられた!");
2959-#else
2960- msg_print("Your psychic energy is drained!");
2961-#endif
2962-
2445+ msg_print(_("超能力パワーを吸いとられた!", "Your psychic energy is drained!"));
29632446 p_ptr->csp -= damroll(5, dam) / 2;
29642447 if (p_ptr->csp < 0) p_ptr->csp = 0;
29652448 p_ptr->redraw |= PR_MANA;
@@ -2973,27 +2456,18 @@ note_dies = "
29732456 else if (dam > 0)
29742457 {
29752458 int b = damroll(5, dam) / 4;
2976-#ifdef JP
2977- cptr str = (p_ptr->pclass == CLASS_MINDCRAFTER) ? "超能力パワー" : "魔力";
2978- msg_format("あなたは%sの苦痛を%sに変換した!", m_name, str);
2979-#else
2980- cptr str = (p_ptr->pclass == CLASS_MINDCRAFTER) ? "psychic energy" : "mana";
2981- msg_format("You convert %s%s pain into %s!",
2982- m_name, (seen ? "'s" : "s"), str);
2983-#endif
2459+ cptr str = (p_ptr->pclass == CLASS_MINDCRAFTER) ? _("超能力パワー", "psychic energy") : _("魔力", "mana");
2460+ cptr msg = _("あなたは%sの苦痛を%sに変換した!",
2461+ (seen ? "You convert %s's pain into %s!" :
2462+ "You convert %ss pain into %s!"));
2463+ msg_format(msg, m_name, str);
29842464
29852465 b = MIN(p_ptr->msp, p_ptr->csp + b);
29862466 p_ptr->csp = b;
29872467 p_ptr->redraw |= PR_MANA;
29882468 p_ptr->window |= (PW_SPELL);
29892469 }
2990-
2991-#ifdef JP
2992- note_dies = "の精神は崩壊し、肉体は抜け殻となった。";
2993-#else
2994- note_dies = " collapses, a mindless husk.";
2995-#endif
2996-
2470+ note_dies = _("の精神は崩壊し、肉体は抜け殻となった。", " collapses, a mindless husk.");
29972471 break;
29982472 }
29992473
@@ -3002,12 +2476,8 @@ note_dies = "
30022476 if (seen) obvious = TRUE;
30032477
30042478 if (r_ptr->flagsr & RFR_RES_ALL)
3005- {
3006-#ifdef JP
3007- note = "には完全な耐性がある!";
3008-#else
3009- note = " is immune.";
3010-#endif
2479+ {
2480+ note = _("には完全な耐性がある!", " is immune.");
30112481 dam = 0;
30122482 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
30132483 break;
@@ -3040,11 +2510,7 @@ note_dies = "
30402510
30412511 if (r_ptr->flagsr & RFR_RES_ALL)
30422512 {
3043-#ifdef JP
3044- note = "には完全な耐性がある!";
3045-#else
3046- note = " is immune.";
3047-#endif
2513+ note = _("には完全な耐性がある!", " is immune.");
30482514 dam = 0;
30492515 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
30502516 break;
@@ -3058,12 +2524,8 @@ note_dies = "
30582524 if (seen) obvious = TRUE;
30592525
30602526 if (r_ptr->flagsr & RFR_RES_ALL)
3061- {
3062-#ifdef JP
3063- note = "には完全な耐性がある!";
3064-#else
3065- note = " is immune.";
3066-#endif
2527+ {
2528+ note = _("には完全な耐性がある!", " is immune.");
30672529 dam = 0;
30682530 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
30692531 break;
@@ -3079,11 +2541,7 @@ note_dies = "
30792541
30802542 if (r_ptr->flagsr & RFR_RES_ALL)
30812543 {
3082-#ifdef JP
3083- note = "には効果がなかった!";
3084-#else
3085- note = " is immune.";
3086-#endif
2544+ note = _("には効果がなかった!", " is immune.");
30872545 dam = 0;
30882546 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
30892547 break;
@@ -3110,23 +2568,15 @@ note_dies = "
31102568 (r_ptr->level > p_ptr->lev / 2) &&
31112569 (one_in_(2)))
31122570 {
3113- note = NULL;
3114-#ifdef JP
3115- msg_format("%^sの堕落した精神は攻撃を跳ね返した!", m_name);
3116-#else
3117- msg_format("%^s%s corrupted mind backlashes your attack!",
3118- m_name, (seen ? "'s" : "s"));
3119-#endif
2571+ note = NULL;
2572+ msg_format(_("%^sの堕落した精神は攻撃を跳ね返した!",
2573+ (seen ? "%^s's corrupted mind backlashes your attack!" :
2574+ "%^ss corrupted mind backlashes your attack!")), m_name);
31202575
31212576 /* Saving throw */
31222577 if (randint0(100 + r_ptr->level/2) < p_ptr->skill_sav)
31232578 {
3124-#ifdef JP
3125- msg_print("しかし効力を跳ね返した!");
3126-#else
3127- msg_print("You resist the effects!");
3128-#endif
3129-
2579+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
31302580 }
31312581 else
31322582 {
@@ -3142,12 +2592,7 @@ note_dies = "
31422592 default:
31432593 {
31442594 if (r_ptr->flags3 & RF3_NO_FEAR)
3145-#ifdef JP
3146- note = "には効果がなかった。";
3147-#else
3148- note = " is unaffected.";
3149-#endif
3150-
2595+ note = _("には効果がなかった。", " is unaffected.");
31512596 else
31522597 set_afraid(p_ptr->afraid + dam);
31532598 }
@@ -3157,12 +2602,7 @@ note_dies = "
31572602 else
31582603 {
31592604 /* No obvious effect */
3160-#ifdef JP
3161-note = "には効果がなかった!";
3162-#else
3163- note = " is unaffected!";
3164-#endif
3165-
2605+ note = _("には効果がなかった。", " is unaffected.");
31662606 obvious = FALSE;
31672607 }
31682608 }
@@ -3170,12 +2610,7 @@ note = "
31702610 {
31712611 if ((dam > 29) && (randint1(100) < dam))
31722612 {
3173-#ifdef JP
3174-note = "があなたに隷属した。";
3175-#else
3176- note = " is in your thrall!";
3177-#endif
3178-
2613+ note = _("があなたに隷属した。", " is in your thrall!");
31792614 set_pet(m_ptr);
31802615 }
31812616 else
@@ -3207,36 +2642,22 @@ note = "
32072642 if (seen) obvious = TRUE;
32082643
32092644 if (r_ptr->flagsr & RFR_RES_ALL)
3210- {
3211-#ifdef JP
3212- note = "には完全な耐性がある!";
3213-#else
3214- note = " is immune.";
3215-#endif
2645+ {
2646+ note = _("には完全な耐性がある!", " is immune.");
32162647 dam = 0;
32172648 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
32182649 break;
32192650 }
32202651 do_stun = (randint1(15) + 1) / (r + 1);
32212652 if (r_ptr->flagsr & RFR_IM_COLD)
3222- {
3223-#ifdef JP
3224- note = "にはかなり耐性がある。";
3225-#else
3226- note = " resists a lot.";
3227-#endif
3228-
2653+ {
2654+ note = _("にはかなり耐性がある!", " resists a lot.");
32292655 dam /= 9;
32302656 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_IM_COLD);
32312657 }
32322658 else if (r_ptr->flags3 & (RF3_HURT_COLD))
32332659 {
3234-#ifdef JP
3235- note = "はひどい痛手をうけた。";
3236-#else
3237- note = " is hit hard.";
3238-#endif
3239-
2660+ note = _("はひどい痛手をうけた。", " is hit hard.");
32402661 dam *= 2;
32412662 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_COLD);
32422663 }
@@ -3250,12 +2671,8 @@ note = "
32502671 if (seen) obvious = TRUE;
32512672
32522673 if (r_ptr->flagsr & RFR_RES_ALL)
3253- {
3254-#ifdef JP
3255- note = "には完全な耐性がある!";
3256-#else
3257- note = " is immune.";
3258-#endif
2674+ {
2675+ note = _("には完全な耐性がある!", " is immune.");
32592676 dam = 0;
32602677 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
32612678 break;
@@ -3268,13 +2685,7 @@ note = "
32682685 if (r_ptr->flags3 & RF3_UNDEAD) r_ptr->r_flags3 |= (RF3_UNDEAD);
32692686 if (r_ptr->flags3 & RF3_NONLIVING) r_ptr->r_flags3 |= (RF3_NONLIVING);
32702687 }
3271-
3272-#ifdef JP
3273- note = "には効果がなかった!";
3274-#else
3275- note = " is unaffected!";
3276-#endif
3277-
2688+ note = _("には効果がなかった。", " is unaffected.");
32782689 obvious = FALSE;
32792690 dam = 0;
32802691 }
@@ -3289,12 +2700,8 @@ note = "
32892700 if (seen) obvious = TRUE;
32902701
32912702 if (r_ptr->flagsr & RFR_RES_ALL)
3292- {
3293-#ifdef JP
3294- note = "には完全な耐性がある!";
3295-#else
3296- note = " is immune.";
3297-#endif
2703+ {
2704+ note = _("には完全な耐性がある!", " is immune.");
32982705 dam = 0;
32992706 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
33002707 break;
@@ -3307,13 +2714,7 @@ note = "
33072714 if (r_ptr->flags3 & RF3_UNDEAD) r_ptr->r_flags3 |= (RF3_UNDEAD);
33082715 if (r_ptr->flags3 & RF3_NONLIVING) r_ptr->r_flags3 |= (RF3_NONLIVING);
33092716 }
3310-
3311-#ifdef JP
3312- note = "には完全な耐性がある。";
3313-#else
3314- note = " is immune.";
3315-#endif
3316-
2717+ note = _("には完全な耐性がある!", " is immune.");
33172718 obvious = FALSE;
33182719 dam = 0;
33192720 }
@@ -3321,13 +2722,8 @@ note = "
33212722 (randint1(888) != 666)) ||
33222723 (((r_ptr->level + randint1(20)) > randint1((caster_lev / 2) + randint1(10))) &&
33232724 randint1(100) != 66))
3324- {
3325-#ifdef JP
3326-note = "には耐性がある!";
3327-#else
3328- note = " resists!";
3329-#endif
3330-
2725+ {
2726+ note = _("には耐性がある!", " resists!");
33312727 obvious = FALSE;
33322728 dam = 0;
33332729 }
@@ -3341,12 +2737,8 @@ note = "
33412737 if (seen) obvious = TRUE;
33422738
33432739 if (r_ptr->flagsr & RFR_RES_ALL)
3344- {
3345-#ifdef JP
3346- note = "には効果がなかった!";
3347-#else
3348- note = " is immune.";
3349-#endif
2740+ {
2741+ note = _("には効果がなかった。", " is unaffected.");
33502742 dam = 0;
33512743 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
33522744 break;
@@ -3358,13 +2750,8 @@ note = "
33582750 if ((r_ptr->flags1 & RF1_UNIQUE) ||
33592751 (r_ptr->flags1 & RF1_QUESTOR) ||
33602752 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
3361- {
3362-#ifdef JP
3363-note = "には効果がなかった。";
3364-#else
3365- note = " is unaffected!";
3366-#endif
3367-
2753+ {
2754+ note = _("には効果がなかった。", " is unaffected.");
33682755 do_poly = FALSE;
33692756 obvious = FALSE;
33702757 }
@@ -3382,12 +2769,8 @@ note = "
33822769 if (seen) obvious = TRUE;
33832770
33842771 if ((p_ptr->inside_arena) || is_pet(m_ptr) || (r_ptr->flags1 & (RF1_UNIQUE | RF1_QUESTOR)) || (r_ptr->flags7 & (RF7_NAZGUL | RF7_UNIQUE2)))
3385- {
3386-#ifdef JP
3387-note = "には効果がなかった。";
3388-#else
3389- note = " is unaffected!";
3390-#endif
2772+ {
2773+ note = _("には効果がなかった。", " is unaffected.");
33912774 }
33922775 else
33932776 {
@@ -3397,12 +2780,7 @@ note = "
33972780 /* Attempt to clone. */
33982781 if (multiply_monster(c_ptr->m_idx, TRUE, 0L))
33992782 {
3400-#ifdef JP
3401-note = "が分裂した!";
3402-#else
3403- note = " spawns!";
3404-#endif
3405-
2783+ note = _("が分裂した!", " spawns!");
34062784 }
34072785 }
34082786
@@ -3423,11 +2801,7 @@ note = "
34232801
34242802 if (m_ptr->maxhp < m_ptr->max_maxhp)
34252803 {
3426-#ifdef JP
3427- if (seen_msg) msg_format("%^sの強さが戻った。", m_name);
3428-#else
3429- if (seen_msg) msg_format("%^s recovers %s vitality.", m_name, m_poss);
3430-#endif
2804+ if (seen_msg) msg_format(_("%^sの強さが戻った。", "%^s recovers %s vitality."), m_name, m_poss);
34312805 m_ptr->maxhp = m_ptr->max_maxhp;
34322806 }
34332807
@@ -3449,29 +2823,17 @@ note = "
34492823 (void)set_monster_csleep(c_ptr->m_idx, 0);
34502824 if (MON_STUNNED(m_ptr))
34512825 {
3452-#ifdef JP
3453- if (seen_msg) msg_format("%^sは朦朧状態から立ち直った。", m_name);
3454-#else
3455- if (seen_msg) msg_format("%^s is no longer stunned.", m_name);
3456-#endif
2826+ if (seen_msg) msg_format(_("%^sは朦朧状態から立ち直った。", "%^s is no longer stunned."), m_name);
34572827 (void)set_monster_stunned(c_ptr->m_idx, 0);
34582828 }
34592829 if (MON_CONFUSED(m_ptr))
34602830 {
3461-#ifdef JP
3462- if (seen_msg) msg_format("%^sは混乱から立ち直った。", m_name);
3463-#else
3464- if (seen_msg) msg_format("%^s is no longer confused.", m_name);
3465-#endif
2831+ if (seen_msg) msg_format(_("%^sは混乱から立ち直った。", "%^s is no longer confused."), m_name);
34662832 (void)set_monster_confused(c_ptr->m_idx, 0);
34672833 }
34682834 if (MON_MONFEAR(m_ptr))
34692835 {
3470-#ifdef JP
3471- if (seen_msg) msg_format("%^sは勇気を取り戻した。", m_name);
3472-#else
3473- if (seen_msg) msg_format("%^s recovers %s courage.", m_name, m_poss);
3474-#endif
2836+ if (seen_msg) msg_format(_("%^sは勇気を取り戻した。", "%^s recovers %s courage."), m_name);
34752837 (void)set_monster_monfear(c_ptr->m_idx, 0);
34762838 }
34772839
@@ -3513,11 +2875,7 @@ note = "
35132875 if (p_ptr->riding == c_ptr->m_idx) p_ptr->redraw |= (PR_UHEALTH);
35142876
35152877 /* Message */
3516-#ifdef JP
3517- note = "は体力を回復したようだ。";
3518-#else
3519- note = " looks healthier.";
3520-#endif
2878+ note = _("は体力を回復したようだ。", " looks healthier.");
35212879
35222880 /* No "real" damage */
35232881 dam = 0;
@@ -3533,11 +2891,7 @@ note = "
35332891 /* Speed up */
35342892 if (set_monster_fast(c_ptr->m_idx, MON_FAST(m_ptr) + 100))
35352893 {
3536-#ifdef JP
3537- note = "の動きが速くなった。";
3538-#else
3539- note = " starts moving faster.";
3540-#endif
2894+ note = _("の動きが速くなった。", " starts moving faster.");
35412895 }
35422896
35432897 if (!who)
@@ -3560,12 +2914,8 @@ note = "
35602914 if (seen) obvious = TRUE;
35612915
35622916 if (r_ptr->flagsr & RFR_RES_ALL)
3563- {
3564-#ifdef JP
3565- note = "には効果がなかった!";
3566-#else
3567- note = " is immune.";
3568-#endif
2917+ {
2918+ note = _("には効果がなかった。", " is unaffected.");
35692919 dam = 0;
35702920 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
35712921 break;
@@ -3573,13 +2923,8 @@ note = "
35732923 /* Powerful monsters can resist */
35742924 if ((r_ptr->flags1 & RF1_UNIQUE) ||
35752925 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
3576- {
3577-#ifdef JP
3578-note = "には効果がなかった!";
3579-#else
3580- note = " is unaffected!";
3581-#endif
3582-
2926+ {
2927+ note = _("には効果がなかった。", " is unaffected.");
35832928 obvious = FALSE;
35842929 }
35852930
@@ -3588,11 +2933,7 @@ note = "
35882933 {
35892934 if (set_monster_slow(c_ptr->m_idx, MON_SLOW(m_ptr) + 50))
35902935 {
3591-#ifdef JP
3592- note = "の動きが遅くなった。";
3593-#else
3594- note = " starts moving slower.";
3595-#endif
2936+ note = _("の動きが遅くなった。", " starts moving slower.");
35962937 }
35972938 }
35982939
@@ -3608,12 +2949,8 @@ note = "
36082949 if (seen) obvious = TRUE;
36092950
36102951 if (r_ptr->flagsr & RFR_RES_ALL)
3611- {
3612-#ifdef JP
3613- note = "には効果がなかった!";
3614-#else
3615- note = " is immune.";
3616-#endif
2952+ {
2953+ note = _("には効果がなかった。", " is unaffected.");
36172954 dam = 0;
36182955 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
36192956 break;
@@ -3628,25 +2965,14 @@ note = "
36282965 {
36292966 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_NO_SLEEP);
36302967 }
3631-
36322968 /* No obvious effect */
3633-#ifdef JP
3634-note = "には効果がなかった!";
3635-#else
3636- note = " is unaffected!";
3637-#endif
3638-
2969+ note = _("には効果がなかった。", " is unaffected.");
36392970 obvious = FALSE;
36402971 }
36412972 else
36422973 {
36432974 /* Go to sleep (much) later */
3644-#ifdef JP
3645-note = "は眠り込んでしまった!";
3646-#else
3647- note = " falls asleep!";
3648-#endif
3649-
2975+ note = _("は眠り込んでしまった!", " falls asleep!");
36502976 do_sleep = 500;
36512977 }
36522978
@@ -3663,11 +2989,7 @@ note = "
36632989
36642990 if (r_ptr->flagsr & RFR_RES_ALL)
36652991 {
3666-#ifdef JP
3667- note = "には効果がなかった!";
3668-#else
3669- note = " is immune.";
3670-#endif
2992+ note = _("には効果がなかった!", " is immune.");
36712993 dam = 0;
36722994 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
36732995 break;
@@ -3676,24 +2998,14 @@ note = "
36762998 if ((r_ptr->flags1 & RF1_UNIQUE) ||
36772999 !(r_ptr->flags3 & RF3_EVIL) ||
36783000 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
3679- {
3680-#ifdef JP
3681-note = "には効果がなかった!";
3682-#else
3683- note = " is unaffected!";
3684-#endif
3685-
3001+ {
3002+ note = _("には効果がなかった。", " is unaffected.");
36863003 obvious = FALSE;
36873004 }
36883005 else
36893006 {
36903007 /* Go to sleep (much) later */
3691-#ifdef JP
3692-note = "は動けなくなった!";
3693-#else
3694- note = " is suspended!";
3695-#endif
3696-
3008+ note = _("は動けなくなった!", " is suspended!");
36973009 do_sleep = 500;
36983010 }
36993011
@@ -3708,12 +3020,8 @@ note = "
37083020 if (seen) obvious = TRUE;
37093021
37103022 if (r_ptr->flagsr & RFR_RES_ALL)
3711- {
3712-#ifdef JP
3713- note = "には効果がなかった!";
3714-#else
3715- note = " is immune.";
3716-#endif
3023+ {
3024+ note = _("には効果がなかった。", " is unaffected.");
37173025 dam = 0;
37183026 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
37193027 break;
@@ -3721,24 +3029,14 @@ note = "
37213029 /* Attempt a saving throw */
37223030 if ((r_ptr->flags1 & RF1_UNIQUE) ||
37233031 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
3724- {
3725-#ifdef JP
3726-note = "には効果がなかった!";
3727-#else
3728- note = " is unaffected!";
3729-#endif
3730-
3032+ {
3033+ note = _("には効果がなかった。", " is unaffected.");
37313034 obvious = FALSE;
37323035 }
37333036 else
37343037 {
37353038 /* Go to sleep (much) later */
3736-#ifdef JP
3737-note = "は動けなくなった!";
3738-#else
3739- note = " is suspended!";
3740-#endif
3741-
3039+ note = _("は動けなくなった!", " is suspended!");
37423040 do_sleep = 500;
37433041 }
37443042
@@ -3767,12 +3065,8 @@ note = "
37673065 if (seen) obvious = TRUE;
37683066
37693067 if ((r_ptr->flagsr & RFR_RES_ALL) || p_ptr->inside_arena)
3770- {
3771-#ifdef JP
3772- note = "には効果がなかった!";
3773-#else
3774- note = " is immune.";
3775-#endif
3068+ {
3069+ note = _("には効果がなかった。", " is unaffected.");
37763070 dam = 0;
37773071 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
37783072 break;
@@ -3795,34 +3089,19 @@ note = "
37953089
37963090 /* Resist */
37973091 /* No obvious effect */
3798-#ifdef JP
3799-note = "には効果がなかった!";
3800-#else
3801- note = " is unaffected!";
3802-#endif
3803-
3092+ note = _("には効果がなかった。", " is unaffected.");
38043093 obvious = FALSE;
38053094
38063095 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
38073096 }
38083097 else if (p_ptr->cursed & TRC_AGGRAVATE)
38093098 {
3810-#ifdef JP
3811-note = "はあなたに敵意を抱いている!";
3812-#else
3813- note = " hates you too much!";
3814-#endif
3815-
3099+ note = _("はあなたに敵意を抱いている!", " hates you too much!");
38163100 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
38173101 }
38183102 else
38193103 {
3820-#ifdef JP
3821-note = "は突然友好的になったようだ!";
3822-#else
3823- note = " suddenly seems friendly!";
3824-#endif
3825-
3104+ note = _("は突然友好的になったようだ!", " suddenly seems friendly!");
38263105 set_pet(m_ptr);
38273106
38283107 chg_virtue(V_INDIVIDUALISM, -1);
@@ -3854,12 +3133,8 @@ note = "
38543133 }
38553134
38563135 if ((r_ptr->flagsr & RFR_RES_ALL) || p_ptr->inside_arena)
3857- {
3858-#ifdef JP
3859- note = "には効果がなかった!";
3860-#else
3861- note = " is immune.";
3862-#endif
3136+ {
3137+ note = _("には効果がなかった。", " is unaffected.");
38633138 dam = 0;
38643139 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
38653140 break;
@@ -3875,33 +3150,18 @@ note = "
38753150 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
38763151 {
38773152 /* No obvious effect */
3878-#ifdef JP
3879-note = "には効果がなかった!";
3880-#else
3881- note = " is unaffected!";
3882-#endif
3883-
3153+ note = _("には効果がなかった。", " is unaffected.");
38843154 obvious = FALSE;
38853155 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
38863156 }
38873157 else if (p_ptr->cursed & TRC_AGGRAVATE)
38883158 {
3889-#ifdef JP
3890-note = "はあなたに敵意を抱いている!";
3891-#else
3892- note = " hates you too much!";
3893-#endif
3894-
3159+ note = _("はあなたに敵意を抱いている!", " hates you too much!");
38953160 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
38963161 }
38973162 else
38983163 {
3899-#ifdef JP
3900-note = "は既にあなたの奴隷だ!";
3901-#else
3902- note = " is in your thrall!";
3903-#endif
3904-
3164+ note = _("は既にあなたの奴隷だ!", " is in your thrall!");
39053165 set_pet(m_ptr);
39063166 }
39073167
@@ -3929,12 +3189,8 @@ note = "
39293189 }
39303190
39313191 if ((r_ptr->flagsr & RFR_RES_ALL) || p_ptr->inside_arena)
3932- {
3933-#ifdef JP
3934- note = "には効果がなかった!";
3935-#else
3936- note = " is immune.";
3937-#endif
3192+ {
3193+ note = _("には効果がなかった。", " is unaffected.");
39383194 dam = 0;
39393195 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
39403196 break;
@@ -3950,33 +3206,19 @@ note = "
39503206 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
39513207 {
39523208 /* No obvious effect */
3953-#ifdef JP
3954-note = "には効果がなかった!";
3955-#else
3956- note = " is unaffected!";
3957-#endif
3209+ note = _("には効果がなかった。", " is unaffected.");
39583210
39593211 obvious = FALSE;
39603212 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
39613213 }
39623214 else if (p_ptr->cursed & TRC_AGGRAVATE)
39633215 {
3964-#ifdef JP
3965-note = "はあなたに敵意を抱いている!";
3966-#else
3967- note = " hates you too much!";
3968-#endif
3969-
3216+ note = _("はあなたに敵意を抱いている!", " hates you too much!");
39703217 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
39713218 }
39723219 else
39733220 {
3974-#ifdef JP
3975-note = "は既にあなたの奴隷だ!";
3976-#else
3977- note = " is in your thrall!";
3978-#endif
3979-
3221+ note = _("は既にあなたの奴隷だ!", " is in your thrall!");
39803222 set_pet(m_ptr);
39813223 }
39823224
@@ -4005,12 +3247,8 @@ note = "
40053247 }
40063248
40073249 if ((r_ptr->flagsr & RFR_RES_ALL) || p_ptr->inside_arena)
4008- {
4009-#ifdef JP
4010- note = "には効果がなかった!";
4011-#else
4012- note = " is immune.";
4013-#endif
3250+ {
3251+ note = _("には効果がなかった。", " is unaffected.");
40143252 dam = 0;
40153253 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
40163254 break;
@@ -4034,33 +3272,19 @@ note = "
40343272
40353273 /* Resist */
40363274 /* No obvious effect */
4037-#ifdef JP
4038-note = "には効果がなかった!";
4039-#else
4040- note = " is unaffected!";
4041-#endif
3275+ note = _("には効果がなかった。", " is unaffected.");
40423276
40433277 obvious = FALSE;
40443278 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
40453279 }
40463280 else if (p_ptr->cursed & TRC_AGGRAVATE)
40473281 {
4048-#ifdef JP
4049-note = "はあなたに敵意を抱いている!";
4050-#else
4051- note = " hates you too much!";
4052-#endif
4053-
3282+ note = _("はあなたに敵意を抱いている!", " hates you too much!");
40543283 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
40553284 }
40563285 else
40573286 {
4058-#ifdef JP
4059-note = "はなついた。";
4060-#else
4061- note = " is tamed!";
4062-#endif
4063-
3287+ note = _("はなついた。", " is tamed!");
40643288 set_pet(m_ptr);
40653289
40663290 if (r_ptr->flags3 & RF3_ANIMAL)
@@ -4095,18 +3319,10 @@ note = "
40953319
40963320 if (r_ptr->flags3 & (RF3_NO_CONF)) dam -= 30;
40973321 if (dam < 1) dam = 1;
4098-#ifdef JP
4099-msg_format("%sを見つめた。",m_name);
4100-#else
4101- msg_format("You stare into %s.", m_name);
4102-#endif
3322+ msg_format(_("%sを見つめた。", "You stare into %s."), m_name);
41033323 if ((r_ptr->flagsr & RFR_RES_ALL) || p_ptr->inside_arena)
4104- {
4105-#ifdef JP
4106- note = "には効果がなかった!";
4107-#else
4108- note = " is immune.";
4109-#endif
3324+ {
3325+ note = _("には効果がなかった。", " is unaffected.");
41103326 dam = 0;
41113327 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
41123328 break;
@@ -4123,33 +3339,19 @@ msg_format("%s
41233339 {
41243340 /* Resist */
41253341 /* No obvious effect */
4126-#ifdef JP
4127-note = "には効果がなかった!";
4128-#else
4129- note = " is unaffected!";
4130-#endif
3342+ note = _("には効果がなかった。", " is unaffected.");
41313343
41323344 obvious = FALSE;
41333345 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
41343346 }
41353347 else if (p_ptr->cursed & TRC_AGGRAVATE)
41363348 {
4137-#ifdef JP
4138-note = "はあなたに敵意を抱いている!";
4139-#else
4140- note = " hates you too much!";
4141-#endif
4142-
3349+ note = _("はあなたに敵意を抱いている!", " hates you too much!");
41433350 if (one_in_(4)) m_ptr->mflag2 |= MFLAG2_NOPET;
41443351 }
41453352 else
41463353 {
4147-#ifdef JP
4148-note = "を支配した。";
4149-#else
4150- note = " is tamed!";
4151-#endif
4152-
3354+ note = _("を支配した。", " is tamed!");
41533355 set_pet(m_ptr);
41543356
41553357 if (r_ptr->flags3 & RF3_ANIMAL)
@@ -4167,12 +3369,8 @@ note = "
41673369 if (seen) obvious = TRUE;
41683370
41693371 if (r_ptr->flagsr & RFR_RES_ALL)
4170- {
4171-#ifdef JP
4172- note = "には効果がなかった!";
4173-#else
4174- note = " is immune.";
4175-#endif
3372+ {
3373+ note = _("には効果がなかった。", " is unaffected.");
41763374 dam = 0;
41773375 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
41783376 break;
@@ -4195,12 +3393,7 @@ note = "
41953393 do_conf = 0;
41963394
41973395 /* No obvious effect */
4198-#ifdef JP
4199-note = "には効果がなかった!";
4200-#else
4201- note = " is unaffected!";
4202-#endif
4203-
3396+ note = _("には効果がなかった。", " is unaffected.");
42043397 obvious = FALSE;
42053398 }
42063399
@@ -4214,12 +3407,8 @@ note = "
42143407 if (seen) obvious = TRUE;
42153408
42163409 if (r_ptr->flagsr & RFR_RES_ALL)
4217- {
4218-#ifdef JP
4219- note = "には効果がなかった!";
4220-#else
4221- note = " is immune.";
4222-#endif
3410+ {
3411+ note = _("には効果がなかった。", " is unaffected.");
42233412 dam = 0;
42243413 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
42253414 break;
@@ -4234,12 +3423,7 @@ note = "
42343423 do_stun = 0;
42353424
42363425 /* No obvious effect */
4237-#ifdef JP
4238-note = "には効果がなかった!";
4239-#else
4240- note = " is unaffected!";
4241-#endif
4242-
3426+ note = _("には効果がなかった。", " is unaffected.");
42433427 obvious = FALSE;
42443428 }
42453429
@@ -4274,14 +3458,8 @@ note = "
42743458 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_LITE);
42753459
42763460 /* Special effect */
4277-#ifdef JP
4278-note = "は光に身をすくめた!";
4279-note_dies = "は光を受けてしぼんでしまった!";
4280-#else
4281- note = " cringes from the light!";
4282- note_dies = " shrivels away in the light!";
4283-#endif
4284-
3461+ note = _("は光に身をすくめた!", " cringes from the light!");
3462+ note_dies = _("は光を受けてしぼんでしまった!", " shrivels away in the light!");
42853463 }
42863464
42873465 /* Normally no damage */
@@ -4302,38 +3480,23 @@ note_dies = "
43023480 if (seen) obvious = TRUE;
43033481
43043482 if (r_ptr->flagsr & RFR_RES_ALL)
4305- {
4306-#ifdef JP
4307- note = "には完全な耐性がある!";
4308-#else
4309- note = " is immune.";
4310-#endif
3483+ {
3484+ note = _("には完全な耐性がある!", " is immune.");
43113485 dam = 0;
43123486 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
43133487 break;
43143488 }
43153489 if (r_ptr->flagsr & RFR_RES_LITE)
4316- {
4317-#ifdef JP
4318- note = "には耐性がある!";
4319-#else
4320- note = " resists.";
4321-#endif
4322-
3490+ {
3491+ note = _("には耐性がある!", " resists!");
43233492 dam *= 2; dam /= (randint1(6)+6);
43243493 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_LITE);
43253494 }
43263495 else if (r_ptr->flags3 & (RF3_HURT_LITE))
43273496 {
43283497 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_LITE);
4329-#ifdef JP
4330- note = "は光に身をすくめた!";
4331- note_dies = "は光を受けてしぼんでしまった!";
4332-#else
4333- note = " cringes from the light!";
4334- note_dies = " shrivels away in the light!";
4335-#endif
4336-
3498+ note = _("は光に身をすくめた!", " cringes from the light!");
3499+ note_dies = _("は光を受けてしぼんでしまった!", " shrivels away in the light!");
43373500 dam *= 2;
43383501 }
43393502 break;
@@ -4346,24 +3509,15 @@ note_dies = "
43463509 if (seen) obvious = TRUE;
43473510
43483511 if (r_ptr->flagsr & RFR_RES_ALL)
4349- {
4350-#ifdef JP
4351- note = "には完全な耐性がある!";
4352-#else
4353- note = " is immune.";
4354-#endif
3512+ {
3513+ note = _("には完全な耐性がある!", " is immune.");
43553514 dam = 0;
43563515 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
43573516 break;
43583517 }
43593518 if (r_ptr->flagsr & RFR_RES_DARK)
4360- {
4361-#ifdef JP
4362- note = "には耐性がある!";
4363-#else
4364- note = " resists.";
4365-#endif
4366-
3519+ {
3520+ note = _("には耐性がある!", " resists!");
43673521 dam *= 2; dam /= (randint1(6)+6);
43683522 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_DARK);
43693523 }
@@ -4388,15 +3542,9 @@ note_dies = "
43883542 /* Memorize the effects */
43893543 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_ROCK);
43903544
4391- /* Cute little message */
4392-#ifdef JP
4393-note = "の皮膚がただれた!";
4394-note_dies = "はドロドロに溶けた!";
4395-#else
4396- note = " loses some skin!";
4397- note_dies = " dissolves!";
4398-#endif
4399-
3545+ /* Cute little message */
3546+ note = _("の皮膚がただれた!", " loses some skin!");
3547+ note_dies = _("はドロドロに溶けた!", " dissolves!");
44003548 }
44013549
44023550 /* Usually, ignore the effects */
@@ -4422,24 +3570,14 @@ note_dies = "
44223570 {
44233571 if ((r_ptr->flags1 & (RF1_UNIQUE)) || (r_ptr->flagsr & RFR_RES_ALL))
44243572 {
4425- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
4426-#ifdef JP
4427-note = "には効果がなかった!";
4428-#else
4429- note = " is unaffected!";
4430-#endif
4431-
3573+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
3574+ note = _("には効果がなかった。", " is unaffected.");
44323575 resists_tele = TRUE;
44333576 }
44343577 else if (r_ptr->level > randint1(100))
44353578 {
4436- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
4437-#ifdef JP
4438-note = "には耐性がある!";
4439-#else
4440- note = " resists!";
4441-#endif
4442-
3579+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
3580+ note = _("には耐性がある!", " resists!");
44433581 resists_tele = TRUE;
44443582 }
44453583 }
@@ -4477,24 +3615,14 @@ note = "
44773615 {
44783616 if ((r_ptr->flags1 & (RF1_UNIQUE)) || (r_ptr->flagsr & RFR_RES_ALL))
44793617 {
4480- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
4481-#ifdef JP
4482-note = "には効果がなかった!";
4483-#else
4484- note = " is unaffected!";
4485-#endif
4486-
3618+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
3619+ note = _("には効果がなかった。", " is unaffected.");
44873620 resists_tele = TRUE;
44883621 }
44893622 else if (r_ptr->level > randint1(100))
44903623 {
4491- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
4492-#ifdef JP
4493-note = "には耐性がある!";
4494-#else
4495- note = " resists!";
4496-#endif
4497-
3624+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
3625+ note = _("には耐性がある!", " resists!");
44983626 resists_tele = TRUE;
44993627 }
45003628 }
@@ -4528,24 +3656,14 @@ note = "
45283656 {
45293657 if ((r_ptr->flags1 & (RF1_UNIQUE)) || (r_ptr->flagsr & RFR_RES_ALL))
45303658 {
4531- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
4532-#ifdef JP
4533- note = "には効果がなかった!";
4534-#else
4535- note = " is unaffected!";
4536-#endif
4537-
3659+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
3660+ note = _("には効果がなかった。", " is unaffected.");
45383661 resists_tele = TRUE;
45393662 }
45403663 else if (r_ptr->level > randint1(100))
45413664 {
4542- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
4543-#ifdef JP
4544- note = "には耐性がある!";
4545-#else
4546- note = " resists!";
4547-#endif
4548-
3665+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= RFR_RES_TELE;
3666+ note = _("には耐性がある!", " resists!");
45493667 resists_tele = TRUE;
45503668 }
45513669 }
@@ -4589,12 +3707,7 @@ note = "
45893707 if (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10)
45903708 {
45913709 /* No obvious effect */
4592-#ifdef JP
4593- note = "には効果がなかった!";
4594-#else
4595- note = " is unaffected!";
4596-#endif
4597-
3710+ note = _("には効果がなかった。", " is unaffected.");
45983711 obvious = FALSE;
45993712 do_fear = 0;
46003713 }
@@ -4637,12 +3750,7 @@ note = "
46373750 if (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10)
46383751 {
46393752 /* No obvious effect */
4640-#ifdef JP
4641- note = "には効果がなかった!";
4642-#else
4643- note = " is unaffected!";
4644-#endif
4645-
3753+ note = _("には効果がなかった。", " is unaffected.");
46463754 obvious = FALSE;
46473755 do_fear = 0;
46483756 }
@@ -4681,12 +3789,7 @@ note = "
46813789 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
46823790 {
46833791 /* No obvious effect */
4684-#ifdef JP
4685-note = "には効果がなかった!";
4686-#else
4687- note = " is unaffected!";
4688-#endif
4689-
3792+ note = _("には効果がなかった。", " is unaffected.");
46903793 obvious = FALSE;
46913794 do_fear = 0;
46923795 }
@@ -4716,13 +3819,8 @@ note = "
47163819 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_UNDEAD);
47173820
47183821 /* Message */
4719-#ifdef JP
4720- note = "は身震いした。";
4721- note_dies = "はドロドロに溶けた!";
4722-#else
4723- note = " shudders.";
4724- note_dies = " dissolves!";
4725-#endif
3822+ note = _("は身震いした。", " shudders.");
3823+ note_dies = _("はドロドロに溶けた!", " dissolves!");
47263824 }
47273825
47283826 /* Others ignore */
@@ -4758,13 +3856,8 @@ note = "
47583856 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_EVIL);
47593857
47603858 /* Message */
4761-#ifdef JP
4762- note = "は身震いした。";
4763- note_dies = "はドロドロに溶けた!";
4764-#else
4765- note = " shudders.";
4766- note_dies = " dissolves!";
4767-#endif
3859+ note = _("は身震いした。", " shudders.");
3860+ note_dies = _("はドロドロに溶けた!", " dissolves!");
47683861 }
47693862
47703863 /* Others ignore */
@@ -4799,13 +3892,8 @@ note = "
47993892 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_GOOD);
48003893
48013894 /* Message */
4802-#ifdef JP
4803- note = "は身震いした。";
4804- note_dies = "はドロドロに溶けた!";
4805-#else
4806- note = " shudders.";
4807- note_dies = " dissolves!";
4808-#endif
3895+ note = _("は身震いした。", " shudders.");
3896+ note_dies = _("はドロドロに溶けた!", " dissolves!");
48093897 }
48103898
48113899 /* Others ignore */
@@ -4837,14 +3925,8 @@ note = "
48373925 if (seen) obvious = TRUE;
48383926
48393927 /* Message */
4840-#ifdef JP
4841-note = "は身震いした。";
4842-note_dies = "はドロドロに溶けた!";
4843-#else
4844- note = " shudders.";
4845- note_dies = " dissolves!";
4846-#endif
4847-
3928+ note = _("は身震いした。", " shudders.");
3929+ note_dies = _("はドロドロに溶けた!", " dissolves!");
48483930 }
48493931
48503932 /* Others ignore */
@@ -4879,13 +3961,8 @@ note_dies = "
48793961 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_DEMON);
48803962
48813963 /* Message */
4882-#ifdef JP
4883- note = "は身震いした。";
4884- note_dies = "はドロドロに溶けた!";
4885-#else
4886- note = " shudders.";
4887- note_dies = " dissolves!";
4888-#endif
3964+ note = _("は身震いした。", " shudders.");
3965+ note_dies = _("はドロドロに溶けた!", " dissolves!");
48893966 }
48903967
48913968 /* Others ignore */
@@ -4914,15 +3991,8 @@ note_dies = "
49143991 if (seen) obvious = TRUE;
49153992
49163993 /* Message */
4917-#ifdef JP
4918-note = "は身震いした。";
4919-note_dies = "はドロドロに溶けた!";
4920-#else
4921- note = " shudders.";
4922- note_dies = " dissolves!";
4923-#endif
4924-
4925-
3994+ note = _("は身震いした。", " shudders.");
3995+ note_dies = _("はドロドロに溶けた!", " dissolves!");
49263996 break;
49273997 }
49283998
@@ -4932,12 +4002,8 @@ note_dies = "
49324002 if (seen) obvious = TRUE;
49334003
49344004 if (r_ptr->flagsr & RFR_RES_ALL)
4935- {
4936-#ifdef JP
4937- note = "には完全な耐性がある!";
4938-#else
4939- note = " is immune.";
4940-#endif
4005+ {
4006+ note = _("には完全な耐性がある!", " is immune.");
49414007 skipped = TRUE;
49424008 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
49434009 break;
@@ -4963,33 +4029,20 @@ note_dies = "
49634029 {
49644030 /* Get the monster name */
49654031 monster_desc(killer, caster_ptr, 0);
4966-#ifdef JP
4967- msg_format("%^sは気分が良さそうだ。", killer);
4968-#else
4969- msg_format("%^s appears healthier.", killer);
4970-#endif
4032+ msg_format(_("%^sは気分が良さそうだ。", "%^s appears healthier."), killer);
49714033 }
49724034 }
49734035 }
49744036 else
49754037 {
49764038 /* Message */
4977-#ifdef JP
4978- msg_format("%sから精神エネルギーを吸いとった。", m_name);
4979-#else
4980- msg_format("You draw psychic energy from %s.", m_name);
4981-#endif
4982-
4039+ msg_format(_("%sから精神エネルギーを吸いとった。", "You draw psychic energy from %s."), m_name);
49834040 (void)hp_player(dam);
49844041 }
49854042 }
49864043 else
49874044 {
4988-#ifdef JP
4989- if (see_s_msg) msg_format("%sには効果がなかった。", m_name);
4990-#else
4991- if (see_s_msg) msg_format("%s is unaffected.", m_name);
4992-#endif
4045+ if (see_s_msg) msg_format(_("%sには効果がなかった。", "%s is unaffected."), m_name);
49934046 }
49944047 dam = 0;
49954048 break;
@@ -5000,19 +4053,11 @@ note_dies = "
50004053 {
50014054 if (seen) obvious = TRUE;
50024055 /* Message */
5003-#ifdef JP
5004- if (!who) msg_format("%sをじっと睨んだ。", m_name);
5005-#else
5006- if (!who) msg_format("You gaze intently at %s.", m_name);
5007-#endif
4056+ if (!who) msg_format(_("%sをじっと睨んだ。", "You gaze intently at %s."), m_name);
50084057
50094058 if (r_ptr->flagsr & RFR_RES_ALL)
5010- {
5011-#ifdef JP
5012- note = "には完全な耐性がある!";
5013-#else
5014- note = " is immune.";
5015-#endif
4059+ {
4060+ note = _("には完全な耐性がある!", " is immune.");
50164061 skipped = TRUE;
50174062 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
50184063 break;
@@ -5027,43 +4072,26 @@ note_dies = "
50274072 if (r_ptr->flags3 & (RF3_NO_CONF))
50284073 {
50294074 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_NO_CONF);
5030- }
5031-#ifdef JP
5032- note = "には効果がなかった。";
5033-#else
5034- note = "is unaffected!";
5035-#endif
4075+ }
4076+ note = _("には効果がなかった。", " is unaffected.");
50364077 dam = 0;
50374078 }
50384079 else if (r_ptr->flags2 & RF2_EMPTY_MIND)
50394080 {
5040- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_EMPTY_MIND);
5041-#ifdef JP
5042- note = "には完全な耐性がある!";
5043-#else
5044- note = " is immune!";
5045-#endif
4081+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_EMPTY_MIND);
4082+ note = _("には完全な耐性がある!", " is immune.");
50464083 dam = 0;
50474084 }
50484085 else if (r_ptr->flags2 & RF2_WEIRD_MIND)
50494086 {
50504087 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_WEIRD_MIND);
5051-#ifdef JP
5052- note = "には耐性がある。";
5053-#else
5054- note = " resists.";
5055-#endif
4088+ note = _("には耐性がある。", " resists.");
50564089 dam /= 3;
50574090 }
50584091 else
50594092 {
5060-#ifdef JP
5061- note = "は精神攻撃を食らった。";
5062- note_dies = "の精神は崩壊し、肉体は抜け殻となった。";
5063-#else
5064- note = " is blasted by psionic energy.";
5065- note_dies = " collapses, a mindless husk.";
5066-#endif
4093+ note = _("は精神攻撃を食らった。", " is blasted by psionic energy.");
4094+ note_dies = _("の精神は崩壊し、肉体は抜け殻となった。", " collapses, a mindless husk.");
50674095
50684096 if (who > 0) do_conf = randint0(4) + 4;
50694097 else do_conf = randint0(8) + 8;
@@ -5076,19 +4104,11 @@ note_dies = "
50764104 {
50774105 if (seen) obvious = TRUE;
50784106 /* Message */
5079-#ifdef JP
5080- if (!who) msg_format("%sをじっと睨んだ。", m_name);
5081-#else
5082- if (!who) msg_format("You gaze intently at %s.", m_name);
5083-#endif
4107+ if (!who) msg_format(_("%sをじっと睨んだ。", "You gaze intently at %s."), m_name);
50844108
50854109 if (r_ptr->flagsr & RFR_RES_ALL)
5086- {
5087-#ifdef JP
5088- note = "には完全な耐性がある!";
5089-#else
5090- note = " is immune.";
5091-#endif
4110+ {
4111+ note = _("には完全な耐性がある!", " is immune.");
50924112 skipped = TRUE;
50934113 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
50944114 break;
@@ -5103,43 +4123,26 @@ note_dies = "
51034123 if (r_ptr->flags3 & (RF3_NO_CONF))
51044124 {
51054125 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_NO_CONF);
5106- }
5107-#ifdef JP
5108- note = "には効果がなかった。";
5109-#else
5110- note = "is unaffected!";
5111-#endif
4126+ }
4127+ note = _("には効果がなかった。", " is unaffected.");
51124128 dam = 0;
51134129 }
51144130 else if (r_ptr->flags2 & RF2_EMPTY_MIND)
51154131 {
5116- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_EMPTY_MIND);
5117-#ifdef JP
5118- note = "には完全な耐性がある!";
5119-#else
5120- note = " is immune!";
5121-#endif
4132+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_EMPTY_MIND);
4133+ note = _("には完全な耐性がある!", " is immune.");
51224134 dam = 0;
51234135 }
51244136 else if (r_ptr->flags2 & RF2_WEIRD_MIND)
51254137 {
5126- if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_WEIRD_MIND);
5127-#ifdef JP
5128- note = "には耐性がある。";
5129-#else
5130- note = " resists.";
5131-#endif
4138+ if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_WEIRD_MIND);
4139+ note = _("には耐性がある!", " resists!");
51324140 dam /= 3;
51334141 }
51344142 else
51354143 {
5136-#ifdef JP
5137- note = "は精神攻撃を食らった。";
5138- note_dies = "の精神は崩壊し、肉体は抜け殻となった。";
5139-#else
5140- note = " is blasted by psionic energy.";
5141- note_dies = " collapses, a mindless husk.";
5142-#endif
4144+ note = _("は精神攻撃を食らった。", " is blasted by psionic energy.");
4145+ note_dies = _("の精神は崩壊し、肉体は抜け殻となった。", " collapses, a mindless husk.");
51434146
51444147 if (who > 0)
51454148 {
@@ -5161,19 +4164,11 @@ note_dies = "
51614164 {
51624165 if (seen) obvious = TRUE;
51634166 /* Message */
5164-#ifdef JP
5165- if (!who) msg_format("%sを指差して呪いをかけた。", m_name);
5166-#else
5167- if (!who) msg_format("You point at %s and curse.", m_name);
5168-#endif
4167+ if (!who) msg_format(_("%sを指差して呪いをかけた。", "You point at %s and curse."), m_name);
51694168
51704169 if (r_ptr->flagsr & RFR_RES_ALL)
5171- {
5172-#ifdef JP
5173- note = "には完全な耐性がある!";
5174-#else
5175- note = " is immune.";
5176-#endif
4170+ {
4171+ note = _("には完全な耐性がある!", " is immune.");
51774172 skipped = TRUE;
51784173 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
51794174 break;
@@ -5181,12 +4176,8 @@ note_dies = "
51814176
51824177 /* Attempt a saving throw */
51834178 if (randint0(100 + (caster_lev / 2)) < (r_ptr->level + 35))
5184- {
5185-#ifdef JP
5186- note = "には効果がなかった。";
5187-#else
5188- note = "is unaffected!";
5189-#endif
4179+ {
4180+ note = _("には効果がなかった。", " is unaffected.");
51904181 dam = 0;
51914182 }
51924183 break;
@@ -5197,19 +4188,11 @@ note_dies = "
51974188 {
51984189 if (seen) obvious = TRUE;
51994190 /* Message */
5200-#ifdef JP
5201- if (!who) msg_format("%sを指差して恐ろしげに呪いをかけた。", m_name);
5202-#else
5203- if (!who) msg_format("You point at %s and curse horribly.", m_name);
5204-#endif
4191+ if (!who) msg_format(_("%sを指差して恐ろしげに呪いをかけた。", "You point at %s and curse horribly."), m_name);
52054192
52064193 if (r_ptr->flagsr & RFR_RES_ALL)
5207- {
5208-#ifdef JP
5209- note = "には完全な耐性がある!";
5210-#else
5211- note = " is immune.";
5212-#endif
4194+ {
4195+ note = _("には完全な耐性がある!", " is immune.");
52134196 skipped = TRUE;
52144197 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
52154198 break;
@@ -5217,12 +4200,8 @@ note_dies = "
52174200
52184201 /* Attempt a saving throw */
52194202 if (randint0(100 + (caster_lev / 2)) < (r_ptr->level + 35))
5220- {
5221-#ifdef JP
5222- note = "には効果がなかった。";
5223-#else
5224- note = "is unaffected!";
5225-#endif
4203+ {
4204+ note = _("には効果がなかった。", " is unaffected.");
52264205 dam = 0;
52274206 }
52284207 break;
@@ -5233,19 +4212,11 @@ note_dies = "
52334212 {
52344213 if (seen) obvious = TRUE;
52354214 /* Message */
5236-#ifdef JP
5237- if (!who) msg_format("%sを指差し、恐ろしげに呪文を唱えた!", m_name);
5238-#else
5239- if (!who) msg_format("You point at %s, incanting terribly!", m_name);
5240-#endif
4215+ if (!who) msg_format(_("%sを指差し、恐ろしげに呪文を唱えた!", "You point at %s, incanting terribly!"), m_name);
52414216
52424217 if (r_ptr->flagsr & RFR_RES_ALL)
5243- {
5244-#ifdef JP
5245- note = "には完全な耐性がある!";
5246-#else
5247- note = " is immune.";
5248-#endif
4218+ {
4219+ note = _("には完全な耐性がある!", " is immune.");
52494220 skipped = TRUE;
52504221 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
52514222 break;
@@ -5253,12 +4224,8 @@ note_dies = "
52534224
52544225 /* Attempt a saving throw */
52554226 if (randint0(100 + (caster_lev / 2)) < (r_ptr->level + 35))
5256- {
5257-#ifdef JP
5258- note = "には効果がなかった。";
5259-#else
5260- note = "is unaffected!";
5261-#endif
4227+ {
4228+ note = _("には効果がなかった。", " is unaffected.");
52624229 dam = 0;
52634230 }
52644231 break;
@@ -5269,19 +4236,13 @@ note_dies = "
52694236 {
52704237 if (seen) obvious = TRUE;
52714238 /* Message */
5272-#ifdef JP
5273- if (!who) msg_format("%sの秘孔を突いて、「お前は既に死んでいる」と叫んだ。", m_name);
5274-#else
5275- if (!who) msg_format("You point at %s, screaming the word, 'DIE!'.", m_name);
5276-#endif
4239+ if (!who)
4240+ msg_format(_("%sの秘孔を突いて、「お前は既に死んでいる」と叫んだ。",
4241+ "You point at %s, screaming the word, 'DIE!'."), m_name);
52774242
52784243 if (r_ptr->flagsr & RFR_RES_ALL)
5279- {
5280-#ifdef JP
5281- note = "には完全な耐性がある!";
5282-#else
5283- note = " is immune.";
5284-#endif
4244+ {
4245+ note = _("には完全な耐性がある!", " is immune.");
52854246 skipped = TRUE;
52864247 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
52874248 break;
@@ -5289,12 +4250,8 @@ note_dies = "
52894250
52904251 /* Attempt a saving throw */
52914252 if ((randint0(100 + (caster_lev / 2)) < (r_ptr->level + 35)) && ((who <= 0) || (caster_ptr->r_idx != MON_KENSHIROU)))
5292- {
5293-#ifdef JP
5294- note = "には効果がなかった。";
5295-#else
5296- note = "is unaffected!";
5297-#endif
4253+ {
4254+ note = _("には効果がなかった。", " is unaffected.");
52984255 dam = 0;
52994256 }
53004257 break;
@@ -5306,24 +4263,16 @@ note_dies = "
53064263 if (seen) obvious = TRUE;
53074264
53084265 if (r_ptr->flagsr & RFR_RES_ALL)
5309- {
5310-#ifdef JP
5311- note = "には完全な耐性がある!";
5312-#else
5313- note = " is immune.";
5314-#endif
4266+ {
4267+ note = _("には完全な耐性がある!", " is immune.");
53154268 skipped = TRUE;
53164269 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
53174270 break;
53184271 }
53194272
53204273 if (r_ptr->flags1 & RF1_UNIQUE)
5321- {
5322-#ifdef JP
5323- note = "には効果がなかった!";
5324-#else
5325- note = "is unaffected!";
5326-#endif
4274+ {
4275+ note = _("には効果がなかった。", " is unaffected.");
53274276 dam = 0;
53284277 }
53294278 else
@@ -5337,11 +4286,7 @@ note_dies = "
53374286 }
53384287 else
53394288 {
5340-#ifdef JP
5341- note = "は耐性を持っている!";
5342-#else
5343- note = "resists!";
5344-#endif
4289+ note = _("は耐性を持っている!", "resists!");
53454290 dam = 0;
53464291 }
53474292 }
@@ -5354,12 +4299,8 @@ note_dies = "
53544299 int nokori_hp;
53554300 if ((p_ptr->inside_quest && (quest[p_ptr->inside_quest].type == QUEST_TYPE_KILL_ALL) && !is_pet(m_ptr)) ||
53564301 (r_ptr->flags1 & (RF1_UNIQUE)) || (r_ptr->flags7 & (RF7_NAZGUL)) || (r_ptr->flags7 & (RF7_UNIQUE2)) || (r_ptr->flags1 & RF1_QUESTOR) || m_ptr->parent_m_idx)
5357- {
5358-#ifdef JP
5359- msg_format("%sには効果がなかった。",m_name);
5360-#else
5361- msg_format("%^s is unaffected.", m_name);
5362-#endif
4302+ {
4303+ msg_format(_("%sには効果がなかった。", "%s is unaffected."), m_name);
53634304 skipped = TRUE;
53644305 break;
53654306 }
@@ -5372,21 +4313,13 @@ note_dies = "
53724313
53734314 if (m_ptr->hp >= nokori_hp)
53744315 {
5375-#ifdef JP
5376- msg_format("もっと弱らせないと。");
5377-#else
5378- msg_format("You need to weaken %s more.", m_name);
5379-#endif
4316+ msg_format(_("もっと弱らせないと。", "You need to weaken %s more."), m_name);
53804317 skipped = TRUE;
53814318 }
53824319 else if (m_ptr->hp < randint0(nokori_hp))
53834320 {
53844321 if (m_ptr->mflag2 & MFLAG2_CHAMELEON) choose_new_monster(c_ptr->m_idx, FALSE, MON_CHAMELEON);
5385-#ifdef JP
5386- msg_format("%sを捕えた!",m_name);
5387-#else
5388- msg_format("You capture %^s!", m_name);
5389-#endif
4322+ msg_format(_("%sを捕えた!", "You capture %^s!"), m_name);
53904323 cap_mon = m_ptr->r_idx;
53914324 cap_mspeed = m_ptr->mspeed;
53924325 cap_hp = m_ptr->hp;
@@ -5396,11 +4329,7 @@ note_dies = "
53964329 {
53974330 if (rakuba(-1, FALSE))
53984331 {
5399-#ifdef JP
5400- msg_print("地面に落とされた。");
5401-#else
5402- msg_format("You have fallen from %s.", m_name);
5403-#endif
4332+ msg_format(_("地面に落とされた。", "You have fallen from %s."), m_name);
54044333 }
54054334 }
54064335
@@ -5410,11 +4339,7 @@ note_dies = "
54104339 }
54114340 else
54124341 {
5413-#ifdef JP
5414-msg_format("うまく捕まえられなかった。");
5415-#else
5416- msg_format("You failed to capture %s.", m_name);
5417-#endif
4342+ msg_format(_("うまく捕まえられなかった。", "You failed to capture %s."), m_name);
54184343 skipped = TRUE;
54194344 }
54204345 break;
@@ -5436,35 +4361,23 @@ msg_format("
54364361 if (seen) obvious = TRUE;
54374362
54384363 if (r_ptr->flagsr & RFR_RES_ALL)
5439- {
5440-#ifdef JP
5441- note = "には効果がなかった!";
5442-#else
5443- note = " is immune.";
5444-#endif
4364+ {
4365+ note = _("には効果がなかった。", " is unaffected.");
54454366 dam = 0;
54464367 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
54474368 break;
54484369 }
54494370 if (r_ptr->flags2 & RF2_EMPTY_MIND)
5450- {
5451-#ifdef JP
5452- note = "には効果がなかった!";
5453-#else
5454- note = " is immune!";
5455-#endif
4371+ {
4372+ note = _("には効果がなかった。", " is unaffected.");
54564373 dam = 0;
54574374 skipped = TRUE;
54584375 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags2 |= (RF2_EMPTY_MIND);
54594376 break;
54604377 }
54614378 if (MON_CSLEEP(m_ptr))
5462- {
5463-#ifdef JP
5464- note = "には効果がなかった!";
5465-#else
5466- note = " is immune!";
5467-#endif
4379+ {
4380+ note = _("には効果がなかった。", " is unaffected.");
54684381 dam = 0;
54694382 skipped = TRUE;
54704383 break;
@@ -5480,13 +4393,8 @@ msg_format("
54804393 /* Powerful monsters can resist */
54814394 if ((r_ptr->flags1 & RF1_UNIQUE) ||
54824395 (r_ptr->level > randint1((dam - 10) < 1 ? 1 : (dam - 10)) + 10))
5483- {
5484-#ifdef JP
5485- note = "には効果がなかった!";
5486-#else
5487- note = " is unaffected!";
5488-#endif
5489-
4396+ {
4397+ note = _("には効果がなかった。", " is unaffected.");
54904398 obvious = FALSE;
54914399 }
54924400
@@ -5495,11 +4403,7 @@ msg_format("
54954403 {
54964404 if (set_monster_slow(c_ptr->m_idx, MON_SLOW(m_ptr) + 50))
54974405 {
5498-#ifdef JP
5499- note = "の動きが遅くなった。";
5500-#else
5501- note = " starts moving slower.";
5502-#endif
4406+ note = _("の動きが遅くなった。", " starts moving slower.");
55034407 }
55044408 }
55054409 }
@@ -5516,12 +4420,7 @@ msg_format("
55164420 do_stun = 0;
55174421
55184422 /* No obvious effect */
5519-#ifdef JP
5520-note = "には効果がなかった!";
5521-#else
5522- note = " is unaffected!";
5523-#endif
5524-
4423+ note = _("には効果がなかった。", " is unaffected.");
55254424 obvious = FALSE;
55264425 }
55274426 }
@@ -5540,34 +4439,20 @@ note = "
55404439 }
55414440
55424441 /* No obvious effect */
5543-#ifdef JP
5544-note = "には効果がなかった!";
5545-#else
5546- note = " is unaffected!";
5547-#endif
5548-
4442+ note = _("には効果がなかった。", " is unaffected.");
55494443 obvious = FALSE;
55504444 }
55514445 else
55524446 {
55534447 /* Go to sleep (much) later */
5554-#ifdef JP
5555-note = "は眠り込んでしまった!";
5556-#else
5557- note = " falls asleep!";
5558-#endif
5559-
4448+ note = _("は眠り込んでしまった!", " falls asleep!");
55604449 do_sleep = 500;
55614450 }
55624451 }
55634452
55644453 if (!done)
5565- {
5566-#ifdef JP
5567-note = "には効果がなかった!";
5568-#else
5569- note = " is immune!";
5570-#endif
4454+ {
4455+ note = _("には効果がなかった。", " is unaffected.");
55714456 }
55724457
55734458 /* No "real" damage */
@@ -5581,28 +4466,16 @@ note = "
55814466 if (seen) obvious = TRUE;
55824467
55834468 if (r_ptr->flagsr & RFR_RES_ALL)
5584- {
5585-#ifdef JP
5586- note = "には効果がなかった!";
5587-#else
5588- note = " is immune.";
5589-#endif
4469+ {
4470+ note = _("には効果がなかった。", " is unaffected.");
55904471 skipped = TRUE;
55914472 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
55924473 break;
55934474 }
55944475
5595-#ifdef JP
5596- if (genocide_aux(c_ptr->m_idx, dam, !who, (r_ptr->level + 1) / 2, "モンスター消滅"))
5597-#else
5598- if (genocide_aux(c_ptr->m_idx, dam, !who, (r_ptr->level + 1) / 2, "Genocide One"))
5599-#endif
4476+ if (genocide_aux(c_ptr->m_idx, dam, !who, (r_ptr->level + 1) / 2, _("モンスター消滅", "Genocide One")))
56004477 {
5601-#ifdef JP
5602- if (seen_msg) msg_format("%sは消滅した!", m_name);
5603-#else
5604- if (seen_msg) msg_format("%^s disappered!", m_name);
5605-#endif
4478+ if (seen_msg) msg_format(_("%sは消滅した!", "%^s disappered!"), m_name);
56064479 chg_virtue(V_VITALITY, -1);
56074480 return TRUE;
56084481 }
@@ -5613,11 +4486,7 @@ note = "
56134486
56144487 case GF_PHOTO:
56154488 {
5616-#ifdef JP
5617- if (!who) msg_format("%sを写真に撮った。", m_name);
5618-#else
5619- if (!who) msg_format("You take a photograph of %s.", m_name);
5620-#endif
4489+ if (!who) msg_format(_("%sを写真に撮った。", "You take a photograph of %s."), m_name);
56214490 /* Hurt by light */
56224491 if (r_ptr->flags3 & (RF3_HURT_LITE))
56234492 {
@@ -5628,13 +4497,8 @@ note = "
56284497 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flags3 |= (RF3_HURT_LITE);
56294498
56304499 /* Special effect */
5631-#ifdef JP
5632- note = "は光に身をすくめた!";
5633- note_dies = "は光を受けてしぼんでしまった!";
5634-#else
5635- note = " cringes from the light!";
5636- note_dies = " shrivels away in the light!";
5637-#endif
4500+ note = _("は光に身をすくめた!", " cringes from the light!");
4501+ note_dies = _("は光を受けてしぼんでしまった!", " shrivels away in the light!");
56384502 }
56394503
56404504 /* Normally no damage */
@@ -5656,12 +4520,8 @@ note = "
56564520 if (seen) obvious = TRUE;
56574521
56584522 if (r_ptr->flagsr & RFR_RES_ALL)
5659- {
5660-#ifdef JP
5661- note = "には完全な耐性がある!";
5662-#else
5663- note = " is immune.";
5664-#endif
4523+ {
4524+ note = _("には完全な耐性がある!", " is immune.");
56654525 dam = 0;
56664526 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
56674527 break;
@@ -5682,12 +4542,7 @@ note = "
56824542 /* No need to tame your pet */
56834543 if (is_pet(m_ptr))
56844544 {
5685-#ifdef JP
5686- note = "の動きが速くなった。";
5687-#else
5688- note = " starts moving faster.";
5689-#endif
5690-
4545+ note = _("の動きが速くなった。", " starts moving faster.");
56914546 (void)set_monster_fast(c_ptr->m_idx, MON_FAST(m_ptr) + 100);
56924547 success = TRUE;
56934548 }
@@ -5704,12 +4559,7 @@ note = "
57044559 }
57054560 else
57064561 {
5707-#ifdef JP
5708- note = "を支配した。";
5709-#else
5710- note = " is tamed!";
5711-#endif
5712-
4562+ note = _("を支配した。", " is tamed!");
57134563 set_pet(m_ptr);
57144564 (void)set_monster_fast(c_ptr->m_idx, MON_FAST(m_ptr) + 100);
57154565
@@ -5738,12 +4588,8 @@ note = "
57384588 if (seen) obvious = TRUE;
57394589
57404590 if (r_ptr->flagsr & RFR_RES_ALL)
5741- {
5742-#ifdef JP
5743- note = "には完全な耐性がある!";
5744-#else
5745- note = " is immune.";
5746-#endif
4591+ {
4592+ note = _("には完全な耐性がある!", " is immune.");
57474593 skipped = TRUE;
57484594 if (is_original_ap_and_seen(m_ptr)) r_ptr->r_flagsr |= (RFR_RES_ALL);
57494595 break;
@@ -5751,13 +4597,8 @@ note = "
57514597
57524598 /* Attempt a saving throw */
57534599 if (randint0(100 + dam) < (r_ptr->level + 50))
5754- {
5755-
5756-#ifdef JP
5757-note = "には効果がなかった。";
5758-#else
5759- note = "is unaffected!";
5760-#endif
4600+ {
4601+ note = _("には効果がなかった。", " is unaffected.");
57614602 dam = 0;
57624603 }
57634604 break;
@@ -5803,11 +4644,7 @@ note = "
58034644 /* Modify the damage */
58044645 tmp = dam;
58054646 dam = mon_damage_mod(m_ptr, dam, (bool)(typ == GF_PSY_SPEAR));
5806-#ifdef JP
5807- if ((tmp > 0) && (dam == 0)) note = "はダメージを受けていない。";
5808-#else
5809- if ((tmp > 0) && (dam == 0)) note = " is unharmed.";
5810-#endif
4647+ if ((tmp > 0) && (dam == 0)) note = _("はダメージを受けていない。", " is unharmed.");
58114648
58124649 /* Check for death */
58134650 if (dam > m_ptr->hp)
@@ -5828,22 +4665,12 @@ note = "
58284665 /* Get stunned */
58294666 if (MON_STUNNED(m_ptr))
58304667 {
5831-#ifdef JP
5832- note = "はひどくもうろうとした。";
5833-#else
5834- note = " is more dazed.";
5835-#endif
5836-
5837- tmp = MON_STUNNED(m_ptr) + (do_stun / 2);
4668+ note = _("はひどくもうろうとした。", " is more dazed.");
4669+ tmp = MON_STUNNED(m_ptr) + (do_stun / 2);
58384670 }
58394671 else
58404672 {
5841-#ifdef JP
5842- note = "はもうろうとした。";
5843-#else
5844- note = " is dazed.";
5845-#endif
5846-
4673+ note = _("はもうろうとした。", " is dazed.");
58474674 tmp = do_stun;
58484675 }
58494676
@@ -5865,24 +4692,14 @@ note = "
58654692 /* Already partially confused */
58664693 if (MON_CONFUSED(m_ptr))
58674694 {
5868-#ifdef JP
5869- note = "はさらに混乱したようだ。";
5870-#else
5871- note = " looks more confused.";
5872-#endif
5873-
4695+ note = _("はさらに混乱したようだ。", " looks more confused.");
58744696 tmp = MON_CONFUSED(m_ptr) + (do_conf / 2);
58754697 }
58764698
58774699 /* Was not confused */
58784700 else
58794701 {
5880-#ifdef JP
5881- note = "は混乱したようだ。";
5882-#else
5883- note = " looks confused.";
5884-#endif
5885-
4702+ note = _("は混乱したようだ。", " looks confused.");
58864703 tmp = do_conf;
58874704 }
58884705
@@ -5902,11 +4719,7 @@ note = "
59024719
59034720 if (do_time)
59044721 {
5905-#ifdef JP
5906- note = "は弱くなったようだ。";
5907-#else
5908- note = " seems weakened.";
5909-#endif
4722+ note = _("は弱くなったようだ。", " seems weakened.");
59104723 m_ptr->maxhp -= do_time;
59114724 if ((m_ptr->hp - dam) > m_ptr->maxhp) dam = m_ptr->hp - m_ptr->maxhp;
59124725 }
@@ -5922,11 +4735,7 @@ note = "
59224735 if (seen) obvious = TRUE;
59234736
59244737 /* Monster polymorphs */
5925-#ifdef JP
5926- note = "が変身した!";
5927-#else
5928- note = " changes!";
5929-#endif
4738+ note = _("が変身した!", " changes!");
59304739
59314740 /* Turn off the damage */
59324741 dam = 0;
@@ -5934,11 +4743,7 @@ note = "
59344743 else
59354744 {
59364745 /* No polymorph */
5937-#ifdef JP
5938- note = "には効果がなかった!";
5939-#else
5940- note = " is unaffected!";
5941-#endif
4746+ note = _("には効果がなかった。", " is unaffected.");
59424747 }
59434748
59444749 /* Hack -- Get new monster */
@@ -5955,11 +4760,7 @@ note = "
59554760 if (seen) obvious = TRUE;
59564761
59574762 /* Message */
5958-#ifdef JP
5959- note = "が消え去った!";
5960-#else
5961- note = " disappears!";
5962-#endif
4763+ note = _("が消え去った!", " disappears!");
59634764
59644765 if (!who) chg_virtue(V_VALOUR, -1);
59654766
@@ -6036,11 +4837,7 @@ note = "
60364837
60374838 if (sad)
60384839 {
6039-#ifdef JP
6040- msg_print("少し悲しい気分がした。");
6041-#else
6042- msg_print("You feel sad for a moment.");
6043-#endif
4840+ msg_print(_("少し悲しい気分がした。", "You feel sad for a moment."));
60444841 }
60454842 }
60464843
@@ -6067,11 +4864,7 @@ note = "
60674864
60684865 else if (heal_leper)
60694866 {
6070-#ifdef JP
6071- if (seen_msg) msg_print("不潔な病人は病気が治った!");
6072-#else
6073- if (seen_msg) msg_print("The Mangy looking leper is healed!");
6074-#endif
4867+ if (seen_msg) msg_print(_("不潔な病人は病気が治った!", "The Mangy looking leper is healed!"));
60754868
60764869 if (record_named_pet && is_pet(m_ptr) && m_ptr->nickname)
60774870 {
@@ -6103,12 +4896,7 @@ note = "
61034896
61044897 /* Give detailed messages if visible or destroyed */
61054898 if (note && seen_msg)
6106-#ifdef JP
6107- msg_format("%s%s", m_name, note);
6108-#else
6109- msg_format("%^s%s", m_name, note);
6110-#endif
6111-
4899+ msg_format(_("%s%s", "%^s%s"), m_name, note);
61124900
61134901 /* Hack -- Pain message */
61144902 else if (known && (dam || !do_fear))
@@ -6127,11 +4915,7 @@ note = "
61274915 sound(SOUND_FLEE);
61284916
61294917 /* Message */
6130-#ifdef JP
6131- msg_format("%^sは恐怖して逃げ出した!", m_name);
6132-#else
6133- msg_format("%^s flees in terror!", m_name);
6134-#endif
4918+ msg_format(_("%^sは恐怖して逃げ出した!", "%^s flees in terror!"), m_name);
61354919 }
61364920
61374921 /* Hack -- handle sleep */
@@ -6150,12 +4934,7 @@ note = "
61504934 case 1: case 2:
61514935 if (!count)
61524936 {
6153-#ifdef JP
6154-msg_print("地面が揺れた...");
6155-#else
6156- msg_print("The ground trembles...");
6157-#endif
6158-
4937+ msg_print(_("地面が揺れた...", "The ground trembles..."));
61594938 earthquake(ty, tx, 4 + randint0(4));
61604939 if (!one_in_(6)) break;
61614940 }
@@ -6163,11 +4942,7 @@ msg_print("
61634942 if (!count)
61644943 {
61654944 int dam = damroll(10, 10);
6166-#ifdef JP
6167-msg_print("純粋な魔力の次元への扉が開いた!");
6168-#else
6169- msg_print("A portal opens to a plane of raw mana!");
6170-#endif
4945+ msg_print(_("純粋な魔力の次元への扉が開いた!", "A portal opens to a plane of raw mana!"));
61714946
61724947 project(0, 8, ty,tx, dam, GF_MANA, curse_flg, -1);
61734948 if (!one_in_(6)) break;
@@ -6175,23 +4950,14 @@ msg_print("
61754950 case 7: case 8:
61764951 if (!count)
61774952 {
6178-#ifdef JP
6179-msg_print("空間が歪んだ!");
6180-#else
6181- msg_print("Space warps about you!");
6182-#endif
4953+ msg_print(_("空間が歪んだ!", "Space warps about you!"));
61834954
61844955 if (m_ptr->r_idx) teleport_away(c_ptr->m_idx, damroll(10, 10), TELEPORT_PASSIVE);
61854956 if (one_in_(13)) count += activate_hi_summon(ty, tx, TRUE);
61864957 if (!one_in_(6)) break;
61874958 }
61884959 case 9: case 10: case 11:
6189-#ifdef JP
6190-msg_print("エネルギーのうねりを感じた!");
6191-#else
6192- msg_print("You feel a surge of energy!");
6193-#endif
6194-
4960+ msg_print(_("エネルギーのうねりを感じた!", "You feel a surge of energy!"));
61954961 project(0, 7, ty, tx, 50, GF_DISINTEGRATE, curse_flg, -1);
61964962 if (!one_in_(6)) break;
61974963 case 12: case 13: case 14: case 15: case 16:
@@ -6213,11 +4979,7 @@ msg_print("
62134979 }
62144980 case 23: case 24: case 25:
62154981 if (p_ptr->hold_exp && (randint0(100) < 75)) break;
6216-#ifdef JP
6217-msg_print("経験値が体から吸い取られた気がする!");
6218-#else
6219- msg_print("You feel your experience draining away...");
6220-#endif
4982+ msg_print(_("経験値が体から吸い取られた気がする!", "You feel your experience draining away..."));
62214983
62224984 if (p_ptr->hold_exp) lose_exp(p_ptr->exp / 160);
62234985 else lose_exp(p_ptr->exp / 16);
@@ -6389,14 +5151,12 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
63895151 byte t_y, t_x;
63905152 int max_attempts = 10;
63915153
6392-#ifdef JP
6393- if (blind) msg_print("何かが跳ね返った!");
6394- else if (p_ptr->special_defense & KATA_FUUJIN) msg_print("風の如く武器を振るって弾き返した!");
6395- else msg_print("攻撃が跳ね返った!");
6396-#else
6397- if (blind) msg_print("Something bounces!");
6398- else msg_print("The attack bounces!");
6399-#endif
5154+ if (blind)
5155+ msg_print(_("何かが跳ね返った!", "Something bounces!"));
5156+ else if (p_ptr->special_defense & KATA_FUUJIN)
5157+ msg_print(_("風の如く武器を振るって弾き返した!", "The attack bounces!"));
5158+ else
5159+ msg_print(_("攻撃が跳ね返った!", "The attack bounces!"));
64005160
64015161
64025162 /* Choose 'new' target */
@@ -6458,27 +5218,15 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
64585218 switch (who)
64595219 {
64605220 case PROJECT_WHO_UNCTRL_POWER:
6461-#ifdef JP
6462- strcpy(killer, "制御できない力の氾流");
6463-#else
6464- strcpy(killer, "uncontrollable power storm");
6465-#endif
5221+ strcpy(killer, _("制御できない力の氾流", "uncontrollable power storm"));
64665222 break;
64675223
64685224 case PROJECT_WHO_GLASS_SHARDS:
6469-#ifdef JP
6470- strcpy(killer, "ガラスの破片");
6471-#else
6472- strcpy(killer, "shards of glass");
6473-#endif
5225+ strcpy(killer, _("ガラスの破片", "shards of glass"));
64745226 break;
64755227
64765228 default:
6477-#ifdef JP
6478- strcpy(killer, "罠");
6479-#else
6480- strcpy(killer, "a trap");
6481-#endif
5229+ strcpy(killer, _("罠", "a trap"));
64825230 break;
64835231 }
64845232
@@ -6492,12 +5240,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
64925240 /* Standard damage -- hurts inventory too */
64935241 case GF_ACID:
64945242 {
6495-#ifdef JP
6496- if (fuzzy) msg_print("酸で攻撃された!");
6497-#else
6498- if (fuzzy) msg_print("You are hit by acid!");
6499-#endif
6500-
5243+ if (fuzzy) msg_print(_("酸で攻撃された!", "You are hit by acid!"));
65015244 get_damage = acid_dam(dam, killer, monspell, FALSE);
65025245 break;
65035246 }
@@ -6505,25 +5248,15 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
65055248 /* Standard damage -- hurts inventory too */
65065249 case GF_FIRE:
65075250 {
6508-#ifdef JP
6509- if (fuzzy) msg_print("火炎で攻撃された!");
6510-#else
6511- if (fuzzy) msg_print("You are hit by fire!");
6512-#endif
6513-
6514- get_damage = fire_dam(dam, killer, monspell, FALSE);
5251+ if (fuzzy) msg_print(_("火炎で攻撃された!", "You are hit by fire!"));
5252+ get_damage = fire_dam(dam, killer, monspell, FALSE);
65155253 break;
65165254 }
65175255
65185256 /* Standard damage -- hurts inventory too */
65195257 case GF_COLD:
65205258 {
6521-#ifdef JP
6522- if (fuzzy) msg_print("冷気で攻撃された!");
6523-#else
6524- if (fuzzy) msg_print("You are hit by cold!");
6525-#endif
6526-
5259+ if (fuzzy) msg_print(_("冷気で攻撃された!", "You are hit by cold!"));
65275260 get_damage = cold_dam(dam, killer, monspell, FALSE);
65285261 break;
65295262 }
@@ -6531,12 +5264,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
65315264 /* Standard damage -- hurts inventory too */
65325265 case GF_ELEC:
65335266 {
6534-#ifdef JP
6535- if (fuzzy) msg_print("電撃で攻撃された!");
6536-#else
6537- if (fuzzy) msg_print("You are hit by lightning!");
6538-#endif
6539-
5267+ if (fuzzy) msg_print(_("電撃で攻撃された!", "You are hit by lightning!"));
65405268 get_damage = elec_dam(dam, killer, monspell, FALSE);
65415269 break;
65425270 }
@@ -6545,11 +5273,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
65455273 case GF_POIS:
65465274 {
65475275 bool double_resist = IS_OPPOSE_POIS();
6548-#ifdef JP
6549- if (fuzzy) msg_print("毒で攻撃された!");
6550-#else
6551- if (fuzzy) msg_print("You are hit by poison!");
6552-#endif
5276+ if (fuzzy) msg_print(_("毒で攻撃された!", "You are hit by poison!"));
65535277
65545278 if (p_ptr->resist_pois) dam = (dam + 2) / 3;
65555279 if (double_resist) dam = (dam + 2) / 3;
@@ -6573,11 +5297,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
65735297 case GF_NUKE:
65745298 {
65755299 bool double_resist = IS_OPPOSE_POIS();
6576-#ifdef JP
6577- if (fuzzy) msg_print("放射能で攻撃された!");
6578-#else
6579- if (fuzzy) msg_print("You are hit by radiation!");
6580-#endif
5300+ if (fuzzy) msg_print(_("放射能で攻撃された!", "You are hit by radiation!"));
65815301
65825302 if (p_ptr->resist_pois) dam = (2 * dam + 2) / 5;
65835303 if (double_resist) dam = (2 * dam + 2) / 5;
@@ -6588,12 +5308,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
65885308
65895309 if (one_in_(5)) /* 6 */
65905310 {
6591-#ifdef JP
6592- msg_print("奇形的な変身を遂げた!");
6593-#else
6594- msg_print("You undergo a freakish metamorphosis!");
6595-#endif
6596-
5311+ msg_print(_("奇形的な変身を遂げた!", "You undergo a freakish metamorphosis!"));
65975312 if (one_in_(4)) /* 4 */
65985313 do_poly_self();
65995314 else
@@ -6611,12 +5326,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
66115326 /* Standard damage */
66125327 case GF_MISSILE:
66135328 {
6614-#ifdef JP
6615- if (fuzzy) msg_print("何かで攻撃された!");
6616-#else
6617- if (fuzzy) msg_print("You are hit by something!");
6618-#endif
6619-
5329+ if (fuzzy) msg_print(_("何かで攻撃された!", "You are hit by something!"));
66205330 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
66215331 break;
66225332 }
@@ -6624,12 +5334,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
66245334 /* Holy Orb -- Player only takes partial damage */
66255335 case GF_HOLY_FIRE:
66265336 {
6627-#ifdef JP
6628- if (fuzzy) msg_print("何かで攻撃された!");
6629-#else
6630- if (fuzzy) msg_print("You are hit by something!");
6631-#endif
6632-
5337+ if (fuzzy) msg_print(_("何かで攻撃された!", "You are hit by something!"));
66335338 if (p_ptr->align > 10)
66345339 dam /= 2;
66355340 else if (p_ptr->align < -10)
@@ -6640,12 +5345,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
66405345
66415346 case GF_HELL_FIRE:
66425347 {
6643-#ifdef JP
6644- if (fuzzy) msg_print("何かで攻撃された!");
6645-#else
6646- if (fuzzy) msg_print("You are hit by something!");
6647-#endif
6648-
5348+ if (fuzzy) msg_print(_("何かで攻撃された!", "You are hit by something!"));
66495349 if (p_ptr->align > 10)
66505350 dam *= 2;
66515351 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
@@ -6655,19 +5355,13 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
66555355 /* Arrow -- XXX no dodging */
66565356 case GF_ARROW:
66575357 {
6658-#ifdef JP
6659- if (fuzzy) msg_print("何か鋭いもので攻撃された!");
6660-#else
6661- if (fuzzy) msg_print("You are hit by something sharp!");
6662-#endif
6663-
5358+ if (fuzzy)
5359+ {
5360+ msg_print(_("何か鋭いもので攻撃された!", "You are hit by something sharp!"));
5361+ }
66645362 else if ((inventory[INVEN_RARM].name1 == ART_ZANTETSU) || (inventory[INVEN_LARM].name1 == ART_ZANTETSU))
66655363 {
6666-#ifdef JP
6667- msg_print("矢を斬り捨てた!");
6668-#else
6669- msg_print("You cut down the arrow!");
6670-#endif
5364+ msg_print(_("矢を斬り捨てた!", "You cut down the arrow!"));
66715365 break;
66725366 }
66735367 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
@@ -6677,12 +5371,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
66775371 /* Plasma -- XXX No resist */
66785372 case GF_PLASMA:
66795373 {
6680-#ifdef JP
6681- if (fuzzy) msg_print("何かとても熱いもので攻撃された!");
6682-#else
6683- if (fuzzy) msg_print("You are hit by something *HOT*!");
6684-#endif
6685-
5374+ if (fuzzy) msg_print(_("何かとても熱いもので攻撃された!", "You are hit by something *HOT*!"));
66865375 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
66875376
66885377 if (!p_ptr->resist_sound && !CHECK_MULTISHADOW())
@@ -6704,12 +5393,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
67045393 /* Nether -- drain experience */
67055394 case GF_NETHER:
67065395 {
6707-#ifdef JP
6708- if (fuzzy) msg_print("地獄の力で攻撃された!");
6709-#else
6710- if (fuzzy) msg_print("You are hit by nether forces!");
6711-#endif
6712-
5396+ if (fuzzy) msg_print(_("地獄の力で攻撃された!", "You are hit by nether forces!"));
67135397 if (p_ptr->resist_neth)
67145398 {
67155399 if (!prace_is_(RACE_SPECTRE))
@@ -6719,12 +5403,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
67195403
67205404 if (prace_is_(RACE_SPECTRE) && !CHECK_MULTISHADOW())
67215405 {
6722-#ifdef JP
6723- msg_print("気分がよくなった。");
6724-#else
6725- msg_print("You feel invigorated!");
6726-#endif
6727-
5406+ msg_print(_("気分がよくなった。", "You feel invigorated!"));
67285407 hp_player(dam / 4);
67295408 learn_spell(monspell);
67305409 }
@@ -6739,13 +5418,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
67395418 /* Water -- stun/confuse */
67405419 case GF_WATER:
67415420 {
6742-#ifdef JP
6743- if (fuzzy) msg_print("何か湿ったもので攻撃された!");
6744-#else
6745- if (fuzzy) msg_print("You are hit by something wet!");
6746-#endif
6747-
6748- if (!CHECK_MULTISHADOW())
5421+ if (fuzzy) msg_print(_("何か湿ったもので攻撃された!", "You are hit by something wet!"));
5422+ if (!CHECK_MULTISHADOW())
67495423 {
67505424 if (!p_ptr->resist_sound)
67515425 {
@@ -6769,12 +5443,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
67695443 /* Chaos -- many effects */
67705444 case GF_CHAOS:
67715445 {
6772-#ifdef JP
6773- if (fuzzy) msg_print("無秩序の波動で攻撃された!");
6774-#else
6775- if (fuzzy) msg_print("You are hit by a wave of anarchy!");
6776-#endif
6777-
5446+ if (fuzzy) msg_print(_("無秩序の波動で攻撃された!", "You are hit by a wave of anarchy!"));
67785447 if (p_ptr->resist_chaos)
67795448 {
67805449 dam *= 6; dam /= (randint1(4) + 7);
@@ -6791,12 +5460,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
67915460 (void)set_image(p_ptr->image + randint1(10));
67925461 if (one_in_(3))
67935462 {
6794-#ifdef JP
6795- msg_print("あなたの身体はカオスの力で捻じ曲げられた!");
6796-#else
6797- msg_print("Your body is twisted by chaos!");
6798-#endif
6799-
5463+ msg_print(_("あなたの身体はカオスの力で捻じ曲げられた!", "Your body is twisted by chaos!"));
68005464 (void)gain_random_mutation(0);
68015465 }
68025466 }
@@ -6819,12 +5483,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
68195483 /* Shards -- mostly cutting */
68205484 case GF_SHARDS:
68215485 {
6822-#ifdef JP
6823- if (fuzzy) msg_print("何か鋭いもので攻撃された!");
6824-#else
6825- if (fuzzy) msg_print("You are hit by something sharp!");
6826-#endif
6827-
5486+ if (fuzzy) msg_print(_("何か鋭いもので攻撃された!", "You are hit by something sharp!"));
68285487 if (p_ptr->resist_shard)
68295488 {
68305489 dam *= 6; dam /= (randint1(4) + 7);
@@ -6846,12 +5505,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
68465505 /* Sound -- mostly stunning */
68475506 case GF_SOUND:
68485507 {
6849-#ifdef JP
6850- if (fuzzy) msg_print("轟音で攻撃された!");
6851-#else
6852- if (fuzzy) msg_print("You are hit by a loud noise!");
6853-#endif
6854-
5508+ if (fuzzy) msg_print(_("轟音で攻撃された!", "You are hit by a loud noise!"));
68555509 if (p_ptr->resist_sound)
68565510 {
68575511 dam *= 5; dam /= (randint1(4) + 7);
@@ -6874,12 +5528,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
68745528 /* Pure confusion */
68755529 case GF_CONFUSION:
68765530 {
6877-#ifdef JP
6878- if (fuzzy) msg_print("何か混乱するもので攻撃された!");
6879-#else
6880- if (fuzzy) msg_print("You are hit by something puzzling!");
6881-#endif
6882-
5531+ if (fuzzy) msg_print(_("何か混乱するもので攻撃された!", "You are hit by something puzzling!"));
68835532 if (p_ptr->resist_conf)
68845533 {
68855534 dam *= 5; dam /= (randint1(4) + 7);
@@ -6895,12 +5544,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
68955544 /* Disenchantment -- see above */
68965545 case GF_DISENCHANT:
68975546 {
6898-#ifdef JP
6899- if (fuzzy) msg_print("何かさえないもので攻撃された!");
6900-#else
6901- if (fuzzy) msg_print("You are hit by something static!");
6902-#endif
6903-
5547+ if (fuzzy) msg_print(_("何かさえないもので攻撃された!", "You are hit by something static!"));
69045548 if (p_ptr->resist_disen)
69055549 {
69065550 dam *= 6; dam /= (randint1(4) + 7);
@@ -6916,12 +5560,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
69165560 /* Nexus -- see above */
69175561 case GF_NEXUS:
69185562 {
6919-#ifdef JP
6920- if (fuzzy) msg_print("何か奇妙なもので攻撃された!");
6921-#else
6922- if (fuzzy) msg_print("You are hit by something strange!");
6923-#endif
6924-
5563+ if (fuzzy) msg_print(_("何か奇妙なもので攻撃された!", "You are hit by something strange!"));
69255564 if (p_ptr->resist_nexus)
69265565 {
69275566 dam *= 6; dam /= (randint1(4) + 7);
@@ -6937,12 +5576,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
69375576 /* Force -- mostly stun */
69385577 case GF_FORCE:
69395578 {
6940-#ifdef JP
6941- if (fuzzy) msg_print("運動エネルギーで攻撃された!");
6942-#else
6943- if (fuzzy) msg_print("You are hit by kinetic force!");
6944-#endif
6945-
5579+ if (fuzzy) msg_print(_("運動エネルギーで攻撃された!", "You are hit by kinetic force!"));
69465580 if (!p_ptr->resist_sound && !CHECK_MULTISHADOW())
69475581 {
69485582 (void)set_stun(p_ptr->stun + randint1(20));
@@ -6955,12 +5589,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
69555589 /* Rocket -- stun, cut */
69565590 case GF_ROCKET:
69575591 {
6958-#ifdef JP
6959- if (fuzzy) msg_print("爆発があった!");
6960-#else
6961- if (fuzzy) msg_print("There is an explosion!");
6962-#endif
6963-
5592+ if (fuzzy) msg_print(_("爆発があった!", "There is an explosion!"));
69645593 if (!p_ptr->resist_sound && !CHECK_MULTISHADOW())
69655594 {
69665595 (void)set_stun(p_ptr->stun + randint1(20));
@@ -6987,12 +5616,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
69875616 /* Inertia -- slowness */
69885617 case GF_INERTIA:
69895618 {
6990-#ifdef JP
6991- if (fuzzy) msg_print("何か遅いもので攻撃された!");
6992-#else
6993- if (fuzzy) msg_print("You are hit by something slow!");
6994-#endif
6995-
5619+ if (fuzzy) msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
69965620 if (!CHECK_MULTISHADOW()) (void)set_slow(p_ptr->slow + randint0(4) + 4, FALSE);
69975621 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
69985622 break;
@@ -7001,12 +5625,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
70015625 /* Lite -- blinding */
70025626 case GF_LITE:
70035627 {
7004-#ifdef JP
7005- if (fuzzy) msg_print("何かで攻撃された!");
7006-#else
7007- if (fuzzy) msg_print("You are hit by something!");
7008-#endif
7009-
5628+ if (fuzzy) msg_print(_("何かで攻撃された!", "You are hit by something!"));
70105629 if (p_ptr->resist_lite)
70115630 {
70125631 dam *= 4; dam /= (randint1(4) + 7);
@@ -7018,12 +5637,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
70185637
70195638 if (prace_is_(RACE_VAMPIRE) || (p_ptr->mimic_form == MIMIC_VAMPIRE))
70205639 {
7021-#ifdef JP
7022- if (!CHECK_MULTISHADOW()) msg_print("光で肉体が焦がされた!");
7023-#else
7024- if (!CHECK_MULTISHADOW()) msg_print("The light scorches your flesh!");
7025-#endif
7026-
5640+ if (!CHECK_MULTISHADOW()) msg_print(_("光で肉体が焦がされた!", "The light scorches your flesh!"));
70275641 dam *= 2;
70285642 }
70295643 else if (prace_is_(RACE_S_FAIRY))
@@ -7037,11 +5651,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
70375651 if (p_ptr->wraith_form && !CHECK_MULTISHADOW())
70385652 {
70395653 p_ptr->wraith_form = 0;
7040-#ifdef JP
7041- msg_print("閃光のため非物質的な影の存在でいられなくなった。");
7042-#else
7043- msg_print("The light forces you out of your incorporeal shadow form.");
7044-#endif
5654+ msg_print(_("閃光のため非物質的な影の存在でいられなくなった。",
5655+ "The light forces you out of your incorporeal shadow form."));
70455656
70465657 p_ptr->redraw |= PR_MAP;
70475658 /* Update monsters */
@@ -7060,12 +5671,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
70605671 /* Dark -- blinding */
70615672 case GF_DARK:
70625673 {
7063-#ifdef JP
7064- if (fuzzy) msg_print("何かで攻撃された!");
7065-#else
7066- if (fuzzy) msg_print("You are hit by something!");
7067-#endif
7068-
5674+ if (fuzzy) msg_print(_("何かで攻撃された!", "You are hit by something!"));
70695675 if (p_ptr->resist_dark)
70705676 {
70715677 dam *= 4; dam /= (randint1(4) + 7);
@@ -7083,21 +5689,12 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
70835689 /* Time -- bolt fewer effects XXX */
70845690 case GF_TIME:
70855691 {
7086-#ifdef JP
7087- if (fuzzy) msg_print("過去からの衝撃に攻撃された!");
7088-#else
7089- if (fuzzy) msg_print("You are hit by a blast from the past!");
7090-#endif
7091-
5692+ if (fuzzy) msg_print(_("過去からの衝撃に攻撃された!", "You are hit by a blast from the past!"));
70925693 if (p_ptr->resist_time)
70935694 {
70945695 dam *= 4;
70955696 dam /= (randint1(4) + 7);
7096-#ifdef JP
7097- msg_print("時間が通り過ぎていく気がする。");
7098-#else
7099- msg_print("You feel as if time is passing you by.");
7100-#endif
5697+ msg_print(_("時間が通り過ぎていく気がする。", "You feel as if time is passing you by."));
71015698 }
71025699 else if (!CHECK_MULTISHADOW())
71035700 {
@@ -7106,12 +5703,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
71065703 case 1: case 2: case 3: case 4: case 5:
71075704 {
71085705 if (p_ptr->prace == RACE_ANDROID) break;
7109-#ifdef JP
7110- msg_print("人生が逆戻りした気がする。");
7111-#else
7112- msg_print("You feel life has clocked back.");
7113-#endif
7114-
5706+ msg_print(_("人生が逆戻りした気がする。", "You feel life has clocked back."));
71155707 lose_exp(100 + (p_ptr->exp / 100) * MON_DRAIN_LIFE);
71165708 break;
71175709 }
@@ -7120,28 +5712,16 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
71205712 {
71215713 switch (randint1(6))
71225714 {
7123-#ifdef JP
7124- case 1: k = A_STR; act = "強く"; break;
7125- case 2: k = A_INT; act = "聡明で"; break;
7126- case 3: k = A_WIS; act = "賢明で"; break;
7127- case 4: k = A_DEX; act = "器用で"; break;
7128- case 5: k = A_CON; act = "健康で"; break;
7129- case 6: k = A_CHR; act = "美しく"; break;
7130-#else
7131- case 1: k = A_STR; act = "strong"; break;
7132- case 2: k = A_INT; act = "bright"; break;
7133- case 3: k = A_WIS; act = "wise"; break;
7134- case 4: k = A_DEX; act = "agile"; break;
7135- case 5: k = A_CON; act = "hale"; break;
7136- case 6: k = A_CHR; act = "beautiful"; break;
7137-#endif
5715+ case 1: k = A_STR; act = _("強く", "strong"); break;
5716+ case 2: k = A_INT; act = _("聡明で", "bright"); break;
5717+ case 3: k = A_WIS; act = _("賢明で", "wise"); break;
5718+ case 4: k = A_DEX; act = _("器用で", "agile"); break;
5719+ case 5: k = A_CON; act = _("健康で", "hale"); break;
5720+ case 6: k = A_CHR; act = _("美しく", "beautiful"); break;
71385721 }
71395722
7140-#ifdef JP
7141- msg_format("あなたは以前ほど%sなくなってしまった...。", act);
7142-#else
7143- msg_format("You're not as %s as you used to be...", act);
7144-#endif
5723+ msg_format(_("あなたは以前ほど%sなくなってしまった...。",
5724+ "You're not as %s as you used to be..."), act);
71455725
71465726 p_ptr->stat_cur[k] = (p_ptr->stat_cur[k] * 3) / 4;
71475727 if (p_ptr->stat_cur[k] < 3) p_ptr->stat_cur[k] = 3;
@@ -7151,11 +5731,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
71515731
71525732 case 10:
71535733 {
7154-#ifdef JP
7155- msg_print("あなたは以前ほど力強くなくなってしまった...。");
7156-#else
7157- msg_print("You're not as powerful as you used to be...");
7158-#endif
5734+ msg_print(_("あなたは以前ほど力強くなくなってしまった...。",
5735+ "You're not as powerful as you used to be..."));
71595736
71605737 for (k = 0; k < 6; k++)
71615738 {
@@ -7175,13 +5752,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
71755752 /* Gravity -- stun plus slowness plus teleport */
71765753 case GF_GRAVITY:
71775754 {
7178-#ifdef JP
7179- if (fuzzy) msg_print("何か重いもので攻撃された!");
7180- msg_print("周辺の重力がゆがんだ。");
7181-#else
7182- if (fuzzy) msg_print("You are hit by something heavy!");
7183- msg_print("Gravity warps around you.");
7184-#endif
5755+ if (fuzzy) msg_print(_("何か重いもので攻撃された!", "You are hit by something heavy!"));
5756+ msg_print(_("周辺の重力がゆがんだ。", "Gravity warps around you."));
71855757
71865758 if (!CHECK_MULTISHADOW())
71875759 {
@@ -7211,11 +5783,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
72115783 /* Standard damage */
72125784 case GF_DISINTEGRATE:
72135785 {
7214-#ifdef JP
7215- if (fuzzy) msg_print("純粋なエネルギーで攻撃された!");
7216-#else
7217- if (fuzzy) msg_print("You are hit by pure energy!");
7218-#endif
5786+ if (fuzzy) msg_print(_("純粋なエネルギーで攻撃された!", "You are hit by pure energy!"));
72195787
72205788 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
72215789 break;
@@ -7223,11 +5791,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
72235791
72245792 case GF_OLD_HEAL:
72255793 {
7226-#ifdef JP
7227- if (fuzzy) msg_print("何らかの攻撃によって気分がよくなった。");
7228-#else
7229- if (fuzzy) msg_print("You are hit by something invigorating!");
7230-#endif
5794+ if (fuzzy) msg_print(_("何らかの攻撃によって気分がよくなった。", "You are hit by something invigorating!"));
72315795
72325796 (void)hp_player(dam);
72335797 dam = 0;
@@ -7236,12 +5800,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
72365800
72375801 case GF_OLD_SPEED:
72385802 {
7239-#ifdef JP
7240- if (fuzzy) msg_print("何かで攻撃された!");
7241-#else
7242- if (fuzzy) msg_print("You are hit by something!");
7243-#endif
7244-
5803+ if (fuzzy) msg_print(_("何かで攻撃された!", "You are hit by something!"));
72455804 (void)set_fast(p_ptr->fast + randint1(5), FALSE);
72465805 dam = 0;
72475806 break;
@@ -7249,12 +5808,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
72495808
72505809 case GF_OLD_SLOW:
72515810 {
7252-#ifdef JP
7253- if (fuzzy) msg_print("何か遅いもので攻撃された!");
7254-#else
7255- if (fuzzy) msg_print("You are hit by something slow!");
7256-#endif
7257-
5811+ if (fuzzy) msg_print(_("何か遅いもので攻撃された!", "You are hit by something slow!"));
72585812 (void)set_slow(p_ptr->slow + randint0(4) + 4, FALSE);
72595813 break;
72605814 }
@@ -7262,20 +5816,11 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
72625816 case GF_OLD_SLEEP:
72635817 {
72645818 if (p_ptr->free_act) break;
7265-#ifdef JP
7266- if (fuzzy) msg_print("眠ってしまった!");
7267-#else
7268- if (fuzzy) msg_print("You fall asleep!");
7269-#endif
7270-
5819+ if (fuzzy) msg_print(_("眠ってしまった!", "You fall asleep!"));
72715820
72725821 if (ironman_nightmare)
72735822 {
7274-#ifdef JP
7275- msg_print("恐ろしい光景が頭に浮かんできた。");
7276-#else
7277- msg_print("A horrible vision enters your mind.");
7278-#endif
5823+ msg_print(_("恐ろしい光景が頭に浮かんできた。", "A horrible vision enters your mind."));
72795824
72805825 /* Pick a nightmare */
72815826 get_mon_num_prep(get_nightmare, NULL);
@@ -7297,12 +5842,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
72975842 case GF_SEEKER:
72985843 case GF_SUPER_RAY:
72995844 {
7300-#ifdef JP
7301- if (fuzzy) msg_print("魔法のオーラで攻撃された!");
7302-#else
7303- if (fuzzy) msg_print("You are hit by an aura of magic!");
7304-#endif
7305-
5845+ if (fuzzy) msg_print(_("魔法のオーラで攻撃された!", "You are hit by an aura of magic!"));
73065846 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
73075847 break;
73085848 }
@@ -7310,12 +5850,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
73105850 /* Pure damage */
73115851 case GF_PSY_SPEAR:
73125852 {
7313-#ifdef JP
7314- if (fuzzy) msg_print("エネルギーの塊で攻撃された!");
7315-#else
7316- if (fuzzy) msg_print("You are hit by an energy!");
7317-#endif
7318-
5853+ if (fuzzy) msg_print(_("エネルギーの塊で攻撃された!", "You are hit by an energy!"));
73195854 get_damage = take_hit(DAMAGE_FORCE, dam, killer, monspell);
73205855 break;
73215856 }
@@ -7323,11 +5858,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
73235858 /* Pure damage */
73245859 case GF_METEOR:
73255860 {
7326-#ifdef JP
7327- if (fuzzy) msg_print("何かが空からあなたの頭上に落ちてきた!");
7328-#else
7329- if (fuzzy) msg_print("Something falls from the sky on you!");
7330-#endif
5861+ if (fuzzy) msg_print(_("何かが空からあなたの頭上に落ちてきた!", "Something falls from the sky on you!"));
73315862
73325863 get_damage = take_hit(DAMAGE_ATTACK, dam, killer, monspell);
73335864 if (!p_ptr->resist_shard || one_in_(13))
@@ -7342,12 +5873,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
73425873 /* Ice -- cold plus stun plus cuts */
73435874 case GF_ICE:
73445875 {
7345-#ifdef JP
7346- if (fuzzy) msg_print("何か鋭く冷たいもので攻撃された!");
7347-#else
7348- if (fuzzy) msg_print("You are hit by something sharp and cold!");
7349-#endif
7350-
5876+ if (fuzzy) msg_print(_("何か鋭く冷たいもので攻撃された!", "You are hit by something sharp and cold!"));
73515877 get_damage = cold_dam(dam, killer, monspell, FALSE);
73525878 if (!CHECK_MULTISHADOW())
73535879 {
@@ -7372,12 +5898,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
73725898 /* Death Ray */
73735899 case GF_DEATH_RAY:
73745900 {
7375-#ifdef JP
7376- if (fuzzy) msg_print("何か非常に冷たいもので攻撃された!");
7377-#else
7378- if (fuzzy) msg_print("You are hit by something extremely cold!");
7379-#endif
7380-
5901+ if (fuzzy) msg_print(_("何か非常に冷たいもので攻撃された!", "You are hit by something extremely cold!"));
73815902
73825903 if (p_ptr->mimic_form)
73835904 {
@@ -7417,22 +5938,15 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
74175938 {
74185939 if (CHECK_MULTISHADOW())
74195940 {
7420-#ifdef JP
7421- msg_print("攻撃は幻影に命中し、あなたには届かなかった。");
7422-#else
7423- msg_print("The attack hits Shadow, you are unharmed!");
7424-#endif
5941+ msg_print(_("攻撃は幻影に命中し、あなたには届かなかった。", "The attack hits Shadow, you are unharmed!"));
74255942 }
74265943 else if (p_ptr->csp)
74275944 {
74285945 /* Basic message */
7429-#ifdef JP
7430- if (who > 0) msg_format("%^sに精神エネルギーを吸い取られてしまった!", m_name);
7431- else msg_print("精神エネルギーを吸い取られてしまった!");
7432-#else
7433- if (who > 0) msg_format("%^s draws psychic energy from you!", m_name);
7434- else msg_print("Your psychic energy is drawn!");
7435-#endif
5946+ if (who > 0)
5947+ msg_format(_("%^sに精神エネルギーを吸い取られてしまった!", "%^s draws psychic energy from you!"), m_name);
5948+ else
5949+ msg_print(_("精神エネルギーを吸い取られてしまった!", "Your psychic energy is drawn!"));
74365950
74375951 /* Full drain */
74385952 if (dam >= p_ptr->csp)
@@ -7473,11 +5987,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
74735987 /* Special message */
74745988 if (m_ptr->ml)
74755989 {
7476-#ifdef JP
7477- msg_format("%^sは気分が良さそうだ。", m_name);
7478-#else
7479- msg_format("%^s appears healthier.", m_name);
7480-#endif
5990+ msg_format(_("%^sは気分が良さそうだ。", "%^s appears healthier."), m_name);
74815991 }
74825992 }
74835993 }
@@ -7492,22 +6002,14 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
74926002 {
74936003 if ((randint0(100 + rlev / 2) < MAX(5, p_ptr->skill_sav)) && !CHECK_MULTISHADOW())
74946004 {
7495-#ifdef JP
7496- msg_print("しかし効力を跳ね返した!");
7497-#else
7498- msg_print("You resist the effects!");
7499-#endif
6005+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
75006006 learn_spell(monspell);
75016007 }
75026008 else
75036009 {
75046010 if (!CHECK_MULTISHADOW())
75056011 {
7506-#ifdef JP
7507- msg_print("霊的エネルギーで精神が攻撃された。");
7508-#else
7509- msg_print("Your mind is blasted by psyonic energy.");
7510-#endif
6012+ msg_print(_("霊的エネルギーで精神が攻撃された。", "Your mind is blasted by psyonic energy."));
75116013
75126014 if (!p_ptr->resist_conf)
75136015 {
@@ -7537,23 +6039,15 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
75376039 case GF_BRAIN_SMASH:
75386040 {
75396041 if ((randint0(100 + rlev / 2) < MAX(5, p_ptr->skill_sav)) && !CHECK_MULTISHADOW())
7540- {
7541-#ifdef JP
7542- msg_print("しかし効力を跳ね返した!");
7543-#else
7544- msg_print("You resist the effects!");
7545-#endif
6042+ {
6043+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
75466044 learn_spell(monspell);
75476045 }
75486046 else
75496047 {
75506048 if (!CHECK_MULTISHADOW())
7551- {
7552-#ifdef JP
7553- msg_print("霊的エネルギーで精神が攻撃された。");
7554-#else
7555- msg_print("Your mind is blasted by psionic energy.");
7556-#endif
6049+ {
6050+ msg_print(_("霊的エネルギーで精神が攻撃された。", "Your mind is blasted by psyonic energy."));
75576051
75586052 p_ptr->csp -= 100;
75596053 if (p_ptr->csp < 0)
@@ -7599,12 +6093,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
75996093 case GF_CAUSE_1:
76006094 {
76016095 if ((randint0(100 + rlev / 2) < p_ptr->skill_sav) && !CHECK_MULTISHADOW())
7602- {
7603-#ifdef JP
7604- msg_print("しかし効力を跳ね返した!");
7605-#else
7606- msg_print("You resist the effects!");
7607-#endif
6096+ {
6097+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
76086098 learn_spell(monspell);
76096099 }
76106100 else
@@ -7619,12 +6109,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
76196109 case GF_CAUSE_2:
76206110 {
76216111 if ((randint0(100 + rlev / 2) < p_ptr->skill_sav) && !CHECK_MULTISHADOW())
7622- {
7623-#ifdef JP
7624- msg_print("しかし効力を跳ね返した!");
7625-#else
7626- msg_print("You resist the effects!");
7627-#endif
6112+ {
6113+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
76286114 learn_spell(monspell);
76296115 }
76306116 else
@@ -7639,12 +6125,8 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
76396125 case GF_CAUSE_3:
76406126 {
76416127 if ((randint0(100 + rlev / 2) < p_ptr->skill_sav) && !CHECK_MULTISHADOW())
7642- {
7643-#ifdef JP
7644- msg_print("しかし効力を跳ね返した!");
7645-#else
7646- msg_print("You resist the effects!");
7647-#endif
6128+ {
6129+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
76486130 learn_spell(monspell);
76496131 }
76506132 else
@@ -7660,11 +6142,7 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
76606142 {
76616143 if ((randint0(100 + rlev / 2) < p_ptr->skill_sav) && !(m_ptr->r_idx == MON_KENSHIROU) && !CHECK_MULTISHADOW())
76626144 {
7663-#ifdef JP
7664- msg_print("しかし秘孔を跳ね返した!");
7665-#else
7666- msg_print("You resist the effects!");
7667-#endif
6145+ msg_print(_("しかし秘孔を跳ね返した!", "You resist the effects!"));
76686146 learn_spell(monspell);
76696147 }
76706148 else
@@ -7679,23 +6157,15 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
76796157 case GF_HAND_DOOM:
76806158 {
76816159 if ((randint0(100 + rlev/2) < p_ptr->skill_sav) && !CHECK_MULTISHADOW())
7682- {
7683-#ifdef JP
7684- msg_format("しかし効力を跳ね返した!");
7685-#else
7686- msg_format("You resist the effects!");
7687-#endif
6160+ {
6161+ msg_print(_("しかし効力を跳ね返した!", "You resist the effects!"));
76886162 learn_spell(monspell);
76896163 }
76906164 else
76916165 {
76926166 if (!CHECK_MULTISHADOW())
76936167 {
7694-#ifdef JP
7695- msg_print("あなたは命が薄まっていくように感じた!");
7696-#else
7697- msg_print("You feel your life fade away!");
7698-#endif
6168+ msg_print(_("あなたは命が薄まっていくように感じた!", "You feel your life fade away!"));
76996169 curse_equipment(40, 20);
77006170 }
77016171
@@ -7722,16 +6192,12 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int
77226192 if ((p_ptr->tim_eyeeye || hex_spelling(HEX_EYE_FOR_EYE))
77236193 && (get_damage > 0) && !p_ptr->is_dead && (who > 0))
77246194 {
7725-#ifdef JP
7726- msg_format("攻撃が%s自身を傷つけた!", m_name);
7727-#else
77286195 char m_name_self[80];
77296196
77306197 /* hisself */
77316198 monster_desc(m_name_self, m_ptr, MD_PRON_VISIBLE | MD_POSSESSIVE | MD_OBJECTIVE);
77326199
7733- msg_format("The attack of %s has wounded %s!", m_name, m_name_self);
7734-#endif
6200+ msg_format(_("攻撃が%s自身を傷つけた!", "The attack of %s has wounded %s!"), m_name, m_name_self);
77356201 project(0, 0, m_ptr->fy, m_ptr->fx, get_damage, GF_MISSILE, PROJECT_KILL, -1);
77366202 if (p_ptr->tim_eyeeye) set_tim_eyeeye(p_ptr->tim_eyeeye-5, TRUE);
77376203 }
@@ -9076,14 +7542,12 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons
90767542
90777543 if (is_seen(m_ptr))
90787544 {
9079-#ifdef JP
90807545 if ((m_ptr->r_idx == MON_KENSHIROU) || (m_ptr->r_idx == MON_RAOU))
9081- msg_print("「北斗神拳奥義・二指真空把!」");
9082- else if (m_ptr->r_idx == MON_DIO) msg_print("ディオ・ブランドーは指一本で攻撃を弾き返した!");
9083- else msg_print("攻撃は跳ね返った!");
9084-#else
9085- msg_print("The attack bounces!");
9086-#endif
7546+ msg_print(_("「北斗神拳奥義・二指真空把!」", "The attack bounces!"));
7547+ else if (m_ptr->r_idx == MON_DIO)
7548+ msg_print(_("ディオ・ブランドーは指一本で攻撃を弾き返した!", "The attack bounces!"));
7549+ else
7550+ msg_print(_("攻撃は跳ね返った!", "The attack bounces!"));
90877551 }
90887552 if (is_original_ap_and_seen(m_ptr)) ref_ptr->r_flags2 |= RF2_REFLECTING;
90897553
@@ -9297,22 +7761,14 @@ bool project(int who, int rad, int y, int x, int dam, int typ, int flg, int mons
92977761 {
92987762 if (rakuba(rakubadam_m, FALSE))
92997763 {
9300-#ifdef JP
9301-msg_format("%^sに振り落とされた!", m_name);
9302-#else
9303- msg_format("%^s has thrown you off!", m_name);
9304-#endif
7764+ msg_format(_("%^sに振り落とされた!", "%^s has thrown you off!"), m_name);
93057765 }
93067766 }
93077767 if (p_ptr->riding && rakubadam_p > 0)
93087768 {
93097769 if(rakuba(rakubadam_p, FALSE))
93107770 {
9311-#ifdef JP
9312-msg_format("%^sから落ちてしまった!", m_name);
9313-#else
9314- msg_format("You have fallen from %s.", m_name);
9315-#endif
7771+ msg_format(_("%^sから落ちてしまった!", "You have fallen from %s."), m_name);
93167772 }
93177773 }
93187774 }
@@ -9458,11 +7914,7 @@ bool binding_field( int dam )
94587914 }
94597915 }
94607916 if( one_in_(7) ){
9461-#ifdef JP
9462- msg_print("鏡が結界に耐えきれず、壊れてしまった。");
9463-#else
9464- msg_print("The field broke a mirror");
9465-#endif
7917+ msg_print(_("鏡が結界に耐えきれず、壊れてしまった。", "The field broke a mirror"));
94667918 remove_mirror(point_y[0],point_x[0]);
94677919 }
94687920
Show on old repository browser