From 7805679025c3dc384795d1ad021729045c4523a6 Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Wed, 20 Jun 2018 05:11:20 +0900 Subject: [PATCH] add translation --- src/allmain.c | 9 +++ src/apply.c | 28 ++++++++++ src/artifact.c | 10 ++++ src/attrib.c | 30 ++++++++++ src/botl.c | 30 ++++++++++ src/cmd.c | 106 ++++++++++++++++++++++++++++++++++- src/dbridge.c | 6 ++ src/detect.c | 40 +++++++++++++ src/dig.c | 8 +++ src/do.c | 14 +++++ src/do_name.c | 174 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- src/do_wear.c | 19 ++++++- src/dog.c | 5 ++ src/dothrow.c | 25 +++++++++ src/dungeon.c | 53 ++++++++++++++++++ src/eat.c | 31 ++++++++++ src/end.c | 12 ++++ src/engrave.c | 2 +- src/explode.c | 24 ++++++++ src/hack.c | 43 ++++++++++++++ src/invent.c | 19 ++++++- src/lock.c | 21 +++++++ src/mail.c | 16 ++++++ src/mhitm.c | 8 +++ src/minion.c | 3 + src/mkobj.c | 10 ++++ src/mon.c | 39 +++++++++++++ src/monmove.c | 13 +++++ src/mthrowu.c | 36 ++++++++++++ src/muse.c | 34 +++++++++++ src/music.c | 24 ++++++++ src/objnam.c | 44 ++++++++++++++- src/options.c | 33 +++++++++++ src/pager.c | 75 +++++++++++++++++++++++++ src/pickup.c | 18 +++++- src/polyself.c | 109 ++++++++++++++++++++---------------- src/pray.c | 3 + src/priest.c | 8 +++ src/read.c | 20 ++++++- src/region.c | 9 +++ src/role.c | 3 + src/rumors.c | 2 +- src/shk.c | 116 +++++++++++++++++++++++++++++++++++++- src/spell.c | 5 +- src/teleport.c | 2 +- src/timeout.c | 27 +++++++++ src/topten.c | 8 ++- src/trap.c | 14 ++++- src/uhitm.c | 6 ++ src/vault.c | 41 ++++++++++++++ src/weapon.c | 11 ++++ src/wield.c | 45 +++++++++++++++ src/wizard.c | 2 +- src/zap.c | 16 ++++++ 54 files changed, 1441 insertions(+), 68 deletions(-) diff --git a/src/allmain.c b/src/allmain.c index 925f0a2..25097e9 100644 --- a/src/allmain.c +++ b/src/allmain.c @@ -244,7 +244,10 @@ boolean resuming; u.uen = u.uenmax; context.botl = 1; if (u.uen == u.uenmax) +/*JP interrupt_multi("You feel full of energy."); +*/ + interrupt_multi("ƒGƒlƒ‹ƒM[‚ª‰ñ•œ‚µ‚½D"); } if (!u.uinvulnerable) { @@ -524,7 +527,10 @@ int wtcap; } if (reached_full) +/*JP interrupt_multi("You are in full health."); +*/ + interrupt_multi("‘Ì—Í‚ª‰ñ•œ‚µ‚½D"); } void @@ -664,7 +670,10 @@ boolean new_game; /* false => restoring an old game */ /* skip "welcome back" if restoring a doomed character */ if (!new_game && Upolyd && ugenocided()) { /* death via self-genocide is pending */ +/*JP pline("You're back, but you still feel %s inside.", udeadinside()); +*/ + pline("‚ ‚È‚½‚Í‹A‚Á‚Ä‚«‚½‚ªC°‚ª%s‚Ü‚Ü‚¾D", udeadinside()); return; } diff --git a/src/apply.c b/src/apply.c index c6f0000..3a0fd76 100644 --- a/src/apply.c +++ b/src/apply.c @@ -612,8 +612,13 @@ struct obj *obj; You("%s‚ð’Ê‚µ‚Ä–A‚ðo‚µ‚½D", xname(obj)); } else { if (Deaf) +#if 0 /*JP*/ You_feel("rushing air tickle your %s.", body_part(NOSE)); +#else + You_feel("‹ó‹C‚Ì—¬‚ꂪ%s‚ð‚­‚·‚®‚Á‚½D", + body_part(NOSE)); +#endif else /*JP You(whistle_str, obj->cursed ? "shrill" : "high"); @@ -792,12 +797,21 @@ struct obj *obj; it from the engulfer versus from some other creature (note: the two in-use cases can't actually occur; all leashes are released when the hero gets engulfed) */ +#if 0 /*JP*/ You_cant((!obj->leashmon ? "leash %s from inside." : (obj->leashmon == (int) u.ustuck->m_id) ? "unleash %s from inside." : "unleash anything from inside %s."), noit_mon_nam(u.ustuck)); +#else + You_cant((!obj->leashmon + ? "“à‘¤‚©‚ç%s‚ÉŒ‹‚т‚¯‚邱‚Æ‚Í‚Å‚«‚È‚¢D" + : (obj->leashmon == (int) u.ustuck->m_id) + ? "“à‘¤‚©‚ç%s‚ðŠO‚·‚±‚Æ‚Í‚Å‚«‚È‚¢D" + : "%s‚Ì“à‘¤‚©‚çŠO‚·‚±‚Æ‚Í‚Å‚«‚È‚¢D"), + noit_mon_nam(u.ustuck)); +#endif return 0; } if (!obj->leashmon && number_leashed() >= MAXLEASHED) { @@ -843,7 +857,10 @@ struct obj *obj; if (!spotmon && !glyph_is_invisible(levl[cc.x][cc.y].glyph)) { /* for the unleash case, we don't verify whether this unseen monster is the creature attached to the current leash */ +/*JP You("fail to %sleash something.", obj->leashmon ? "un" : ""); +*/ + You("%s‚Ì‚ÉŽ¸”s‚µ‚½D", obj->leashmon ? "ŠO‚·" : "Œ‹‚т‚¯‚é"); /* trying again will work provided the monster is tame (and also that it doesn't change location by retry time) */ map_invisible(cc.x, cc.y); @@ -1158,8 +1175,13 @@ struct obj *obj; } if (u.uswallow) { if (useeit) +#if 0 /*JP*/ You("reflect %s %s.", s_suffix(mon_nam(u.ustuck)), mbodypart(u.ustuck, STOMACH)); +#else + You("%s‚Ì%s‚ð‰f‚µ‚½D", mon_nam(u.ustuck), + mbodypart(u.ustuck, STOMACH)); +#endif return 1; } if (Underwater) { @@ -2125,14 +2147,20 @@ boolean showmsg; && (traj == jDiag || ((traj & jHorz) != 0) == (lev->horizontal != 0))) { if (showmsg) +/*JP You_cant("jump diagonally out of a doorway."); +*/ + You_cant("o“ü‚èŒû‚©‚çŽÎ‚ß‚É”ò‚яo‚·‚±‚Æ‚Í‚Å‚«‚È‚¢D"); return FALSE; } uc.x = u.ux, uc.y = u.uy; tc.x = x, tc.y = y; /* target */ if (!walk_path(&uc, &tc, check_jump, (genericptr_t) &traj)) { if (showmsg) +/*JP There("is an obstacle preventing that jump."); +*/ + pline("”ò‚Ô‚Ì‚ðŽ×–‚‚·‚鉽‚©‚ª‚ ‚éD"); return FALSE; } } diff --git a/src/artifact.c b/src/artifact.c index 96487f4..1eb4637 100644 --- a/src/artifact.c +++ b/src/artifact.c @@ -2425,17 +2425,27 @@ int x, y; void mkot_trap_warn() { +#if 0 /*JP*/ static const char *const heat[7] = { "cool", "slightly warm", "warm", "very warm", "hot", "very hot", "like fire" }; +#else + static const char *const heat[7] = { + "—₽‚­", "­‚µ‰·‚©‚­", "‰·‚©‚­", "‚Æ‚Ä‚à‰·‚©‚­", + "”M‚­", "‚Æ‚Ä‚à”M‚­", "‰Š‚̂悤‚É" + }; +#endif if (!uarmg && uwep && uwep->oartifact == ART_MASTER_KEY_OF_THIEVERY) { int idx, ntraps = count_surround_traps(u.ux, u.uy); if (ntraps != mkot_trap_warn_count) { idx = min(ntraps, SIZE(heat) - 1); +/*JP pline_The("Key feels %s%c", heat[idx], (ntraps > 3) ? '!' : '.'); +*/ + pline_The("Œ®‚Í%sŠ´‚¶‚½%s", heat[idx], (ntraps > 3) ? "I" : "D"); } mkot_trap_warn_count = ntraps; } else diff --git a/src/attrib.c b/src/attrib.c index 67f07a8..a0de2cc 100644 --- a/src/attrib.c +++ b/src/attrib.c @@ -267,8 +267,13 @@ int msgflg; /* positive => no message, zero => message, and */ abonflg ? "¡‚Ì‚Æ‚±‚ë" : "Šù‚É", attrstr); #endif else /* current stayed the same but base value changed */ +#if 0 /*JP*/ Your("innate %s has %s.", attrname[ndx], (incr > 0) ? "improved" : "declined"); +#else + Your("–{Ž¿“I‚È%s‚ª%s‚µ‚½D", attrname[ndx], + (incr > 0) ? "Œüã" : "’ቺ"); +#endif } return FALSE; } @@ -378,9 +383,15 @@ boolean exclaim; /* emphasis */ * (dunce cap) is such that we don't need message fixups for them. */ if (typ == A_STR && ACURR(A_STR) == STR19(25)) +/*JP msg_txt = "innately weaker"; +*/ + msg_txt = "–{Ž¿“I‚ÉŽã‚­‚È‚Á‚½"; else if (typ == A_CON && ACURR(A_CON) == 25) +/*JP msg_txt = "sick inside"; +*/ + msg_txt = "“à•”‚É•a‚ð‚©‚©‚¦‚½"; /*JP (*func)("%s%c", msg_txt, exclaim ? '!' : '.'); @@ -1022,17 +1033,27 @@ int propidx; /* special cases can have negative values */ */ Strcpy(buf, "¶‚Ü‚ê‚È‚ª‚ç‚É"); else if (innateness == FROM_INTR) /* [].intrinsic & FROMOUTSIDE */ +/*JP Strcpy(buf, " intrinsically"); +*/ + Strcpy(buf, "–{Ž¿“I‚É"); else if (innateness == FROM_EXP) /*JP Strcpy(buf, " because of your experience"); */ Strcpy(buf, "ŒoŒ±‚É‚æ‚Á‚Ä"); else if (innateness == FROM_LYCN) +/*JP Strcpy(buf, " due to your lycanthropy"); +*/ + Strcpy(buf, "b‰»•a‚É‚æ‚Á‚Ä"); else if (innateness == FROM_FORM) +/*JP Strcpy(buf, " from current creature form"); +*/ + Strcpy(buf, "Œ»Ý‚ÌŽp‚É‚æ‚Á‚Ä"); else if (propidx == FAST && Very_fast) +#if 0 /*JP*/ Sprintf(buf, because_of, ((HFast & TIMEOUT) != 0L) ? "a potion or spell" : ((EFast & W_ARMF) != 0L && uarmf->dknown @@ -1040,6 +1061,15 @@ int propidx; /* special cases can have negative values */ ? ysimple_name(uarmf) /* speed boots */ : EFast ? "worn equipment" : something); +#else + Sprintf(buf, because_of, + ((HFast & TIMEOUT) != 0L) ? "–ò‚âŽô•¶" + : ((EFast & W_ARMF) != 0L && uarmf->dknown + && objects[uarmf->otyp].oc_name_known) + ? ysimple_name(uarmf) /* speed boots */ + : EFast ? "‘•”õ" + : something); +#endif else if (wizard && (obj = what_gives(&u.uprops[propidx].extrinsic)) != 0) Sprintf(buf, because_of, obj->oartifact diff --git a/src/botl.c b/src/botl.c index fbae5fa..e609f8e 100644 --- a/src/botl.c +++ b/src/botl.c @@ -214,14 +214,20 @@ do_statusline2() * unusual for more than one of them to apply at a time.] */ if (Stoned) +/*JP Strcpy(nb = eos(nb), " Stone"); +*/ + Strcpy(nb = eos(nb), " Î‰»"); if (Slimed) /*JP Strcpy(nb = eos(nb), " Slime"); */ Strcpy(nb = eos(nb), " ‚Ç‚ë‚Ç‚ë"); if (Strangled) +/*JP Strcpy(nb = eos(nb), " Strngl"); +*/ + Strcpy(nb = eos(nb), " ’‚‘§"); if (Sick) { if (u.usick_type & SICK_VOMITABLE) /*JP @@ -244,7 +250,10 @@ do_statusline2() */ Strcpy(nb = eos(nb), " –Ó–Ú"); if (Deaf) +/*JP Strcpy(nb = eos(nb), " Deaf"); +*/ + Strcpy(nb = eos(nb), " Ž¨˜W"); if (Stunned) /*JP Strcpy(nb = eos(nb), " Stun"); @@ -262,11 +271,20 @@ do_statusline2() Strcpy(nb = eos(nb), " Œ¶Šo"); /* levitation and flying are mutually exclusive; riding is not */ if (Levitation) +/*JP Strcpy(nb = eos(nb), " Lev"); +*/ + Strcpy(nb = eos(nb), " •‚—V"); if (Flying) +/*JP Strcpy(nb = eos(nb), " Fly"); +*/ + Strcpy(nb = eos(nb), " ”òs"); if (u.usteed) +/*JP Strcpy(nb = eos(nb), " Ride"); +*/ + Strcpy(nb = eos(nb), " ‹Ræ"); cln = strlen(cond); /* @@ -628,7 +646,11 @@ bot_via_windowport() Strcpy(nb = buf, plname); nb[0] = highc(nb[0]); nb[10] = '\0'; +#if 0 /*JP*/ Sprintf(nb = eos(nb), " the "); +#else + Sprintf(nb = eos(nb), " "); +#endif if (Upolyd) { for (i = 0, nb = strcpy(eos(nb), mons[u.umonnum].mname); nb[i]; i++) if (i == 0 || nb[i - 1] == ' ') @@ -651,11 +673,19 @@ bot_via_windowport() blstats[idx][BL_CH].a.a_int = ACURR(A_CHA); /* Alignment */ +#if 0 /*JP*/ Strcpy(blstats[idx][BL_ALIGN].val, (u.ualign.type == A_CHAOTIC) ? "Chaotic" : (u.ualign.type == A_NEUTRAL) ? "Neutral" : "Lawful"); +#else + Strcpy(blstats[idx][BL_ALIGN].val, (u.ualign.type == A_CHAOTIC) + ? "¬“×" + : (u.ualign.type == A_NEUTRAL) + ? "’†—§" + : "’˜"); +#endif /* Score */ blstats[idx][BL_SCORE].a.a_long = diff --git a/src/cmd.c b/src/cmd.c index afc6220..beff06f 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -335,7 +335,10 @@ doextcmd(VOID_ARGS) func = extcmdlist[idx].ef_funct; if (!wizard && (extcmdlist[idx].flags & WIZMODECMD)) { +/*JP You("can't do that."); +*/ + pline("‚»‚ê‚Í‚Å‚«‚Ü‚¹‚ñD"); return 0; } if (iflags.menu_requested && !accept_menu_prefix(func)) { @@ -394,7 +397,10 @@ doextlist(VOID_ARGS) putstr(datawin, 0, buf); } putstr(datawin, 0, ""); +/*JP putstr(datawin, 0, " Commands marked with a * will be autocompleted."); +*/ + putstr(datawin, 0, " *•t‚«‚̃Rƒ}ƒ“ƒh‚ÍŽ©“®•âŠ®‚³‚ê‚Ü‚·D"); display_nhwindow(datawin, FALSE); destroy_nhwindow(datawin); return 0; @@ -1434,20 +1440,32 @@ doterrain(VOID_ARGS) any = zeroany; any.a_int = 1; add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE, +/*JP "known map without monsters, objects, and traps", +*/ + "‰ö•¨C•¨C㩂Ȃµ‚Ì’n}", MENU_SELECTED); any.a_int = 2; add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE, +/*JP "known map without monsters and objects", +*/ + "‰ö•¨C•¨‚È‚µ‚Ì’n}", MENU_UNSELECTED); any.a_int = 3; add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE, +/*JP "known map without monsters", +*/ + "‰ö•¨‚È‚µ‚Ì’n}", MENU_UNSELECTED); if (discover || wizard) { any.a_int = 4; add_menu(men, NO_GLYPH, &any, 0, 0, ATR_NONE, +/*JP "full map without monsters, objects, and traps", +*/ + "‰ö•¨C•¨C㩂Ȃµ‚ÌŠ®‘S‚È’n}", MENU_UNSELECTED); if (wizard) { any.a_int = 5; @@ -1460,7 +1478,10 @@ doterrain(VOID_ARGS) MENU_UNSELECTED); } } +/*JP end_menu(men, "View which?"); +*/ + end_menu(men, "‚Ç‚ê‚ðŒ©‚éH"); n = select_menu(men, PICK_ONE, &sel); destroy_nhwindow(men); @@ -1579,7 +1600,11 @@ char *outbuf; /* Protection amount is typically larger than damage or to-hit; reduce magnitude by a third in order to stretch modifier ranges (small:1..5, moderate:6..10, large:11..19, huge:20+) */ +#if 0 /*JP*/ if (!strcmp(inctyp, "defense")) +#else + if (!strcmp(inctyp, "–hŒä")) +#endif absamt = (absamt * 2) / 3; if (absamt <= 3) @@ -1611,7 +1636,11 @@ char *outbuf; */ bonus = (incamt > 0) ? "ƒ{[ƒiƒX" : "ƒyƒiƒ‹ƒeƒB"; /* "bonus " (to hit) vs " bonus" (damage, defense) */ +#if 0 /*JP*/ invrt = strcmp(inctyp, "to hit") ? TRUE : FALSE; +#else + invrt = strcmp(inctyp, "–½’†—¦") ? TRUE : FALSE; +#endif #if 0 /*JP*/ Sprintf(outbuf, "%s %s %s", modif, invrt ? inctyp : bonus, @@ -1636,18 +1665,33 @@ int final; switch (category) { case HALF_PHDAM: +/*JP category_name = "physical"; +*/ + category_name = "•¨—"; break; case HALF_SPDAM: +/*JP category_name = "spell"; +*/ + category_name = "Žô•¶"; break; default: +/*JP category_name = "unknown"; +*/ + category_name = "•s–¾"; break; } +#if 0 /*JP*/ Sprintf(buf, " %s %s damage", (final || wizard) ? "half" : "reduced", category_name); enl_msg(You_, "take", "took", buf, from_what(category)); +#else + Sprintf(buf, " %sƒ_ƒ[ƒW‚ð%s", (final || wizard) ? "”¼Œ¸" : "Œ¸­", + category_name); + enl_msg(You_, "‚µ‚Ä‚¢‚é", "‚µ‚Ä‚¢‚½", buf, from_what(category)); +#endif } /* is hero actively using water walking capability on water (or lava)? */ @@ -1976,48 +2020,80 @@ int final; if (hp < 0) hp = 0; +/*JP Sprintf(buf, "%d hit points (max:%d)", hp, hpmax); +*/ + Sprintf(buf, "%dƒqƒbƒgƒ|ƒCƒ“ƒg(Å‘å:%d)", hp, hpmax); you_have(buf, ""); +/*JP Sprintf(buf, "%d magic power (max:%d)", u.uen, u.uenmax); +*/ + Sprintf(buf, "%d–‚—̓|ƒCƒ“ƒg(Å‘å:%d)", u.uen, u.uenmax); you_have(buf, ""); Sprintf(buf, "%d", u.uac); +/*JP enl_msg("Your armor class ", "is ", "was ", buf, ""); +*/ + enl_msg("‚ ‚È‚½‚Ì–hŒä’l‚Í", "‚Å‚ ‚é", "‚Å‚ ‚Á‚½", buf, ""); if (Upolyd) { switch (mons[u.umonnum].mlevel) { case 0: /* status line currently being explained shows "HD:0" */ +/*JP Strcpy(buf, "0 hit dice (actually 1/2)"); +*/ + Strcpy(buf, "HD0(ŽÀÛ‚É‚Í1/2)"); break; case 1: +/*JP Strcpy(buf, "1 hit die"); +*/ + Strcpy(buf, "HD1"); break; default: +/*JP Sprintf(buf, "%d hit dice", mons[u.umonnum].mlevel); +*/ + Sprintf(buf, "HD%d", mons[u.umonnum].mlevel); break; } } else { /* flags.showexp does not matter */ /* experience level is already shown in the Background section */ +#if 0 /*JP*/ Sprintf(buf, "%-1ld experience point%s", u.uexp, plur(u.uexp)); +#else + Sprintf(buf, "ŒoŒ±’l%-1ldƒ|ƒCƒ“ƒg", + u.uexp); +#endif } you_have(buf, ""); /* this is shown even if the 'time' option is off */ +/*JP Sprintf(buf, "the dungeon %ld turn%s ago", moves, plur(moves)); +*/ + Sprintf(buf, "%ldƒ^[ƒ“‘O‚É–À‹{‚É“ü‚Á‚½", moves); /* same phrasing at end of game: "entered" is unconditional */ - enlght_line(You_, "entered ", buf, ""); + enlght_line(You_, "", buf, ""); #ifdef SCORE_ON_BOTL if (flags.showscore) { /* describes what's shown on status line, which is an approximation; only show it here if player has the 'showscore' option enabled */ +#if 0 /*JP*/ Sprintf(buf, "%ld%s", botl_score(), !final ? "" : " before end-of-game adjustments"); enl_msg("Your score ", "is ", "was ", buf, ""); +#else + Sprintf(buf, "%s%ld", botl_score(), + !final ? "" : "ƒQ[ƒ€I—¹Žž‚Ì’²®‘O‚Í"); + enl_msg("‚ ‚È‚½‚̃XƒRƒA‚Í", "‚Å‚ ‚é", "‚Å‚ ‚Á‚½", buf, ""); +#endif } #endif @@ -2437,9 +2513,15 @@ int final; struct obj *saddle = which_armor(u.usteed, W_SADDLE); if (saddle && saddle->cursed) { +#if 0 /*JP*/ Sprintf(buf, "stuck to %s %s", s_suffix(steedname), simpleonames(saddle)); you_are(buf, ""); +#else + Sprintf(buf, "%s‚Ì%s‚ɂ‚©‚Ü‚Á‚Ä", steedname, + simpleonames(saddle)); + you_are_ing(buf, ""); +#endif } } if (Wounded_legs) { @@ -4106,8 +4188,13 @@ struct ext_func_tab extcmdlist[] = { { M('r'), "rub", "ƒ‰ƒ“ƒv‚ð‚±‚·‚é", dorub, AUTOCOMPLETE }, #endif { 'S', "save", "save the game and exit", dosave, IFBURIED | GENERALCMD }, +#if 0 /*JP*/ { 's', "search", "search for traps and secret doors", dosearch, IFBURIED, "searching" }, +#else + { 's', "search", "㩂â‰B‚µ”à‚ð’T‚·", + dosearch, IFBURIED, "’T‚·" }, +#endif { '*', "seeall", "show all equipment in use", doprinuse, IFBURIED }, { AMULET_SYM, "seeamulet", "show the amulet currently worn", dopramulet, IFBURIED }, @@ -4207,8 +4294,13 @@ struct ext_func_tab extcmdlist[] = { { '\0', "vision", "Ž‹ŠE”z—ñ‚ðŒ©‚é", #endif wiz_show_vision, IFBURIED | AUTOCOMPLETE | WIZMODECMD }, +#if 0 /*JP*/ { '.', "wait", "rest one move while doing nothing", donull, IFBURIED, "waiting" }, +#else + { '.', "wait", "ˆê•à•ª‰½‚à‚µ‚È‚¢", + donull, IFBURIED, "‹xŒe‚·‚é" }, +#endif { 'W', "wear", "wear a piece of armor", dowear }, { '&', "whatdoes", "tell what a command does", dowhatdoes, IFBURIED }, { '/', "whatis", "show what type of thing a symbol corresponds to", @@ -5421,7 +5513,10 @@ register char *cmd; a movement attempt, but that didn't provide for any feedback and led to strangeness if the key pressed ('u' in particular) was overloaded for num_pad use */ +/*JP You_cant("get there from here..."); +*/ + You_cant("‚±‚±‚©‚ç‚»‚±‚ւ͍s‚¯‚Ü‚¹‚ñDDD"); context.run = 0; context.nopick = context.forcefight = FALSE; context.move = context.mv = FALSE; @@ -5459,7 +5554,10 @@ register char *cmd; /* current - use *cmd to directly index cmdlist array */ if ((tlist = Cmd.commands[*cmd & 0xff]) != 0) { if (!wizard && (tlist->flags & WIZMODECMD)) { +/*JP You_cant("do that!"); +*/ + pline("‚»‚ê‚Í‚Å‚«‚Ü‚¹‚ñI"); res = 0; } else if (u.uburied && !(tlist->flags & IFBURIED)) { /*JP @@ -6347,7 +6445,10 @@ boolean historical; /* whether to include in message history: True => yes */ } if (historical) { +/*JP Sprintf(qbuf, "Count: %ld ", *count); +*/ + Sprintf(qbuf, "”: %ld ", *count); (void) key2txt((uchar) key, eos(qbuf)); putmsghistory(qbuf, FALSE); } @@ -6728,7 +6829,10 @@ dosuspend_core() dosuspend(); } else #endif +/*JP Norep("Suspend command not available."); +*/ + Norep("’†’fƒRƒ}ƒ“ƒh‚Í—˜—p‚Å‚«‚Ü‚¹‚ñD"); return 0; } diff --git a/src/dbridge.c b/src/dbridge.c index b1a115d..a83cbe8 100644 --- a/src/dbridge.c +++ b/src/dbridge.c @@ -629,9 +629,15 @@ struct entity *etmp; } else { if (crm->typ == DRAWBRIDGE_DOWN) { if (is_u(etmp)) { +#if 0 /*JP*/ killer.format = NO_KILLER_PREFIX; Strcpy(killer.name, "crushed to death underneath a drawbridge"); +#else + killer.format = KILLED_BY; + Strcpy(killer.name, + "’µ‚Ë‹´‚̉º•~‚É‚È‚Á‚Ä"); +#endif } /*JP pline("%s crushed underneath the drawbridge.", diff --git a/src/detect.c b/src/detect.c index 97365de..01b7484 100644 --- a/src/detect.c +++ b/src/detect.c @@ -365,12 +365,21 @@ register struct obj *sobj; */ "‚ ‚È‚½‚͏«—ˆ‚ÌŒoÏó‹µ‚ªS”z‚É‚È‚Á‚½D"); else if (steedgold) +#if 0 /*JP*/ Sprintf(buf, "You feel interested in %s financial situation.", s_suffix(x_monnam(u.usteed, u.usteed->mtame ? ARTICLE_YOUR : ARTICLE_THE, (char *) 0, SUPPRESS_SADDLE, FALSE))); +#else + Sprintf(buf, "‚ ‚È‚½‚Í%s‚ÌŒoÏó‹µ‚É‹»–¡‚ªo‚Ä‚«‚½D", + x_monnam(u.usteed, + u.usteed->mtame ? ARTICLE_YOUR + : ARTICLE_THE, + (char *) 0, + SUPPRESS_SADDLE, FALSE)); +#endif else /*JP Strcpy(buf, "You feel materially poor."); @@ -451,7 +460,10 @@ outgoldmap: You("‚Ç‚ñ—~‚É‚È‚Á‚½‚悤‚È‹C‚ª‚µ‚½C‚»‚µ‚Ä‹à‰Ý‚̈ʒu‚ðŠ´’m‚µ‚½I"); exercise(A_WIS, TRUE); +/*JP browse_map(ter_typ, "gold"); +*/ + browse_map(ter_typ, "‹à"); reconstrain_map(); docrt(); @@ -606,7 +618,10 @@ register struct obj *sobj; You("%s‚ðŠ´’m‚µ‚½D", what); exercise(A_WIS, TRUE); +/*JP browse_map(ter_typ, "food"); +*/ + browse_map(ter_typ, "H—¿"); reconstrain_map(); docrt(); @@ -823,7 +838,10 @@ int class; /* an object class, 0 for all */ if (!ct) display_nhwindow(WIN_MAP, TRUE); else +/*JP browse_map(ter_typ, "object"); +*/ + browse_map(ter_typ, "•¨‘Ì"); reconstrain_map(); docrt(); /* this will correctly reset vision */ @@ -911,7 +929,10 @@ int mclass; /* monster class, 0 for all */ /* one-shot detection--allow player to move cursor around and get autodescribe feedback */ EDetect_monsters |= I_SPECIAL; +/*JP browse_map(TER_DETECT | TER_MON, "monster of interest"); +*/ + browse_map(TER_DETECT | TER_MON, "ŠÖS‚Ì‚ ‚é‰ö•¨"); EDetect_monsters &= ~I_SPECIAL; } @@ -1109,7 +1130,10 @@ outtrapmap: */ You("%s‹CŽ‚É‚È‚Á‚½D", cursed_src ? "‚Æ‚Ä‚à‚Ç‚ñ—~‚È" : "‚¾‚Ü‚³‚ê‚Ä‚¢‚é‚悤‚È"); +/*JP browse_map(ter_typ, "trap of interest"); +*/ + browse_map(ter_typ, "ŠÖS‚Ì‚ ‚éã©"); reconstrain_map(); docrt(); /* redraw the screen to remove unseen traps from the map */ @@ -1505,8 +1529,13 @@ do_mapping() if (!level.flags.hero_memory || unconstrained) { flush_screen(1); /* flush temp screen */ /* browse_map() instead of display_nhwindow(WIN_MAP, TRUE) */ +#if 0 /*JP*/ browse_map(TER_DETECT | TER_MAP | TER_TRP | TER_OBJ, "anything of interest"); +#else + browse_map(TER_DETECT | TER_MAP | TER_TRP | TER_OBJ, + "ŠÖS‚Ì‚ ‚é‚à‚Ì"); +#endif docrt(); } reconstrain_map(); @@ -1548,12 +1577,18 @@ struct obj *sobj; /* scroll--actually fake spellbook--object */ /* the getpos() prompt from browse_map() is only shown when flags.verbose is set, but make this unconditional so that not-verbose users become aware of the prompting situation */ +/*JP You("sense your surroundings."); +*/ + You("‚Ü‚í‚è‚Ì‚à‚Ì‚ðŠ´’m‚µ‚½D"); if (extended || glyph_is_monster(glyph_at(u.ux, u.uy))) ter_typ |= TER_MON; if (extended) EDetect_monsters |= I_SPECIAL; +/*JP browse_map(ter_typ, "anything of interest"); +*/ + browse_map(ter_typ, "ŠÖS‚Ì‚ ‚é‚à‚Ì"); EDetect_monsters &= ~I_SPECIAL; refresh = TRUE; } @@ -1816,8 +1851,13 @@ boolean via_warning; if (mtmp->mundetected && (is_hider(mtmp->data) || mtmp->data->mlet == S_EEL)) if (via_warning) { +#if 0 /*JP*/ Your("warning senses cause you to take a second %s.", Blind ? "to check nearby" : "look close by"); +#else + Your("Œx‰úS‚ª%s‚µ‚΂炭‚©‚©‚Á‚½D", + Blind ? "‚Ü‚í‚è‚𒲂ׂé‚Ì‚É" : "‹ß‚­‚ðŒ©‚é‚Ì‚É"); +#endif display_nhwindow(WIN_MESSAGE, FALSE); /* flush messages */ } mtmp->mundetected = 0; diff --git a/src/dig.c b/src/dig.c index 32510ab..ba1820e 100644 --- a/src/dig.c +++ b/src/dig.c @@ -738,7 +738,10 @@ int ttyp; if (ttyp == PIT) { if (madeby_u) { if (x != u.ux || y != u.uy) +/*JP You("dig an adjacent pit."); +*/ + You("—ׂ̗Ž‚µŒŠ‚ðŒ@‚Á‚½D"); else /*JP You("dig a pit in the %s.", surface_type); @@ -2393,8 +2396,13 @@ int x, y; newsym(x, y); if (costly && loss) { +#if 0 /*JP*/ You("owe %s %ld %s for burying merchandise.", mon_nam(shkp), loss, currency(loss)); +#else + You("–„‚Ü‚Á‚½¤•i‚ÉŠÖ‚µ‚Ä%s‚É%ld%s‚Ì•‰Â‚𕉂Á‚½D", mon_nam(shkp), loss, + currency(loss)); +#endif } } diff --git a/src/do.c b/src/do.c index 00c98a3..7f78864 100644 --- a/src/do.c +++ b/src/do.c @@ -404,7 +404,10 @@ polymorph_sink() */ pline_The("—¬‚µ‘ä‚Í%s‚ɕω»‚µ‚½I", defsyms[sym].explanation); else +/*JP pline_The("sink vanishes."); +*/ + pline("—¬‚µ‘ä‚͏Á‚¦‚½D"); newsym(u.ux, u.uy); } @@ -992,7 +995,10 @@ doddrop() int result = 0; if (!invent) { +/*JP You("have nothing to drop."); +*/ + You("—Ž‚Æ‚·‚à‚Ì‚ð‰½‚àŽ‚Á‚Ä‚¢‚È‚¢D"); return 0; } add_valid_menu_class(0); /* clear any classes already there */ @@ -1194,10 +1200,18 @@ dodown() (glyph_to_cmap(levl[u.ux][u.uy].glyph) == S_dnladder); } if (Is_airlevel(&u.uz)) +/*JP You("are floating in the %s.", surface(u.ux, u.uy)); +*/ + You("%s‚Ì’†‚É•‚‚¢‚Ä‚¢‚éD", surface(u.ux, u.uy)); else if (Is_waterlevel(&u.uz)) +#if 0 /*JP*/ You("are floating in %s.", is_pool(u.ux, u.uy) ? "the water" : "a bubble of air"); +#else + You("%s‚Ì’†‚É•‚‚¢‚Ä‚¢‚éD", + is_pool(u.ux, u.uy) ? "…" : "‹ó‹C‚Ì–A"); +#endif else #if 0 /*JP:T*/ floating_above(stairs_down ? "stairs" : ladder_down diff --git a/src/do_name.c b/src/do_name.c index dc4e79a..ef2b7be 100644 --- a/src/do_name.c +++ b/src/do_name.c @@ -55,7 +55,13 @@ boolean FDECL((*gp_getvalidf), (int, int)); getpos_getvalid = gp_getvalidf; } +/*JP: + [0] "cannot see %s" + [1] "pick a %s" + [2] "use XXX to move the cursor to %s" + */ const char *const gloc_descr[NUM_GLOCS][4] = { +#if 0 /*JP*/ { "any monsters", "monster", "next monster", "monsters" }, { "any items", "item", "next object", "objects" }, { "any doors", "door", "next door or doorway", "doors or doorways" }, @@ -63,12 +69,25 @@ const char *const gloc_descr[NUM_GLOCS][4] = { "unexplored locations" }, { "anything interesting", "interesting thing", "anything interesting", "anything interesting" } +#else + { "‰ö•¨", "‰ö•¨", "‰ö•¨‚Ì—×", "‰ö•¨" }, + { "•¨", "•¨", "•¨‚Ì—×", "•¨" }, + { "”à", "”à", "”à‚âo“ü‚èŒû‚Ì—×", "”à‚âo“ü‚èŒû" }, + { "–¢’Tõ•”•ª", "–¢’Tõ•”•ª", "–¢’Tõ‚̈ʒu", "–¢’Tõ‚̈ʒu" }, + { "ŠÖS‚Ì‚ ‚é‚à‚Ì", "ŠÖS‚Ì‚ ‚é‚à‚Ì", "ŠÖS‚Ì‚ ‚é‚à‚Ì", "ŠÖS‚Ì‚ ‚é‚à‚Ì" } +#endif }; const char *const gloc_filtertxt[NUM_GFILTER] = { +#if 0 /*JP*/ "", " in view", " in this area" +#else + "", + "Ž‹ŠE‚Ì’†‚Ì", + "‚±‚̃GƒŠƒA‚Ì" +#endif }; void @@ -80,12 +99,21 @@ int gloc; { char sbuf[BUFSZ]; +#if 0 /*JP*/ Sprintf(sbuf, "Use '%s' or '%s' to %s%s%s.", k1, k2, iflags.getloc_usemenu ? "get a menu of " : "move the cursor to ", gloc_descr[gloc][2 + iflags.getloc_usemenu], gloc_filtertxt[iflags.getloc_filter]); +#else + Sprintf(sbuf, "'%s'‚©'%s'‚Å%s%s%sD", + k1, k2, + gloc_filtertxt[iflags.getloc_filter], + gloc_descr[gloc][2 + iflags.getloc_usemenu], + iflags.getloc_usemenu ? "‚̃ƒjƒ…[‚ðo‚·" + : "‚ɃJ[ƒ\ƒ‹‚ð“®‚©‚·"); +#endif putstr(tmpwin, 0, sbuf); } @@ -102,7 +130,7 @@ const char *goal; const char *const fastmovemode[2] = { "8 units at a time", "skipping same glyphs" }; #else - const char *const fastmovemode[2] = { "ˆê“x‚É8•à", + const char *const fastmovemode[2] = { "ˆê“x‚É8ƒ}ƒX", "“¯‚¶’nŒ`‚ð”ò‚΂µ‚Ä" }; #endif @@ -164,26 +192,49 @@ const char *goal; visctrl(Cmd.spkeys[NHKF_GETPOS_INTERESTING_PREV]), GLOC_INTERESTING); } +#if 0 /*JP*/ Sprintf(sbuf, "Use '%s' to change fast-move mode to %s.", visctrl(Cmd.spkeys[NHKF_GETPOS_MOVESKIP]), fastmovemode[!iflags.getloc_moveskip]); +#else + Sprintf(sbuf, "'%s'‚ō‚‘¬ˆÚ“®ƒ‚[ƒh‚ð%sˆÚ“®‚É‚·‚éD", + visctrl(Cmd.spkeys[NHKF_GETPOS_MOVESKIP]), + fastmovemode[!iflags.getloc_moveskip]); +#endif putstr(tmpwin, 0, sbuf); if (!iflags.terrainmode || (iflags.terrainmode & TER_DETECT) == 0) { +#if 0 /*JP*/ Sprintf(sbuf, "Use '%s' to toggle menu listing for possible targets.", visctrl(Cmd.spkeys[NHKF_GETPOS_MENU])); +#else + Sprintf(sbuf, "'%s'‚ʼn”\‚ȃ^[ƒQƒbƒg‚̃ƒjƒ…[•\Ž¦‚ðØ‚è‘Ö‚¦‚éD", + visctrl(Cmd.spkeys[NHKF_GETPOS_MENU])); +#endif putstr(tmpwin, 0, sbuf); +#if 0 /*JP*/ Sprintf(sbuf, "Use '%s' to change the mode of limiting possible targets.", visctrl(Cmd.spkeys[NHKF_GETPOS_LIMITVIEW])); +#else + Sprintf(sbuf, + "'%s'‚Ő§ŒÀ‚³‚ꂽ‰Â”\‚ȃ^[ƒQƒbƒg‚̃‚[ƒh‚ðØ‚è‘Ö‚¦‚éD", + visctrl(Cmd.spkeys[NHKF_GETPOS_LIMITVIEW])); +#endif putstr(tmpwin, 0, sbuf); } if (!iflags.terrainmode) { char kbuf[BUFSZ]; if (getpos_getvalid) { +#if 0 /*JP*/ Sprintf(sbuf, "Use '%s' or '%s' to move to valid locations.", visctrl(Cmd.spkeys[NHKF_GETPOS_VALID_NEXT]), visctrl(Cmd.spkeys[NHKF_GETPOS_VALID_PREV])); +#else + Sprintf(sbuf, "'%s'‚©'%s'‚Ő³“–‚Ȉʒu‚Ɉړ®‚·‚éD", + visctrl(Cmd.spkeys[NHKF_GETPOS_VALID_NEXT]), + visctrl(Cmd.spkeys[NHKF_GETPOS_VALID_PREV])); +#endif putstr(tmpwin, 0, sbuf); } if (getpos_hilitefunc) { @@ -205,21 +256,37 @@ const char *goal; #endif putstr(tmpwin, 0, sbuf); if (iflags.cmdassist) { /* assisting the '/' command, I suppose... */ +#if 0 /*JP*/ Sprintf(sbuf, (iflags.getpos_coords == GPCOORDS_NONE) ? "(Set 'whatis_coord' option to include coordinates with '%s' text.)" : "(Reset 'whatis_coord' option to omit coordinates from '%s' text.)", visctrl(Cmd.spkeys[NHKF_GETPOS_AUTODESC])); +#else + Sprintf(sbuf, + (iflags.getpos_coords == GPCOORDS_NONE) + ? "('%s'‚ɍÀ•W‚ðŠÜ‚Þ‚É‚Í'whatis_coord'ƒIƒvƒVƒ‡ƒ“‚ðƒIƒ“‚É‚·‚éD)" + : "('%s'‚©‚çÀ•W‚ðœ‚­‚É‚Í'whatis_coord'ƒIƒvƒVƒ‡ƒ“‚ðƒIƒt‚É‚·‚éD)", + visctrl(Cmd.spkeys[NHKF_GETPOS_AUTODESC])); +#endif } /* disgusting hack; the alternate selection characters work for any getpos call, but only matter for dowhatis (and doquickwhatis) */ doing_what_is = (goal == what_is_an_unknown_object); if (doing_what_is) { +#if 0 /*JP*/ Sprintf(kbuf, "'%s' or '%s' or '%s' or '%s'", visctrl(Cmd.spkeys[NHKF_GETPOS_PICK]), visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_Q]), visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_O]), visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_V])); +#else + Sprintf(kbuf, "'%s'‚©'%s'‚©'%s'‚©'%s'", + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK]), + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_Q]), + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_O]), + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_V])); +#endif } else { Sprintf(kbuf, "'%s'", visctrl(Cmd.spkeys[NHKF_GETPOS_PICK])); } @@ -230,22 +297,47 @@ const char *goal; #endif putstr(tmpwin, 0, sbuf); if (doing_what_is) { +#if 0 /*JP*/ Sprintf(sbuf, " '%s' describe current spot, show 'more info', move to another spot.", visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_V])); +#else + Sprintf(sbuf, + " '%s'‚ÍŒ»Ý‚̈ʒu‚ðà–¾‚µA’ljÁî•ñ‚ð•\Ž¦‚µAŽŸ‚̈ʒu‚Ɉړ®‚·‚éD", + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_V])); +#endif putstr(tmpwin, 0, sbuf); +#if 0 /*JP*/ Sprintf(sbuf, " '%s' describe current spot,%s move to another spot;", visctrl(Cmd.spkeys[NHKF_GETPOS_PICK]), flags.help ? " prompt if 'more info'," : ""); +#else + Sprintf(sbuf, + " '%s'‚ÍŒ»Ý‚̈ʒu‚ðà–¾‚µC%sŽŸ‚̈ʒu‚Ɉړ®‚·‚é;", + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK]), + flags.help ? "’ljÁî•ñ‚ª‚ ‚ê‚Ίm”F‚µC" : ""); +#endif putstr(tmpwin, 0, sbuf); +#if 0 /*JP*/ Sprintf(sbuf, " '%s' describe current spot, move to another spot;", visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_Q])); +#else + Sprintf(sbuf, + " '%s'‚ÍŒ»Ý‚̈ʒu‚ðà–¾‚µCŽŸ‚̈ʒu‚Ɉړ®‚·‚é;", + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_Q])); +#endif putstr(tmpwin, 0, sbuf); +#if 0 /*JP*/ Sprintf(sbuf, " '%s' describe current spot, stop looking at things;", visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_O])); +#else + Sprintf(sbuf, + " '%s'‚ÍŒ»Ý‚̈ʒu‚ðà–¾‚µCŒ©‚é‚Ì‚ð‚â‚ß‚é;", + visctrl(Cmd.spkeys[NHKF_GETPOS_PICK_O])); +#endif putstr(tmpwin, 0, sbuf); } } @@ -506,16 +598,26 @@ boolean fulldir; int dst; if (!dx && !dy) { +/*JP Sprintf(buf, "here"); +*/ + Sprintf(buf, "‚±‚±"); } else if ((dst = xytod(dx, dy)) != -1) { /* explicit direction; 'one step' is implicit */ Sprintf(buf, "%s", directionname(dst)); } else { const char *dirnames[4][2] = { +#if 0 /*JP*/ { "n", "north" }, { "s", "south" }, { "w", "west" }, { "e", "east" } }; +#else + { "n", "–k" }, + { "s", "“ì" }, + { "w", "¼" }, + { "e", "“Œ" } }; +#endif buf[0] = '\0'; /* 9999: protect buf[] against overflow caused by invalid values */ if (dy) { @@ -584,12 +686,16 @@ int cx, cy; coord cc; int sym = 0; char tmpbuf[BUFSZ]; +/*JP const char *firstmatch = "unknown"; +*/ + const char *firstmatch = "•s–¾"; cc.x = cx; cc.y = cy; if (do_screen_description(cc, TRUE, sym, tmpbuf, &firstmatch)) { (void) coord_desc(cx, cy, tmpbuf, iflags.getpos_coords); +#if 0 /*JP*/ custompline(SUPPRESS_HISTORY, "%s%s%s%s%s", firstmatch, *tmpbuf ? " " : "", tmpbuf, (iflags.autodescribe @@ -597,6 +703,15 @@ int cx, cy; ? " (illegal)" : "", (iflags.getloc_travelmode && !is_valid_travelpt(cx, cy)) ? " (no travel path)" : ""); +#else + custompline(SUPPRESS_HISTORY, + "%s%s%s%s%s", firstmatch, *tmpbuf ? " " : "", tmpbuf, + (iflags.autodescribe + && getpos_getvalid && !getpos_getvalid(cx, cy)) + ? " (•s³)" : "", + (iflags.getloc_travelmode && !is_valid_travelpt(cx, cy)) + ? " (Œo˜H‚È‚µ)" : ""); +#endif curs(WIN_MAP, cx, cy); flush_screen(0); } @@ -619,9 +734,15 @@ int gloc; if (gcount < 2) { /* gcount always includes the hero */ free((genericptr_t) garr); +#if 0 /*JP*/ You("cannot %s %s.", iflags.getloc_filter == GFILTER_VIEW ? "see" : "detect", gloc_descr[gloc][0]); +#else + You("%s‚ð%s‚±‚Æ‚ª‚Å‚«‚È‚¢D", + gloc_descr[gloc][0], + iflags.getloc_filter == GFILTER_VIEW ? "Œ©‚é" : "Œ©‚‚¯‚é"); +#endif return FALSE; } @@ -633,7 +754,10 @@ int gloc; for (i = 1; i < gcount; i++) { char fullbuf[BUFSZ]; coord tmpcc; +/*JP const char *firstmatch = "unknown"; +*/ + const char *firstmatch = "•s–¾"; int sym = 0; any.a_int = i + 1; tmpcc.x = garr[i].x; @@ -648,10 +772,17 @@ int gloc; } } +#if 0 /*JP*/ Sprintf(tmpbuf, "Pick a target %s%s%s", gloc_descr[gloc][1], gloc_filtertxt[iflags.getloc_filter], iflags.getloc_travelmode ? " for travel" : ""); +#else + Sprintf(tmpbuf, "%s%s‚Å–Ú•W‚Æ‚·‚é%s‚ð‘I‘ð‚µ‚Ä‚­‚¾‚³‚¢", + iflags.getloc_travelmode ? "ˆÚ“®‚Ì‚½‚ß‚É" : "", + gloc_filtertxt[iflags.getloc_filter], + gloc_descr[gloc][1]); +#endif end_menu(tmpwin, tmpbuf); pick_cnt = select_menu(tmpwin, PICK_ONE, &picks); destroy_nhwindow(tmpwin); @@ -866,9 +997,15 @@ const char *goal; goto nxtc; } else if (c == Cmd.spkeys[NHKF_GETPOS_LIMITVIEW]) { const char *const view_filters[NUM_GFILTER] = { +#if 0 /*JP*/ "Not limiting targets", "Limiting targets to in sight", "Limiting targets to in same area" +#else + "ƒ^[ƒQƒbƒg‚𐧌À‚µ‚È‚¢", + "Ž‹ŠE“à‚Ƀ^[ƒQƒbƒg‚𐧌À‚·‚é", + "“¯‚¶ƒGƒŠƒA‚Ƀ^[ƒQƒbƒg‚𐧌À‚·‚é" +#endif }; iflags.getloc_filter = (iflags.getloc_filter + 1) % NUM_GFILTER; for (i = 0; i < NUM_GLOCS; i++) { @@ -878,13 +1015,21 @@ const char *goal; } gidx[i] = gcount[i] = 0; } +/*JP pline("%s.", view_filters[iflags.getloc_filter]); +*/ + pline("%sD", view_filters[iflags.getloc_filter]); msg_given = TRUE; goto nxtc; } else if (c == Cmd.spkeys[NHKF_GETPOS_MENU]) { iflags.getloc_usemenu = !iflags.getloc_usemenu; +#if 0 /*JP*/ pline("%s a menu to show possible targets.", iflags.getloc_usemenu ? "Using" : "Not using"); +#else + pline("‰Â”\‚ȃ^[ƒQƒbƒg‚ðŒ©‚é‚̂Ƀƒjƒ…[‚ðŽg%sD", + iflags.getloc_usemenu ? "‚¤" : "‚í‚È‚¢"); +#endif msg_given = TRUE; goto nxtc; } else if (c == Cmd.spkeys[NHKF_GETPOS_SELF]) { @@ -897,8 +1042,13 @@ const char *goal; goto nxtc; } else if (c == Cmd.spkeys[NHKF_GETPOS_MOVESKIP]) { iflags.getloc_moveskip = !iflags.getloc_moveskip; +#if 0 /*JP*/ pline("%skipping over similar terrain when fastmoving the cursor.", iflags.getloc_moveskip ? "S" : "Not s"); +#else + pline("ƒJ[ƒ\ƒ‹‚ð‚‘¬ˆÚ“®‚³‚¹‚é‚Æ‚«‚ÉŽ—‚½‚悤‚È’nŒ`‚ð”ò‚Î%sD", + iflags.getloc_moveskip ? "‚·" : "‚³‚È‚¢"); +#endif } else if ((cp = index(mMoOdDxX, c)) != 0) { /* 'm|M', 'o|O', &c */ /* nearest or farthest monster or object or door or unexplored */ int gtmp = (int) (cp - mMoOdDxX), /* 0..7 */ @@ -1178,14 +1328,21 @@ char *monnambuf, *usrbuf; /* catch trying to name "the {priest,Angel} of Crom" as "Crom" */ || ((p = strstri(monnambuf, " of ")) != 0 && fuzzymatch(usrbuf, p + 4, " -_", TRUE))) { +#if 0 /*JP*/ pline("%s is already called %s.", upstart(strcpy(pronounbuf, mhe(mtmp))), monnambuf); +#else + pline("%s‚ÍŠù‚É%s‚ƌĂ΂ê‚Ä‚¢‚éD", + upstart(strcpy(pronounbuf, mhe(mtmp))), monnambuf); +#endif return TRUE; +#if 0 /*JP*//*“ú–{Œê‚Å‚ÍŽg‚í‚È‚¢*/ } else if (mtmp->data == &mons[PM_JUIBLEX] && strstri(monnambuf, "Juiblex") && !strcmpi(usrbuf, "Jubilex")) { pline("%s doesn't like being called %s.", upstart(monnambuf), usrbuf); return TRUE; +#endif } return FALSE; } @@ -1667,8 +1824,12 @@ namefloorobj() /* "dot for under/over you" only makes sense when the cursor hasn't been moved off the hero's '@' yet, but there's no way to adjust the help text once getpos() has started */ +#if 0 /*JP*/ Sprintf(buf, "object on map (or '.' for one %s you)", (u.uundetected && hides_under(youmonst.data)) ? "over" : "under"); +#else + Strcpy(buf, "’n}ã‚Ì•¨‘Ì(‚ ‚é‚¢‚Í'.'‚Å‚ ‚È‚½‚Ì‚¢‚éêŠ"); +#endif if (getpos(&cc, FALSE, buf) < 0 || cc.x <= 0) return; if (cc.x == u.ux && cc.y == u.uy) { @@ -2253,6 +2414,7 @@ roguename() return i + 5; } } + /*JP:Rogue‚ÌŠJ”­ŽÒ‚Ì–¼‘O*/ return rn2(3) ? (rn2(2) ? "Michael Toy" : "Kenneth Arnold") : "Glenn Wichman"; } @@ -2300,6 +2462,7 @@ rndcolor() } static NEARDATA const char *const hliquids[] = { +#if 0 /*JP*/ "yoghurt", "oobleck", "clotted blood", "diluted water", "purified water", "instant coffee", "tea", "herbal infusion", "liquid rainbow", "creamy foam", "mulled wine", "bouillon", "nectar", "grog", "flubber", @@ -2307,6 +2470,15 @@ static NEARDATA const char *const hliquids[] = { "caramel sauce", "ink", "aqueous humour", "milk substitute", "fruit juice", "glowing lava", "gastric acid", "mineral water", "cough syrup", "quicksilver", "sweet vitriol", "grey goo", "pink slime", +#else + "ƒˆ[ƒOƒ‹ƒg", "ƒE[ƒuƒŒƒbƒN", "ŒŒŒÐ", "ö—¯…", "¸»…", + "ƒCƒ“ƒXƒ^ƒ“ƒgƒR[ƒq[", "g’ƒ", "ƒn[ƒu‰t", "‰t‘Ì‚Ì“ø", + "ƒNƒŠ[ƒ~[ƒtƒH[ƒ€", "ƒzƒbƒgƒƒCƒ“", "ƒuƒCƒˆƒ“", "‰Ê`", "ƒOƒƒbƒO", "ƒtƒ‰ƒo[", + "ƒPƒ`ƒƒƒbƒv", "’ᑬŒõ", "–û", "ƒrƒlƒOƒŒƒbƒgƒ\[ƒX", "‰t‘̐…»", "–I–¨", + "ƒJƒ‰ƒƒ‹ƒ\[ƒX", "ƒCƒ“ƒN", "–[…", "‘ã—p“û", "ƒtƒ‹[ƒcƒWƒ…[ƒX", + "—¬‚ê‚é—nŠâ", "ˆÝŽ_", "ƒ~ƒlƒ‰ƒ‹ƒEƒH[ƒ^[", "ŠPŽ~‚߃Vƒƒbƒv", "…‹â", + "ƒWƒGƒ`ƒ‹ƒG[ƒeƒ‹", "ƒOƒŒƒCƒO[", "ƒsƒ“ƒNƒXƒ‰ƒCƒ€", +#endif }; const char * diff --git a/src/do_wear.c b/src/do_wear.c index 5eb875f..5c4792a 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -10,7 +10,9 @@ #include "hack.h" +#if 0 /*JP*//*–¢Žg—p*/ static NEARDATA const char see_yourself[] = "see yourself"; +#endif static NEARDATA const char unknown_type[] = "Unknown type of %s (%d)"; #if 0 /*JP*/ static NEARDATA const char c_armor[] = "armor", c_suit[] = "suit", @@ -1604,18 +1606,30 @@ struct obj *obj; Strcat(what, cloak_simple_name(uarmc)); if ((obj == uarmu) && uarm) { if (uarmc) +#if 0 /*JP*/ Strcat(what, " and "); +#else + Strcat(what, "‚Æ"); +#endif Strcat(what, suit_simple_name(uarm)); } +#if 0 /*JP*/ Sprintf(why, " without taking off your %s first", what); +#else + Sprintf(why, "æ‚É%s‚ð‚Í‚¸‚³‚È‚¢‚Æ", what); +#endif } else { +#if 0 /*JP*/ Strcpy(why, "; it's embedded"); +#else + Strcpy(why, "‚­‚Á‚‚¢‚Ä‚¢‚é‚Ì‚Å"); +#endif } #if 0 /*JP*/ You_cant("take that off%s.", why); #else m = joffmsg(obj, &j); - You("‚»‚ê%s%s‚±‚Æ‚Í‚Å‚«‚È‚¢D", j, m); + pline("%s‚»‚ê%s%s‚±‚Æ‚Í‚Å‚«‚È‚¢D", why, j, m); #endif return 0; } @@ -1873,7 +1887,10 @@ boolean noisy; in case we get here via 'P' (doputon) */ if (verysmall(youmonst.data) || nohands(youmonst.data)) { if (noisy) +/*JP You("can't wear any armor in your current form."); +*/ + You("Œ»Ý‚ÌŽp‚Å‚Í–h‹ï‚ðg‚ɂ‚¯‚邱‚Æ‚Í‚Å‚«‚È‚¢D"); return 0; } diff --git a/src/dog.c b/src/dog.c index 9433c1f..9662593 100644 --- a/src/dog.c +++ b/src/dog.c @@ -1072,8 +1072,13 @@ boolean was_dead; if (!mtmp->mtame) { if (!quietly && canspotmon(mtmp)) +#if 0 /*JP*/ pline("%s %s.", Monnam(mtmp), mtmp->mpeaceful ? "is no longer tame" : "has become feral"); +#else + pline("%s‚Í%sD", Monnam(mtmp), + mtmp->mpeaceful ? "ƒyƒbƒg‚Å‚È‚­‚È‚Á‚½" : "–쐶‰»‚µ‚½"); +#endif newsym(mtmp->mx, mtmp->my); /* a life-saved monster might be leashed; don't leave it that way if it's no longer tame */ diff --git a/src/dothrow.c b/src/dothrow.c index 78631be..bda5e05 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -656,7 +656,10 @@ int x, y; const char *s; if (odoor_diag) +/*JP You("hit the door edge!"); +*/ + You("”à‚Ì’[‚É“–‚½‚Á‚½I"); /*JP pline("Ouch!"); */ @@ -770,15 +773,31 @@ int x, y; mon->mundetected = 0; /* wakeup() will handle mimic */ mnam = a_monnam(mon); /* after unhiding */ pronoun = mhim(mon); +#if 0 /*JP*/ if (!strcmp(mnam, "it")) { +#else + if (!strcmp(mnam, "‰½ŽÒ‚©")) { +#endif /* mhim() uses pronoun_gender() which forces neuter if monster can't be seen; we want him/her for humanoid sensed by touch */ +#if 0 /*JP*/ if (!strcmp(pronoun, "it") && humanoid(mon->data)) +#else + if (!strcmp(pronoun, "‰½ŽÒ‚©") && humanoid(mon->data)) +#endif pronoun = genders[mon->female].him; +#if 0 /*JP*/ mnam = !strcmp(pronoun, "it") ? "something" : "someone"; +#else + mnam = !strcmp(pronoun, "‰½ŽÒ‚©") ? "‰½‚©" : "‰½ŽÒ‚©"; +#endif } if (!glyph_is_monster(glyph) && !glyph_is_invisible(glyph)) +#if 0 /*JP*/ You("find %s by bumping into %s.", mnam, pronoun); +#else + You("‚Ô‚¿‚ ‚½‚Á‚½‚±‚Æ‚Å%s‚ðŒ©‚Â‚¯‚½D", mnam); +#endif else /*JP You("bump into %s.", mnam); @@ -844,7 +863,10 @@ int x, y; dotrap(ttmp, 0); return FALSE; } else if (ttmp->ttyp == VIBRATING_SQUARE) { +/*JP pline("The ground vibrates as you pass it."); +*/ + pline("‚ ‚È‚½‚ª’ʉ߂·‚é‚Æ’n–Ê‚ªk“®‚µ‚½D"); dotrap(ttmp, 0); /* doesn't print messages */ } else if (ttmp->ttyp == FIRE_TRAP) { dotrap(ttmp, 0); @@ -1550,7 +1572,10 @@ boolean twoweap; /* used to restore twoweapon mode if wielded weapon returns */ that slot is empty at the time; since hero will need to explicitly rewield the weapon to get throw-and-return capability back anyway, quivered or not shouldn't matter */ +/*JP pline("%s to return!", Tobjnam(obj, "fail")); +*/ + pline("%s‚Í–ß‚é‚Ì‚ÉŽ¸”s‚µ‚½I", xname(obj)); /* continue below with placing 'obj' at target location */ } } diff --git a/src/dungeon.c b/src/dungeon.c index b114244..ac8a43c 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -1665,6 +1665,7 @@ const char *nam; } else { /* no matching annotation, check whether they used a name we know */ +#if 0 /*JP*//*“ú–{Œê‚ł͏ˆ—‚µ‚È‚¢*/ /* allow strings like "the oracle level" to find "oracle" */ if (!strncmpi(nam, "the ", 4)) nam += 4; @@ -1680,6 +1681,7 @@ const char *nam; else nam = "valley"; } +#endif if ((slev = find_level(nam)) != 0) dlev = slev->dlevel; @@ -1797,18 +1799,30 @@ int type; { switch (type) { case BR_PORTAL: +/*JP return "Portal"; +*/ + return "–‚–@‚Ì“ü‚èŒû"; case BR_NO_END1: /*JP return "Connection"; */ return "Ú‘±•”"; case BR_NO_END2: +/*JP return "One way stair"; +*/ + return "ˆê•û’ʍs‚ÌŠK’i"; case BR_STAIR: +/*JP return "Stair"; +*/ + return "ŠK’i"; } +/*JP return " (unknown)"; +*/ + return " (•s–¾)"; } STATIC_OVL char @@ -1835,10 +1849,17 @@ struct lchoice *lchoices_p; for (br = branches; br; br = br->next) { if (br->end1.dnum == dnum && lower_bound < br->end1.dlevel && br->end1.dlevel <= upper_bound) { +#if 0 /*JP*/ Sprintf(buf, "%c %s to %s: %d", bymenu ? chr_u_on_lvl(&br->end1) : ' ', br_string(br->type), dungeons[br->end2.dnum].dname, depth(&br->end1)); +#else + Sprintf(buf, "%c %s‚©‚ç%s: %d", + bymenu ? chr_u_on_lvl(&br->end1) : ' ', + br_string(br->type), + dungeons[br->end2.dnum].dname, depth(&br->end1)); +#endif if (bymenu) tport_menu(win, buf, lchoices_p, &br->end1, unreachable_level(&br->end1, FALSE)); @@ -1876,21 +1897,37 @@ xchar *rdgn; if (bymenu && In_endgame(&u.uz) && i != astral_level.dnum) continue; unplaced = unplaced_floater(dptr); +/*JP descr = unplaced ? "depth" : "level"; +*/ + descr = unplaced ? "’n‰º" : "ƒŒƒxƒ‹"; nlev = dptr->num_dunlevs; if (nlev > 1) +#if 0 /*JP*/ Sprintf(buf, "%s: %s %d to %d", dptr->dname, makeplural(descr), dptr->depth_start, dptr->depth_start + nlev - 1); +#else + Sprintf(buf, "%s: %s%d‚©‚ç%d", dptr->dname, descr, + dptr->depth_start, dptr->depth_start + nlev - 1); +#endif else Sprintf(buf, "%s: %s %d", dptr->dname, descr, dptr->depth_start); /* Most entrances are uninteresting. */ if (dptr->entry_lev != 1) { if (dptr->entry_lev == nlev) +/*JP Strcat(buf, ", entrance from below"); +*/ + Strcat(buf, ", ‰º‚©‚ç‚Ì“ü‚èŒû"); else +#if 0 /*JP*/ Sprintf(eos(buf), ", entrance on %d", dptr->depth_start + dptr->entry_lev - 1); +#else + Sprintf(eos(buf), ", %d‚Ì“ü‚èŒû", + dptr->depth_start + dptr->entry_lev - 1); +#endif } if (bymenu) { any = zeroany; @@ -1933,7 +1970,10 @@ xchar *rdgn; menu_item *selected; int idx; +/*JP end_menu(win, "Level teleport to where:"); +*/ + end_menu(win, "‚Ç‚±‚ɏuŠÔˆÚ“®‚·‚éF"); n = select_menu(win, PICK_ONE, &selected); destroy_nhwindow(win); if (n > 0) { @@ -1953,11 +1993,19 @@ xchar *rdgn; if (br->end1.dnum == n_dgns) { if (first) { putstr(win, 0, ""); +/*JP putstr(win, 0, "Floating branches"); +*/ + putstr(win, 0, "•‚“®•ªŠò"); first = FALSE; } +#if 0 /*JP*/ Sprintf(buf, " %s to %s", br_string(br->type), dungeons[br->end2.dnum].dname); +#else + Sprintf(buf, " %s‚©‚ç%s", br_string(br->type), + dungeons[br->end2.dnum].dname); +#endif putstr(win, 0, buf); } } @@ -1965,8 +2013,13 @@ xchar *rdgn; /* I hate searching for the invocation pos while debugging. -dean */ if (Invocation_lev(&u.uz)) { putstr(win, 0, ""); +#if 0 /*JP*/ Sprintf(buf, "Invocation position @ (%d,%d), hero @ (%d,%d)", inv_pos.x, inv_pos.y, u.ux, u.uy); +#else + Sprintf(buf, "”­“®ˆÊ’u @ (%d,%d), ƒvƒŒƒCƒ„[ @ (%d,%d)", + inv_pos.x, inv_pos.y, u.ux, u.uy); +#endif putstr(win, 0, buf); } else { struct trap *trap; diff --git a/src/eat.c b/src/eat.c index 8e9fec7..2b57f46 100644 --- a/src/eat.c +++ b/src/eat.c @@ -2006,7 +2006,10 @@ struct obj *otmp; TRUE, SICK_VOMITABLE); #endif +/*JP pline("(It must have died too long ago to be safe to eat.)"); +*/ + pline("(‚±‚Ì“÷‚͈À‘S‚ɐH‚ׂç‚ê‚鎞ŠÔ‚ð‰ß‚¬‚Ä‚µ‚Ü‚Á‚Ä‚¢‚½‚悤‚¾D)"); } if (carried(otmp)) useup(otmp); @@ -2253,10 +2256,16 @@ struct obj *otmp; break; case LEMBAS_WAFER: if (maybe_polyd(is_orc(youmonst.data), Race_if(PM_ORC))) { +/*JP pline("%s", "!#?&* elf kibble!"); +*/ + pline("%s", "I”H•– ƒGƒ‹ƒN‚̐H‚¢•¨I"); break; } else if (maybe_polyd(is_elf(youmonst.data), Race_if(PM_ELF))) { +/*JP pline("A little goes a long way."); +*/ + pline("­‚µ‚ŏ\•ª‚¾D"); break; } goto give_feedback; @@ -2585,18 +2594,30 @@ eatspecial() #ifdef MAIL if (otmp->otyp == SCR_MAIL) /* no nutrition */ +/*JP pline("This junk mail is less than satisfying."); +*/ + pline("‚±‚̃Sƒ~ƒ[ƒ‹‚Í–ž‘«‚ɂ͂قlj“‚¢D"); else #endif if (otmp->otyp == SCR_SCARE_MONSTER) /* to eat scroll, hero is currently polymorphed into a monster */ +/*JP pline("Yuck%c", otmp->blessed ? '!' : '.'); +*/ + pline("‚¨‚¦‚Á%s", otmp->blessed ? "I" : "D"); else if (otmp->oclass == SCROLL_CLASS /* check description after checking for specific scrolls */ && !strcmpi(OBJ_DESCR(objects[otmp->otyp]), "YUM YUM")) +/*JP pline("Yum%c", otmp->blessed ? '!' : '.'); +*/ + pline("‚¤‚Ü‚¢%s", otmp->blessed ? "I" : "D"); else +/*JP pline("Needs salt..."); +*/ + pline("–¡‚ª‚¤‚·‚¢DDD"); } if (otmp->oclass == POTION_CLASS) { otmp->quan++; /* dopotion() does a useup() */ @@ -2823,7 +2844,9 @@ struct obj *otmp; #else Strcpy(foodsmell, xname(otmp)); #endif +#if 0 /*JP*/ Strcpy(it_or_they, (otmp->quan == 1L) ? "it" : "they"); +#endif #if 0 /*JP*/ Sprintf(eat_it_anyway, "Eat %s anyway?", (otmp->quan == 1L) ? "it" : "one"); @@ -3095,7 +3118,10 @@ doeat() */ if (welded(otmp) || (otmp->cursed && (otmp->owornmask & W_RING))) { otmp->bknown = 1; /* for ring; welded() does this for weapon */ +/*JP You("spit out %s.", the(xname(otmp))); +*/ + You("%s‚ð“f‚«o‚µ‚½D", xname(otmp)); } else { #if 0 /*JP*/ You("spit %s out onto the %s.", the(xname(otmp)), @@ -3353,8 +3379,13 @@ struct obj *obj; if (obj->cursed && obj->bknown) { char qbuf[QBUFSZ]; +#if 0 /*JP*/ if (ynq(safe_qbuf(qbuf, "Really wield ", "?", obj, doname, thesimpleoname, "that")) != 'y') +#else + if (ynq(safe_qbuf(qbuf, "–{“–‚É", "‚ð‘•”õ‚·‚éH", + obj, doname, thesimpleoname, "‚»‚ê")) != 'y') +#endif return 0; } if (!wield_tool(obj, "use")) diff --git a/src/end.c b/src/end.c index 1f223be..cf106a4 100644 --- a/src/end.c +++ b/src/end.c @@ -590,6 +590,7 @@ int how; } /* some special cases for overriding while-helpless reason */ +#if 0 /*JP*//*“ú–{Œê‚Å‚ÍŽg‚í‚È‚¢*/ static const struct { int why, unmulti; const char *exclude, *include; @@ -626,6 +627,7 @@ int how; } } } +#endif #if defined(WIN32) && !defined(SYSCF) #define NOTIFY_NETHACK_BUGS @@ -1326,7 +1328,9 @@ int how; if (how == ESCAPED || how == PANICKED) killer.format = NO_KILLER_PREFIX; +#if 0 /*JP*//*“ú–{Œê‚Å‚ÍŽg‚í‚È‚¢*/ fixup_death(how); /* actually, fixup multi_reason */ +#endif if (how != PANICKED) { /* these affect score and/or bones, but avoid them during panic */ @@ -1980,7 +1984,10 @@ set_vanq_order() add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, vanqorders[i], (i == vanq_sortmode) ? MENU_SELECTED : MENU_UNSELECTED); } +/*JP end_menu(tmpwin, "Sort order for vanquished monster counts"); +*/ + end_menu(tmpwin, "“|‚µ‚½“G‚̃\[ƒg‡"); n = select_menu(tmpwin, PICK_ONE, &selected); destroy_nhwindow(tmpwin); @@ -2129,10 +2136,14 @@ boolean ask; #endif } /* number of leading spaces to match 3 digit prefix */ +#if 0 /*JP*/ pfx = !strncmpi(buf, "the ", 3) ? 0 : !strncmpi(buf, "an ", 3) ? 1 : !strncmpi(buf, "a ", 2) ? 2 : !digit(buf[2]) ? 4 : 0; +#else + pfx = !digit(buf[2]) ? 4 : 0; +#endif if (class_header) ++pfx; Sprintf(buftoo, "%*s%s", pfx, "", buf); @@ -2421,6 +2432,7 @@ char **inp, *out; *inp = in; } +/*JP: files.c‚Å1ƒ–ŠŽg‚í‚ê‚Ä‚¢‚邪‚±‚±‚͉pŒê‚Ì‚Ü‚Ü‚É‚µ‚Ä‚¨‚­*/ char * build_english_list(in) char *in; diff --git a/src/engrave.c b/src/engrave.c index 97ed53e..6144016 100644 --- a/src/engrave.c +++ b/src/engrave.c @@ -721,7 +721,7 @@ doengrave() /*JP You("would only make a small smudge on the %s.", */ - You("‚Í%s‚ɏ¬‚³‚È‚µ‚Ý‚ð‚‚¯‚邱‚Æ‚µ‚©‚Å‚«‚È‚©‚Á‚½D", + You("%s‚ð­‚µ‚悲‚·‚±‚Æ‚µ‚©‚Å‚«‚È‚©‚Á‚½D", surface(u.ux, u.uy)); return 0; } else if (!levl[u.ux][u.uy].disturbed) { diff --git a/src/explode.c b/src/explode.c index a77964d..93c585a 100644 --- a/src/explode.c +++ b/src/explode.c @@ -46,8 +46,13 @@ int expltype; struct monst *mtmp, *mdef = 0; uchar adtyp; int explmask[3][3]; /* 0=normal explosion, 1=do shieldeff, 2=do nothing */ +#if 0 /*JP*//*do_hallu‚̏ˆ—‚Í‚Æ‚è‚ ‚¦‚¸ŠO‚·*/ boolean shopdamage = FALSE, generic = FALSE, physical_dmg = FALSE, do_hallu = FALSE, inside_engulfer, grabbed, grabbing; +#else + boolean shopdamage = FALSE, generic = FALSE, physical_dmg = FALSE, + inside_engulfer, grabbed, grabbing; +#endif coord grabxy; char hallu_buf[BUFSZ], killr_buf[BUFSZ]; short exploding_wand_typ = 0; @@ -118,6 +123,7 @@ int expltype; * skip harm to gear of any extended targets when inflicting damage. */ +#if 0 /*JP*//*do_hallu‚̏ˆ—‚Í‚Æ‚è‚ ‚¦‚¸ŠO‚·*/ if (olet == MON_EXPLODE) { /* when explode() is called recursively, killer.name might change so we need to retain a copy of the current value for this explosion */ @@ -127,6 +133,7 @@ int expltype; || strstri(str, "s' explosion"))); adtyp = AD_PHYS; } else +#endif switch (abs(type) % 10) { case 0: /*JP @@ -365,6 +372,7 @@ int expltype; mtmp = u.usteed; if (!mtmp) continue; +#if 0 /*JP*//*do_hallu‚̏ˆ—‚Í‚Æ‚è‚ ‚¦‚¸ŠO‚·*/ if (do_hallu) { /* replace "gas spore" with a different description for each target (we can't distinguish personal names @@ -376,6 +384,7 @@ int expltype; } while (*hallu_buf != lowc(*hallu_buf)); str = hallu_buf; } +#endif if (u.uswallow && mtmp == u.ustuck) { const char *adj = (char *) 0; @@ -557,10 +566,17 @@ int expltype; * would be "you killed " so give our own. */ if (cansee(mtmp->mx, mtmp->my) || canspotmon(mtmp)) +#if 0 /*JP*/ pline("%s is %s!", Monnam(mtmp), xkflg ? "burned completely" : nonliving(mtmp->data) ? "destroyed" : "killed"); +#else + pline("%s‚Í%sI", Monnam(mtmp), + xkflg ? "”R‚¦‚‚«‚½" + : nonliving(mtmp->data) ? "“|‚³‚ꂽ" + : "ŽE‚³‚ꂽ"); +#endif xkilled(mtmp, XKILL_NOMSG | XKILL_NOCONDUCT | xkflg); } else { if (xkflg) @@ -578,6 +594,7 @@ int expltype; /* give message for any monster-induced explosion or player-induced one other than scroll of fire */ if (flags.verbose && (type < 0 || olet != SCROLL_CLASS)) { +#if 0 /*JP*//*do_hallu‚̏ˆ—‚Í‚Æ‚è‚ ‚¦‚¸ŠO‚·*/ if (do_hallu) { /* (see explanation above) */ do { Sprintf(hallu_buf, "%s explosion", @@ -585,6 +602,7 @@ int expltype; } while (*hallu_buf != lowc(*hallu_buf)); str = hallu_buf; } +#endif /*JP You("are caught in the %s!", str); */ @@ -773,7 +791,10 @@ struct obj *obj; /* only scatter this obj */ */ pline("%s‚͈ꕔ•ª‚ªÓ‚¯‚½D",xname(otmp)); else +/*JP You_hear("stone breaking."); +*/ + You_hear("Î‚ªÓ‚¯‚鉹‚ð•·‚¢‚½D"); fracture_rock(otmp); place_object(otmp, sx, sy); if ((otmp = sobj_at(BOULDER, sx, sy)) != 0) { @@ -792,7 +813,10 @@ struct obj *obj; /* only scatter this obj */ */ pline("%s‚Í‚±‚È‚²‚È‚É‚È‚Á‚½D",xname(otmp)); else +/*JP You_hear("stone crumbling."); +*/ + You_hear("Î‚ª‚±‚È‚²‚ȂɂȂ鉹‚ð•·‚¢‚½D"); (void) break_statue(otmp); #ifndef FIX_BUG_C340_2 place_object(otmp, sx, sy); /* put fragments on floor */ diff --git a/src/hack.c b/src/hack.c index 360a6cb..61fe56e 100644 --- a/src/hack.c +++ b/src/hack.c @@ -893,7 +893,10 @@ int mode; so we won't get here, hence don't need to worry about "there" being somewhere the player isn't sure of */ if (mode == DO_MOVE) +/*JP pline("There is an obstacle there."); +*/ + pline("áŠQ•¨‚ª‚ ‚éD"); return FALSE; } else if (tmpr->typ == IRONBARS) { if ((dmgtype(youmonst.data, AD_RUST) @@ -962,7 +965,10 @@ int mode; You("ƒhƒA‚̉º‚©‚ç‚É‚¶‚ݏo‚½D"); } else if (Underwater) { if (mode == DO_MOVE) +/*JP pline("There is an obstacle there."); +*/ + pline("áŠQ•¨‚ª‚ ‚éD"); return FALSE; } else if (tunnels(youmonst.data) && !needspick(youmonst.data)) { /* Eat the door. */ @@ -1015,7 +1021,10 @@ int mode; if (Blind) feel_location(x, y); if (Underwater || iflags.mention_walls) +/*JP You_cant("move diagonally into an intact doorway."); +*/ + You_cant("‰ó‚ê‚Ä‚¢‚È‚¢”à‚Ɏ΂߂Ɉړ®‚·‚邱‚Æ‚Í‚Å‚«‚È‚¢D"); } return FALSE; } @@ -1081,7 +1090,10 @@ int mode; && (!doorless_door(ux, uy) || block_entry(x, y))) { /* Can't move at a diagonal out of a doorway with door. */ if (mode == DO_MOVE && iflags.mention_walls) +/*JP You_cant("move diagonally out of an intact doorway."); +*/ + You_cant("‰ó‚ê‚Ä‚¢‚È‚¢”à‚©‚çŽÎ‚߂Ɉړ®‚·‚邱‚Æ‚Í‚Å‚«‚È‚¢D"); return FALSE; } @@ -1089,7 +1101,10 @@ int mode; if (!(Blind || Hallucination) && (context.run >= 2) && mode != TEST_TRAV) { if (mode == DO_MOVE && iflags.mention_walls) +/*JP pline("A boulder blocks your path."); +*/ + pline("‹Šâ‚ª“¹‚ð‚Ó‚³‚¢‚Å‚¢‚éD"); return FALSE; } if (mode == DO_MOVE) { @@ -1770,11 +1785,19 @@ domove() if (iflags.mention_walls) { if (trap && trap->tseen) { int tt = what_trap(trap->ttyp); +/*JP You("stop in front of %s.", +*/ + You("%s‚ÌŽè‘O‚ÅŽ~‚Ü‚Á‚½D", an(defsyms[trap_to_defsym(tt)].explanation)); } else if (is_pool_or_lava(x,y) && levl[x][y].seenv) { +#if 0 /*JP*/ You("stop at the edge of the %s.", hliquid(is_pool(x,y) ? "water" : "lava")); +#else + You("%s‚Ì’[‚ÅŽ~‚Ü‚Á‚½D.", + hliquid(is_pool(x,y) ? "…" : "—nŠâ")); +#endif } } nomul(0); @@ -3128,7 +3151,10 @@ lookaround() /* Grid bugs stop if trying to move diagonal, even if blind. Maybe */ /* they polymorphed while in the middle of a long move. */ if (NODIAG(u.umonnum) && u.dx && u.dy) { +/*JP You("cannot move diagonally."); +*/ + You("ŽÎ‚߂Ɉړ®‚Å‚«‚È‚¢D"); nomul(0); return; } @@ -3150,7 +3176,10 @@ lookaround() || (x == u.ux + u.dx && y == u.uy + u.dy && !context.travel)) { if (iflags.mention_walls) +/*JP pline("%s blocks your path.", upstart(a_monnam(mtmp))); +*/ + pline("%s‚ª“¹‚ð‚Ó‚³‚¢‚Å‚¢‚éD", a_monnam(mtmp)); goto stop; } } @@ -3168,7 +3197,10 @@ lookaround() continue; if (context.run != 1) { if (iflags.mention_walls) +/*JP You("stop in front of the door."); +*/ + You("”à‚ÌŽè‘O‚ÅŽ~‚Ü‚Á‚½D"); goto stop; } goto bcorr; @@ -3198,7 +3230,10 @@ lookaround() if (x == u.ux + u.dx && y == u.uy + u.dy) { if (iflags.mention_walls) { int tt = what_trap(trap->ttyp); +/*JP You("stop in front of %s.", +*/ + You("%s‚ÌŽè‘O‚ÅŽ~‚Ü‚Á‚½D", an(defsyms[trap_to_defsym(tt)].explanation)); } goto stop; @@ -3215,8 +3250,13 @@ lookaround() * into a pool and seeing if the game allowed it */ if (iflags.mention_walls) +#if 0 /*JP*/ You("stop at the edge of the %s.", hliquid(is_pool(x,y) ? "water" : "lava")); +#else + You("%s‚Ì’[‚ÅŽ~‚Ü‚Á‚½D", + hliquid(is_pool(x,y) ? "…" : "—nŠâ")); +#endif goto stop; } continue; @@ -3238,7 +3278,10 @@ lookaround() if (corrct > 1 && context.run == 2) { if (iflags.mention_walls) +/*JP pline_The("corridor widens here."); +*/ + pline("’ʘH‚Í‚±‚±‚ōL‚­‚È‚Á‚Ä‚¢‚éD"); goto stop; } if ((context.run == 1 || context.run == 3 || context.run == 8) && !noturn diff --git a/src/invent.c b/src/invent.c index dbbeb6c..98c3deb 100644 --- a/src/invent.c +++ b/src/invent.c @@ -1904,8 +1904,8 @@ unsigned *resultflags; * of objects to be treated. Return the number of objects treated. */ /*JP CHECK: 3.6.0 ‚ł̌Ăяo‚µŒ³ -invent.c:1728: int cnt = askchain(&invent, olets, allflag, fn, ckfn, mx, word); -pickup.c:2882: if (askchain(objlist, (one_by_one ? (char *) 0 : selection), allflag, +invent.c:1886: int cnt = askchain(&invent, olets, allflag, fn, ckfn, mx, word); +pickup.c:3145: if (askchain(objlist, (one_by_one ? (char *) 0 : selection), allflag, word‚É‚Í“®ŽŒ‚ª‰pŒê‚Å“ü‚éB */ int @@ -2520,11 +2520,21 @@ nextclass: } if (iflags.force_invmenu && lets && want_reply) { any = zeroany; +#if 0 /*JP*/ add_menu(win, NO_GLYPH, &any, 0, 0, iflags.menu_headings, "Special", MENU_UNSELECTED); +#else + add_menu(win, NO_GLYPH, &any, 0, 0, iflags.menu_headings, + "“ÁŽê", MENU_UNSELECTED); +#endif any.a_char = '*'; +#if 0 /*JP*/ add_menu(win, NO_GLYPH, &any, '*', 0, ATR_NONE, "(list everything)", MENU_UNSELECTED); +#else + add_menu(win, NO_GLYPH, &any, '*', 0, ATR_NONE, + "(‘S‚Ă̈ꗗ)", MENU_UNSELECTED); +#endif } /* for permanent inventory where we intend to show everything but nothing has been listed (because there isn't anyhing to list; @@ -4109,8 +4119,13 @@ doorganize() /* inventory organizer by Del Lamb */ pline1(Never_mind); return 0; } else if (let == GOLD_SYM && obj->oclass != COIN_CLASS) { +#if 0 /*JP*/ pline("Only gold coins may be moved into the '%c' slot.", GOLD_SYM); +#else + pline("'%c'‚É‚Å‚«‚é‚Ì‚Í‹à‰Ý‚¾‚¯D", + GOLD_SYM); +#endif ever_mind = TRUE; goto noadjust; } diff --git a/src/lock.c b/src/lock.c index 17c8112..54f43cd 100644 --- a/src/lock.c +++ b/src/lock.c @@ -150,25 +150,42 @@ picklock(VOID_ARGS) /* unfortunately we don't have a 'tknown' flag to record "known to be trapped" so declining to disarm and then retrying lock manipulation will find it all over again */ +/*JP if (yn("You find a trap! Do you want to try to disarm it?") == 'y') { +*/ + if (yn("ã©‚ðŒ©‚Â‚¯‚½IŠO‚µ‚Ü‚·‚©H") == 'y') { const char *what; boolean alreadyunlocked; /* disarming while using magic key always succeeds */ if (xlock.door) { xlock.door->doormask &= ~D_TRAPPED; +/*JP what = "door"; +*/ + what = "”à"; alreadyunlocked = !(xlock.door->doormask & D_LOCKED); } else { xlock.box->otrapped = 0; +/*JP what = (xlock.box->otyp == CHEST) ? "chest" : "box"; +*/ + what = (xlock.box->otyp == CHEST) ? "•ó” " : "” "; alreadyunlocked = !xlock.box->olocked; } +#if 0 /*JP*/ You("succeed in disarming the trap. The %s is still %slocked.", what, alreadyunlocked ? "un" : ""); +#else + You("㩂ðŠO‚µ‚½D%s‚ÍŒ®‚ª%s‚Ü‚Ü‚¾D", + what, alreadyunlocked ? "ŠJ‚¢‚½" : "‚©‚©‚Á‚½"); +#endif exercise(A_WIS, TRUE); } else { +/*JP You("stop %s.", lock_action()); +*/ + You("%s‚Ì‚ð‚â‚ß‚½D", lock_action()); exercise(A_WIS, FALSE); } return ((xlock.usedtime = 0)); @@ -883,8 +900,12 @@ int x, y; */ pline_The("’µ‚Ë‹´‚Í‚à‚¤ŠJ‚¢‚Ä‚¢‚éD"); else if (container_at(cc.x, cc.y, TRUE)) +#if 0 /*JP*/ pline("%s like something lootable over there.", Blind ? "Feels" : "Seems"); +#else + pline("‚±‚±‚ɂ͉½‚©“ü‚ꕨ‚ª‚ ‚é‚悤‚¾D"); +#endif else /*JP You("%s no door there.", Blind ? "feel" : "see"); diff --git a/src/mail.c b/src/mail.c index 0467096..c90ed28 100644 --- a/src/mail.c +++ b/src/mail.c @@ -603,8 +603,13 @@ boolean adminmsg; struct flock fl = { 0 }; #endif const char *msgfrom = adminmsg +#if 0 /*JP*/ ? "The voice of %s booms through the caverns:" : "This message is from '%s'."; +#else + ? "%s‚̐º‚ª“´ŒA‚É‹¿‚«‚킽‚Á‚½:" + : "‚±‚ê‚Í'%s'‚©‚ç‚̃ƒbƒZ[ƒW‚¾D"; +#endif if (!mb) goto bail; @@ -631,8 +636,13 @@ boolean adminmsg; fl.l_type = F_UNLCK; fcntl (fileno(mb), F_UNLCK, &fl); #endif +#if 0 /*JP*/ pline("There is a%s message on this scroll.", seen_one_already ? "nother" : ""); +#else + pline("‚±‚ÌŠª•¨‚É‚Í%sƒƒbƒZ[ƒW‚ª‚ ‚éD", + seen_one_already ? "‚Ü‚¾" : ""); +#endif } msg = strchr(curline, ':'); @@ -647,7 +657,10 @@ boolean adminmsg; if (adminmsg) verbalize(msg); else +/*JP pline("It reads: \"%s\".", msg); +*/ + pline("‚»‚ê‚ð“Ç‚ñ‚¾Fu%sv", msg); seen_one_already = TRUE; #ifdef SIMPLE_MAIL @@ -674,7 +687,10 @@ boolean adminmsg; bail: /* bail out _professionally_ */ if (!adminmsg) +/*JP pline("It appears to be all gibberish."); +*/ + pline("‚±‚ê‚Í‚Ü‚Á‚½‚­‚¿‚ñ‚Õ‚ñ‚©‚ñ‚Õ‚ñ‚¾D"); } #endif /* SIMPLE_MAIL */ diff --git a/src/mhitm.c b/src/mhitm.c index 4703d36..3899a5b 100644 --- a/src/mhitm.c +++ b/src/mhitm.c @@ -818,10 +818,18 @@ register struct attack *mattk; if (vis) { /* 'it' -- previous form is no longer available and using that would be excessively verbose */ +#if 0 /*JP*/ pline("%s expels %s.", Monnam(magr), canspotmon(mdef) ? "it" : something); +#else + pline("%s‚Í%s‚ð“f‚«o‚µ‚½D", Monnam(magr), + canspotmon(mdef) ? "‰½‚©" : something); +#endif if (canspotmon(mdef)) +/*JP pline("It turns into %s.", a_monnam(mdef)); +*/ + pline("‚»‚ê‚Í%s‚É‚È‚Á‚½D", a_monnam(mdef)); } return MM_HIT; /* bypass mdamagem() */ } diff --git a/src/minion.c b/src/minion.c index c28556e..aa5d1cb 100644 --- a/src/minion.c +++ b/src/minion.c @@ -66,7 +66,10 @@ struct monst *mon; if (uwep && uwep->oartifact == ART_DEMONBANE && is_demon(ptr)) { if (canseemon(mon)) +/*JP pline("%s looks puzzled for a moment.", Monnam(mon)); +*/ + pline("%s‚͏­‚µ¢˜f‚µ‚Ä‚¢‚é‚悤‚¾D", Monnam(mon)); return 0; } diff --git a/src/mkobj.c b/src/mkobj.c index 274b3bc..cf2bbb8 100644 --- a/src/mkobj.c +++ b/src/mkobj.c @@ -1224,7 +1224,11 @@ int old_range; *buf = '\0'; if (iflags.last_msg == PLNMSG_OBJ_GLOWS) /* we just saw "The glows ." from dipping */ +#if 0 /*JP*/ Strcpy(buf, (obj->quan == 1L) ? "It" : "They"); +#else + Strcpy(buf, "‚»‚ê"); +#endif else if (carried(obj) || cansee(ox, oy)) Strcpy(buf, Yname2(obj)); if (*buf) { @@ -1233,9 +1237,15 @@ int old_range; when changing intensity, using "less brightly" is straightforward for dimming, but we need "brighter" rather than "more brightly" for brightening; ugh */ +#if 0 /*JP*/ pline("%s %s %s%s.", buf, otense(obj, "shine"), (abs(delta) > 1) ? "much " : "", (delta > 0) ? "brighter" : "less brightly"); +#else + pline("%s‚Ì‹P‚«‚Í%s%sD", buf, + (abs(delta) > 1) ? "‚©‚È‚è" : "", + (delta > 0) ? "‘‚µ‚½" : "Œ¸‚Á‚½"); +#endif } } } diff --git a/src/mon.c b/src/mon.c index dbfb6d8..92df3ae 100644 --- a/src/mon.c +++ b/src/mon.c @@ -2643,6 +2643,7 @@ struct monst *mtmp; && closed_door(mtmp->mx, mtmp->my)); /* construct a format string before transformation */ +#if 0 /*JP*/ Sprintf(buf, "The lapidifying %s %s %s", x_monnam(mtmp, ARTICLE_NONE, (char *) 0, (SUPPRESS_SADDLE | SUPPRESS_HALLUCINATION @@ -2651,6 +2652,16 @@ struct monst *mtmp; : is_flyer(mtmp->data) ? "drops to the" : "writhes on the", surface(x,y)); +#else + Sprintf(buf, "Î‰»‚µ‚‚‚ ‚é%s‚ª%s%s", + x_monnam(mtmp, ARTICLE_NONE, (char *) 0, + (SUPPRESS_SADDLE | SUPPRESS_HALLUCINATION + | SUPPRESS_INVISIBLE | SUPPRESS_IT), FALSE), + surface(x,y), + amorphous(mtmp->data) ? "‚̏ã‚Å—Z‡‚µ‚½" + : is_flyer(mtmp->data) ? "‚É—Ž‚¿‚½" + : "‚̏ã‚Őg‚à‚¾‚¦‚½"); +#endif mtmp->mcanmove = 1; mtmp->mfrozen = 0; if (mtmp->mhpmax <= 0) @@ -2667,7 +2678,10 @@ struct monst *mtmp; } } if (canspotmon(mtmp)) { +/*JP pline("%s!", buf); +*/ + pline("%sI", buf); display_nhwindow(WIN_MESSAGE, FALSE); } newcham(mtmp, &mons[mndx], FALSE, FALSE); @@ -2676,8 +2690,13 @@ struct monst *mtmp; else mtmp->cham = mndx; if (canspotmon(mtmp)) { +#if 0 /*JP*/ pline("%s rises from the %s with renewed agility!", Amonnam(mtmp), surface(mtmp->mx, mtmp->my)); +#else + pline("%s‚Í‹@•q‚³‚ðŽæ‚è–ß‚µ‚Ä%s‚©‚ç•œŠˆ‚µ‚½I", + Amonnam(mtmp), surface(mtmp->mx, mtmp->my)); +#endif } newsym(mtmp->mx, mtmp->my); return FALSE; /* didn't petrify */ @@ -2856,7 +2875,10 @@ struct monst *mtmp; boolean via_attack; { if (via_attack && sengr_at("Elbereth", u.ux, u.uy, TRUE)) { +/*JP You_feel("like a hypocrite."); +*/ + You_feel("‹U‘PŽÒ‚̂悤‚È‹C‚ª‚µ‚½D"); /* AIS: Yes, I know alignment penalties and bonuses aren't balanced at the moment. This is about correct relative to other "small" penalties; it should be fairly large, as attacking while standing @@ -2867,7 +2889,10 @@ boolean via_attack; adjalign(-5); if (!Blind) +/*JP pline("The engraving beneath you fades."); +*/ + pline("‚ ‚È‚½‚Ì‘«Œ³‚Ì•¶Žš‚ª”–‚ꂽD"); del_engr_at(u.ux, u.uy); } @@ -2929,7 +2954,10 @@ boolean via_attack; /* make other peaceful monsters react */ if (!context.mon_moving) { static const char *const Exclam[] = { +/*JP "Gasp!", "Uh-oh.", "Oh my!", "What?", "Why?", +*/ + "‚®‚Í‚ÁI", "‚¤‚íD", "Oh my!", "‚È‚É‚ÁH", "‚È‚ñ‚¾H", }; struct monst *mon; int mndx = monsndx(mtmp->data); @@ -2947,7 +2975,10 @@ boolean via_attack; if (humanoid(mon->data) || mon->isshk || mon->ispriest) { if (is_watch(mon->data)) { +/*JP verbalize("Halt! You're under arrest!"); +*/ + verbalize("Ž~‚Ü‚êI‘ß•ß‚·‚éI"); (void) angry_guards(!!Deaf); } else { if (!rn2(5)) { @@ -2970,7 +3001,10 @@ boolean via_attack; mon->mpeaceful = 0; adjalign(-1); if (!exclaimed) +/*JP pline("%s gets angry!", Monnam(mon)); +*/ + pline("%s‚Í“{‚Á‚½I", Monnam(mon)); } } } else if (mon->data->mlet == mtmp->data->mlet @@ -3723,8 +3757,13 @@ boolean msg; /* "The oldmon turns into a newmon!" */ char msgtrail[BUFSZ]; if (is_vampshifter(mtmp)) { +#if 0 /*JP*/ Sprintf(msgtrail, " which was a shapeshifted %s", noname_monnam(mtmp, ARTICLE_NONE)); +#else + Sprintf(msgtrail, "(ŽÀÛ‚É‚ÍŒ`‚ð•Ï‚¦‚½%s)", + noname_monnam(mtmp, ARTICLE_NONE)); +#endif } else if (is_animal(mdat)) { /*JP Strcpy(msgtrail, "'s stomach"); diff --git a/src/monmove.c b/src/monmove.c index bf15359..ea8d872 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -73,12 +73,19 @@ const char *shout; /* Sidenote on "A watchman angrily waves her arms!" * Female being called watchman is correct (career name). */ +#if 0 /*JP*/ pline("%s angrily %s %s %s!", Amonnam(mon), nolimbs(mon->data) ? "shakes" : "waves", mhis(mon), nolimbs(mon->data) ? mbodypart(mon, HEAD) : makeplural(mbodypart(mon, ARM))); +#else + pline("%s‚Í“{‚Á‚Ä%s‚ðU‚Á‚½I", + Amonnam(mon), + nolimbs(mon->data) ? mbodypart(mon, HEAD) + : makeplural(mbodypart(mon, ARM))); +#endif } else { if (canspotmon(mon)) /*JP @@ -1776,9 +1783,15 @@ boolean domsg; } if (reslt && domsg) { +#if 0 /*JP*/ pline("You %s %s where %s was.", !canseemon(mon) ? "now detect" : "observe", noname_monnam(mon, ARTICLE_A), oldmtype); +#else + pline("‚ ‚È‚½‚Í%s‚ª‚¢‚½êŠ‚É%s‚ð%sD", + oldmtype, noname_monnam(mon, ARTICLE_A), + !canseemon(mon) ? "Š´’m‚µ‚½" : "Œ©‚‚¯‚½"); +#endif } return reslt; diff --git a/src/mthrowu.c b/src/mthrowu.c index 64fad35..d17f79d 100644 --- a/src/mthrowu.c +++ b/src/mthrowu.c @@ -89,7 +89,10 @@ const char *name; /* if null, then format `*objp' */ } else if (u.uac + tlev <= dieroll - 2) { if (onm != onmbuf) Strcpy(onmbuf, onm); /* [modifiable buffer for upstart()] */ +/*JP pline("%s %s you.", upstart(onmbuf), vtense(onmbuf, "miss")); +*/ + pline("%s‚͍UŒ‚‚ð‚Í‚¸‚µ‚½D", upstart(onmbuf)); } else /*JP You("are almost hit by %s.", onm); @@ -315,8 +318,10 @@ struct obj *otmp, *mwep; } m_shot.s = ammo_and_launcher(otmp, mwep) ? TRUE : FALSE; Strcpy(trgbuf, mtarg ? mon_nam(mtarg) : ""); +#if 0 /*JP*//*“ú–{Œê‚Å‚Ímon_nam‚́u‰½ŽÒ‚©v‚ð•Ô‚·‚̂ŕύX•s—v*/ if (!strcmp(trgbuf, "it")) Strcpy(trgbuf, humanoid(mtmp->data) ? "someone" : something); +#endif #if 0 /*JP*/ pline("%s %s %s%s%s!", Monnam(mtmp), m_shot.s ? "shoots" : "throws", onm, @@ -412,8 +417,13 @@ boolean verbose; /* give message(s) even when you can't see what happened */ mtmp->msleeping = 0; if (vis) { if (otmp->otyp == EGG) +#if 0 /*JP*/ pline("Splat! %s is hit with %s egg!", Monnam(mtmp), otmp->known ? an(mons[otmp->corpsenm].mname) : "an"); +#else + pline("ƒrƒ`ƒƒƒbI%s‚Í%s—‘‚É“–‚½‚Á‚½I", Monnam(mtmp), + otmp->known ? s_suffix(mons[otmp->corpsenm].mname) : ""); +#endif else hit(distant_name(otmp, mshot_xname), mtmp, exclam(damage)); } else if (verbose && !target) @@ -790,7 +800,10 @@ struct obj *obj; /* missile (or stack providing it) */ && (!mesg_given || bhitpos.x != u.ux || bhitpos.y != u.uy) && (cansee(bhitpos.x, bhitpos.y) || (archer && canseemon(archer)))) +/*JP pline("%s misses.", The(mshot_xname(singleobj))); +*/ + pline("%s‚Í‚Í‚¸‚ꂽD", mshot_xname(singleobj)); (void) drop_throw(singleobj, 0, bhitpos.x, bhitpos.y); } break; @@ -949,7 +962,10 @@ struct attack *mattk; if (!mtmp->mspec_used && rn2(3)) { if ((typ >= AD_MAGM) && (typ <= AD_ACID)) { if (canseemon(mtmp)) +/*JP pline("%s breathes %s!", Monnam(mtmp), breathwep[typ - 1]); +*/ + pline("%s‚Í%s‚ð‚Í‚¢‚½I", Monnam(mtmp), breathwep[typ - 1]); dobuzz((int) (-20 - (typ - 1)), (int)mattk->damn, mtmp->mx, mtmp->my, sgn(tbx), sgn(tby), FALSE); nomul(0); @@ -1090,8 +1106,13 @@ struct attack *mattk; if (mtmp->mcan) { if (!Deaf) +#if 0 /*JP*/ pline("A dry rattle comes from %s throat.", s_suffix(mon_nam(mtmp))); +#else + pline("Š£‚¢‚½ƒKƒ‰ƒKƒ‰‰¹‚ª%s‚Ì‚Ì‚Ç‚©‚ç•·‚±‚¦‚Ä‚«‚½D", + mon_nam(mtmp)); +#endif return 0; } if (lined_up(mtmp)) { @@ -1110,7 +1131,10 @@ struct attack *mattk; if (!rn2(BOLT_LIM - distmin(mtmp->mx, mtmp->my, mtmp->mux, mtmp->muy))) { if (canseemon(mtmp)) +/*JP pline("%s spits venom!", Monnam(mtmp)); +*/ + pline("%s‚͓ʼnt‚ð“f‚¢‚½I", Monnam(mtmp)); m_throw(mtmp, mtmp->mx, mtmp->my, sgn(tbx), sgn(tby), distmin(mtmp->mx, mtmp->my, mtmp->mux, mtmp->muy), otmp); nomul(0); @@ -1136,9 +1160,15 @@ struct attack *mattk; if (mtmp->mcan) { if (!Deaf) { if (canseemon(mtmp)) +/*JP pline("%s coughs.", Monnam(mtmp)); +*/ + pline("%s‚Í‚¹‚«‚ð‚µ‚½D", Monnam(mtmp)); else +/*JP You_hear("a cough."); +*/ + You_hear("‚¹‚«‚̉¹‚ð•·‚¢‚½D"); } return 0; } @@ -1269,9 +1299,15 @@ boolean your_fault, from_invent; /* breakage makes its own noises */ if (obj_type == POT_ACID) { if (cansee(barsx, barsy) && !unbreakable) +/*JP pline_The("iron bars are dissolved!"); +*/ + pline_The("“S‚Ì–_‚Í—Z‚¯‚½I"); else +/*JP You_hear(Hallucination ? "angry snakes!" : "a hissing noise."); +*/ + You_hear(Hallucination ? "“{‚Á‚½‚ւт̐º‚ð•·‚¢‚½I" : "ƒV[ƒb‚Æ‚¢‚¤‰¹‚ð•·‚¢‚½D"); if (!unbreakable) dissolve_bars(barsx, barsy); } diff --git a/src/muse.c b/src/muse.c index 2d74c03..d0e41db 100644 --- a/src/muse.c +++ b/src/muse.c @@ -2806,8 +2806,13 @@ boolean by_you; /* true: if mon kills itself, hero gets credit/blame */ boolean vis = canseemon(mon), res = TRUE; if (vis) +#if 0 /*JP*/ pline("%s starts turning %s.", Monnam(mon), green_mon(mon) ? "into ooze" : hcolor(NH_GREEN)); +#else + pline("%s‚Í%s‚É‚È‚è‚Í‚¶‚ß‚½D", Monnam(mon), + green_mon(mon) ? "ƒXƒ‰ƒCƒ€" : hcolor(NH_GREEN)); +#endif /* -4 => sliming, causes quiet loss of enhanced speed */ mon_adjust_speed(mon, -4, (struct obj *) 0); @@ -2816,8 +2821,12 @@ boolean by_you; /* true: if mon kills itself, hero gets credit/blame */ if (mon->mx == trap->tx && mon->my == trap->ty) { if (vis) +#if 0 /*JP*/ pline("%s triggers %s fire trap!", Mnam, trap->tseen ? "the" : "a"); +#else + pline("%s‚͉Š‚Ì㩂𔭓®‚³‚¹‚½I", Mnam); +#endif } else { remove_monster(mon->mx, mon->my); newsym(mon->mx, mon->my); @@ -2826,10 +2835,14 @@ boolean by_you; /* true: if mon kills itself, hero gets credit/blame */ worm_move(mon); newsym(mon->mx, mon->my); if (vis) +#if 0 /*JP*/ pline("%s %s %s %s fire trap!", Mnam, vtense(Mnam, locomotion(mon->data, "move")), is_floater(mon->data) ? "over" : "onto", trap->tseen ? "the" : "a"); +#else + pline("%s‚͉Š‚Ì㩂ɔò‚эž‚ñ‚¾I", Mnam); +#endif } /* hack to avoid mintrap()'s chance of avoiding known trap */ mon->mtrapseen &= ~(1 << (FIRE_TRAP - 1)); @@ -2837,7 +2850,10 @@ boolean by_you; /* true: if mon kills itself, hero gets credit/blame */ } else if (otyp == STRANGE_OBJECT) { /* monster is using fire breath on self */ if (vis) +/*JP pline("%s breathes fire on %sself.", Monnam(mon), mhim(mon)); +*/ + pline("%s‚͉΂ð‚Í‚¢‚½D", Monnam(mon)); if (!rn2(3)) mon->mspec_used = rn1(10, 5); /* -21 => monster's fire breath; 1 => # of damage dice */ @@ -2846,7 +2862,10 @@ boolean by_you; /* true: if mon kills itself, hero gets credit/blame */ mreadmsg(mon, obj); if (mon->mconf) { if (cansee(mon->mx, mon->my)) +/*JP pline("Oh, what a pretty fire!"); +*/ + pline("‚ ‚çA‚È‚ñ‚Ä‚©‚í‚¢‚¢‰Î‚¾I"); if (vis && !objects[otyp].oc_name_known && !objects[otyp].oc_uname) docall(obj); @@ -2880,15 +2899,26 @@ boolean by_you; /* true: if mon kills itself, hero gets credit/blame */ for pacifist conduct); xkilled()'s message would say "You killed/destroyed " so give our own message */ if (vis) +#if 0 /*JP*/ pline("%s is %s by the fire!", Monnam(mon), nonliving(mon->data) ? "destroyed" : "killed"); +#else + pline("%s‚͉΂Å%s‚³‚ꂽI", Monnam(mon), + nonliving(mon->data) ? "“|" : "ŽE"); +#endif xkilled(mon, XKILL_NOMSG | XKILL_NOCONDUCT); } else +/*JP monkilled(mon, "fire", AD_FIRE); +*/ + monkilled(mon, "‰Î", AD_FIRE); } else { /* non-fatal damage occurred */ if (vis) +/*JP pline("%s is burned%s", Monnam(mon), exclam(dmg)); +*/ + pline("%s‚Í”R‚¦‚½%s", Monnam(mon), exclam(dmg)); } } if (vis) { @@ -2937,7 +2967,11 @@ struct monst *mon; return (ptr->mcolor == CLR_GREEN || ptr->mcolor == CLR_BRIGHT_GREEN); #endif /* approximation */ +#if 0 /*JP*/ if (strstri(ptr->mname, "green")) +#else + if (strstri(ptr->mname, "—Î")) +#endif return TRUE; switch (monsndx(ptr)) { case PM_FOREST_CENTAUR: diff --git a/src/music.c b/src/music.c index 62832f1..a9bd2c8 100644 --- a/src/music.c +++ b/src/music.c @@ -540,17 +540,35 @@ const char * generic_lvl_desc() { if (Is_astralevel(&u.uz)) +/*JP return "astral plane"; +*/ + return "“VãŠE"; else if (In_endgame(&u.uz)) +/*JP return "plane"; +*/ + return "¸—ìŠE"; else if (Is_sanctum(&u.uz)) +/*JP return "sanctum"; +*/ + return "¹ˆæ"; else if (In_sokoban(&u.uz)) +/*JP return "puzzle"; +*/ + return "‘qŒÉ"; else if (In_V_tower(&u.uz)) +/*JP return "tower"; +*/ + return "“ƒ"; else +/*JP return "dungeon"; +*/ + return "–À‹{"; } /* @@ -611,10 +629,16 @@ struct obj *instr; */ break; case PLAY_CONFUSED: +/*JP You("produce a raucous noise."); +*/ + You("Ž¨á‚è‚ȉ¹‚ðo‚µ‚½D"); break; case PLAY_HALLU: +/*JP You("produce a kaleidoscopic display of floating butterfiles."); +*/ + You("‹ó‚É•‚‚©‚Ô’±‚Ì–œ‰Ø‹¾“I‚È•\Œ»‚ð‘no‚µ‚½D"); break; /* TODO? give some or all of these combinations their own feedback; hallucination ones should reference senses other than hearing... */ diff --git a/src/objnam.c b/src/objnam.c index 1ec12c7..8f3caf8 100644 --- a/src/objnam.c +++ b/src/objnam.c @@ -183,7 +183,10 @@ register int otyp; */ Strcat(buf, "–‚–@‘"); } else { +/*JP Strcpy(buf, !nn ? "book" : "novel"); +*/ + Strcpy(buf, !nn ? "–{" : "¬à"); nn = 0; } break; @@ -902,13 +905,22 @@ unsigned cxn_flags; /* bitmask of CXN_xxx values */ case SPBOOK_CLASS: if (typ == SPE_NOVEL) { /* 3.6 tribute */ if (!dknown) +/*JP Strcpy(buf, "book"); +*/ + Strcpy(buf, "–{"); else if (nn) Strcpy(buf, actualn); else if (un) +/*JP Sprintf(buf, "novel called %s", un); +*/ + Sprintf(buf, "%s‚Æ‚¢‚¤¬à", un); else +/*JP Sprintf(buf, "%s book", dn); +*/ + Sprintf(buf, "%s–{", dn); break; /* end of tribute */ } else if (!dknown) { @@ -1321,7 +1333,10 @@ unsigned doname_flags; Sprintf(prefix, "%ld%s‚Ì", obj->quan, numeral(obj)); #endif else +/*JP Strcpy(prefix, "some "); +*/ + Strcpy(prefix, "‚¢‚­‚‚©‚Ì"); } else if (obj->otyp == CORPSE) { /* skip article prefix for corpses [else corpse_xname() would have to be taught how to strip it off again] */ @@ -1721,9 +1736,15 @@ unsigned doname_flags; if (!iflags.suppress_price && is_unpaid(obj)) { long quotedprice = unpaid_cost(obj, TRUE); +#if 0 /*JP*/ Sprintf(eos(bp), " (%s, %ld %s)", obj->unpaid ? "unpaid" : "contents", quotedprice, currency(quotedprice)); +#else + Sprintf(eos(bp), " (%s, %ld%s)", + obj->unpaid ? "–¢•¥‚¢" : "’†g", + quotedprice, currency(quotedprice)); +#endif } else if (with_price) { long price = get_cost_of_shop_item(obj); @@ -2616,7 +2637,7 @@ sing: Strcasecpy(bspot + 1, "s"); } -#else +#else /*V‚µ‚¢ƒoƒbƒtƒ@‚Í•K—v*/ char *buf; buf = nextobuf(); @@ -2947,7 +2968,7 @@ const char *oldstr; bottom: if (excess) Strcat(str, excess); -#else /*JP*/ +#else /*JP*//*V‚µ‚¢ƒoƒbƒtƒ@‚Í•K—v*/ char *str = nextobuf(); Strcpy(str, oldstr); #endif @@ -3074,7 +3095,7 @@ bottom: Strcat(bp, excess); return bp; -#else /*JP*/ +#else /*JP*//*V‚µ‚¢ƒoƒbƒtƒ@‚Í•K—v*/ char *str = nextobuf(); Strcpy(str, oldstr); return str; @@ -4681,17 +4702,34 @@ struct obj *suit; const char *suitnm, *esuitp; if (Is_dragon_mail(suit)) +#if 0 /*JP*/ return "dragon mail"; /* dragon scale mail */ +#else + return "—ØŠZ"; /* dragon scale mail */ +#endif else if (Is_dragon_scales(suit)) +/*JP return "dragon scales"; +*/ + return "—Ø"; suitnm = OBJ_NAME(objects[suit->otyp]); esuitp = eos((char *) suitnm); +#if 0 /*JP*/ if (strlen(suitnm) > 5 && !strcmp(esuitp - 5, " mail")) return "mail"; /* most suits fall into this category */ +#else + if (strlen(suitnm) > 2 && !strcmp(esuitp - 2, "ŠZ")) + return "ŠZ"; /* most suits fall into this category */ +#endif +#if 0 /*JP*/ else if (strlen(suitnm) > 7 && !strcmp(esuitp - 7, " jacket")) return "jacket"; /* leather jacket */ +#endif /* suit is lame but armor is ambiguous and body armor is absurd */ +/*JP return "suit"; +*/ + return "•ž"; } const char * diff --git a/src/options.c b/src/options.c index 20a0e88..3e89149 100644 --- a/src/options.c +++ b/src/options.c @@ -581,11 +581,19 @@ static struct Comp_Opt { { "soundcard", "Žg—p‚µ‚Ä‚¢‚éƒTƒEƒ“ƒhƒJ[ƒh‚ÌŽí—Þ", 20, SET_IN_FILE }, #endif #ifdef STATUS_HILITES +#if 0 /*JP*/ { "statushilites", "0=no status highlighting, N=show highlights for N turns", +#else + { "statushilites", + "0=ƒXƒe[ƒ^ƒXƒnƒCƒ‰ƒCƒg‚È‚µCNƒ^[ƒ“–ˆ‚ɃnƒCƒ‰ƒCƒg•\Ž¦", +#endif 20, SET_IN_GAME }, #else +/*JP { "statushilites", "highlight control", 20, SET_IN_FILE }, +*/ + { "statushilites", "ƒnƒCƒ‰ƒCƒg‚̐§Œä", 20, SET_IN_FILE }, #endif #if 0 /*JP*/ { "symset", "load a set of display symbols from the symbols file", 70, @@ -657,11 +665,22 @@ static struct Comp_Opt { { "videoshades", "•\Ž¦‚ɃOƒŒƒCƒXƒP[ƒ‹‚ð—p‚¢‚é", 32, DISP_IN_GAME }, #endif +#if 0 /*JP*/ { "whatis_coord", "show coordinates when auto-describing cursor position", 1, SET_IN_GAME }, +#else + { "whatis_coord", "ƒJ[ƒ\ƒ‹ˆÊ’u‚ðŽ©“®à–¾‚·‚é‚Æ‚«‚ɍÀ•W‚ð•\Ž¦‚·‚é", + 1, SET_IN_GAME }, +#endif +#if 0 /*JP*/ { "whatis_filter", "filter coordinate locations when targeting next or previous", 1, SET_IN_GAME }, +#else + { "whatis_filter", + "ŽŸ‚âŽè‘O‚ðƒ^[ƒQƒbƒg‚·‚é‚Æ‚«‚ɍÀ•WˆÊ’u‚ðƒtƒBƒ‹ƒ^‚·‚é", + 1, SET_IN_GAME }, +#endif #if 0 /*JP*/ { "windowcolors", "the foreground/background colors of windows", /*WC*/ 80, DISP_IN_GAME }, @@ -1305,8 +1324,13 @@ bad_negation(optname, with_parameter) const char *optname; boolean with_parameter; { +#if 0 /*JP*/ pline_The("%s option may not %sbe negated.", optname, with_parameter ? "both have a value and " : ""); +#else + pline_The("%sƒIƒvƒVƒ‡ƒ“‚͔ےè%s‚Å‚«‚È‚¢D", optname, + with_parameter ? "‚Æ’lŽw’è‚Ì—¼•û‚Í" : ""); +#endif } /* @@ -1411,7 +1435,10 @@ const char *optn; return 0; if (fnv > get_current_feature_ver()) { if (!initial) { +/*JP You_cant("disable new feature alerts for future versions."); +*/ + You_cant("«—ˆ‚̃o[ƒWƒ‡ƒ“‚Ì‹@”\Œx‚𖳌ø‚É‚·‚邱‚Æ‚Í‚Å‚«‚È‚¢D"); } else { config_error_add( "%s=%s Invalid reference to a future version ignored", @@ -1424,9 +1451,15 @@ const char *optn; if (!initial) { Sprintf(buf, "%lu.%lu.%lu", FEATURE_NOTICE_VER_MAJ, FEATURE_NOTICE_VER_MIN, FEATURE_NOTICE_VER_PATCH); +#if 0 /*JP*/ pline( "Feature change alerts disabled for NetHack %s features and prior.", buf); +#else + pline( + "NetHack %s ˆÈ‘O‚Ì‹@”\‚ɑ΂·‚é‹@”\•ÏXŒx‚𖳌ø‚É‚µ‚½D", + buf); +#endif } return 1; } diff --git a/src/pager.c b/src/pager.c index 861f471..1a9c9fa 100644 --- a/src/pager.c +++ b/src/pager.c @@ -128,11 +128,21 @@ char *outbuf; int x = isyou ? u.ux : mon->mx, y = isyou ? u.uy : mon->my, glyph = (level.flags.hero_memory && !isyou) ? levl[x][y].glyph : glyph_at(x, y); +#if 1 /*JP*/ + char suffixbuf[QBUFSZ]; +#endif *outbuf = '\0'; +#if 1 /*JP*/ + suffixbuf[0] = '\0'; +#endif if (mon->m_ap_type == M_AP_FURNITURE || mon->m_ap_type == M_AP_OBJECT) { +#if 0 /*JP*/ Strcpy(outbuf, ", mimicking "); +#else /*Œã‚ŒljÁ‚·‚é*/ + Strcpy(suffixbuf, "‚Ì‚Ó‚è‚ð‚µ‚Ä‚¢‚é"); +#endif if (mon->m_ap_type == M_AP_FURNITURE) { Strcat(outbuf, an(defsyms[mon->mappearance].explanation)); } else if (mon->m_ap_type == M_AP_OBJECT @@ -149,27 +159,55 @@ char *outbuf; } else { Strcat(outbuf, something); } +#if 1 /*JP*/ + Strcat(outbuf, suffixbuf); +#endif } else if (mon->m_ap_type == M_AP_MONSTER) { if (altmon) +#if 0 /*JP*/ Sprintf(outbuf, ", masquerading as %s", an(mons[mon->mappearance].mname)); +#else + Sprintf(outbuf, "%s‚É‚È‚è‚·‚Ü‚µ‚Ä‚¢‚é", + mons[mon->mappearance].mname); +#endif } else if (isyou ? u.uundetected : mon->mundetected) { +#if 0 /*JP*/ Strcpy(outbuf, ", hiding"); +#else + Strcpy(suffixbuf, "‚ɉB‚ê‚Ä‚¢‚é"); +#endif if (hides_under(mon->data)) { +#if 0 /*JP*//*’nŒ`‚̏ꍇu‚̉º‚Ɂv‚È‚Ç‚Í•sŽ©‘R‚Ȃ̂ŁA’P‚ɏȗª‚µ‚Ä‚¨‚­*/ Strcat(outbuf, " under "); +#endif /* remembered glyph, not glyph_at() which is 'mon' */ if (glyph_is_object(glyph)) goto objfrommap; Strcat(outbuf, something); } else if (is_hider(mon->data)) { +#if 0 /*JP*/ Sprintf(eos(outbuf), " on the %s", (is_flyer(mon->data) || mon->data->mlet == S_PIERCER) ? "ceiling" : surface(x, y)); /* trapper */ +#else + Sprintf(eos(outbuf), "%s", + (is_flyer(mon->data) || mon->data->mlet == S_PIERCER) + ? "“Vˆä" + : surface(x, y)); /* trapper */ +#endif } else { if (mon->data->mlet == S_EEL && is_pool(x, y)) +#if 0 /*JP*/ Strcat(outbuf, " in murky water"); +#else + Strcat(outbuf, "‚É‚²‚Á‚½…‚Ì’†"); +#endif } +#if 1 /*JP*/ + Strcat(outbuf, suffixbuf); +#endif } } @@ -246,7 +284,10 @@ int x, y, glyph; Strcpy(buf, something); /* sanity precaution */ if (otmp && otmp->where == OBJ_BURIED) +/*JP Strcat(buf, " (buried)"); +*/ + Strcat(buf, " (–„‚Ü‚Á‚Ä‚¢‚é)"); else if (levl[x][y].typ == STONE || levl[x][y].typ == SCORR) /*JP Strcat(buf, " embedded in stone"); @@ -314,8 +355,12 @@ int x, y; #endif if (u.ustuck == mtmp) { if (u.uswallow || iflags.save_uswallow) /* monster detection */ +#if 0 /*JP*/ Strcat(buf, is_animal(mtmp->data) ? ", swallowing you" : ", engulfing you"); +#else + Strcat(buf, ", ‚ ‚È‚½‚ðˆù‚ݍž‚ñ‚Å‚¢‚é"); +#endif else Strcat(buf, (Upolyd && sticks(youmonst.data)) /*JP @@ -418,11 +463,19 @@ int x, y; unsigned long mW = (context.warntype.obj | context.warntype.polyd), m2 = mtmp->data->mflags2; +#if 0 /*JP*/ const char *whom = ((mW & M2_HUMAN & m2) ? "human" : (mW & M2_ELF & m2) ? "elf" : (mW & M2_ORC & m2) ? "orc" : (mW & M2_DEMON & m2) ? "demon" : mtmp->data->mname); +#else + const char *whom = ((mW & M2_HUMAN & m2) ? "lŠÔ" + : (mW & M2_ELF & m2) ? "ƒGƒ‹ƒt" + : (mW & M2_ORC & m2) ? "ƒI[ƒN" + : (mW & M2_DEMON & m2) ? "ˆ«–‚" + : mtmp->data->mname); +#endif /*JP Sprintf(eos(monbuf), "warned of %s", makeplural(whom)); @@ -534,9 +587,17 @@ char *buf, *monbuf; * chests so that they can have their own glyphs and tiles. */ if (trapped_chest_at(tnum, x, y)) +#if 0 /*JP*/ Strcpy(buf, "trapped chest"); /* might actually be a large box */ +#else + Strcpy(buf, "㩂̎dŠ|‚¯‚ç‚ꂽ” "); /* might actually be a large box */ +#endif else if (trapped_door_at(tnum, x, y)) +#if 0 /*JP*/ Strcpy(buf, "trapped door"); /* not "trap door"... */ +#else + Strcpy(buf, "㩂̎dŠ|‚¯‚ç‚ꂽ”à"); /* not "trap door"... */ +#endif else Strcpy(buf, defsyms[trap_to_defsym(tnum)].explanation); } else if (glyph_is_warning(glyph)) { @@ -672,6 +733,7 @@ boolean user_typed_name, without_asking; dbase_str = strcpy(newstr, inp); (void) lcase(dbase_str); + /*JP:TODO:ƒf[ƒ^ƒx[ƒXŒŸõ‚Í“®‚¢‚Ä‚¢‚È‚¢‚Ì‚Å—vC³*/ /* * TODO: * The switch from xname() to doname_vague_quan() in look_at_obj() @@ -1071,7 +1133,11 @@ const char **firstmatch; i = 0; /* undo loop increment */ x_str = defsyms[i].explanation; if (submerged && !strcmp(x_str, defsyms[0].explanation)) +#if 0 /*JP*/ x_str = "land"; /* replace "dark part of a room" */ +#else + x_str = "’n–Ê"; /* replace "dark part of a room" */ +#endif /* alt_i is now 3 or more and no longer of interest */ } if (sym == (looked ? showsyms[i] : defsyms[i].sym) && *x_str) { @@ -1141,7 +1207,10 @@ const char **firstmatch; /* Kludge: warning trumps boulders on the display. Reveal the boulder too or player can get confused */ if (looked && sobj_at(BOULDER, cc.x, cc.y)) +/*JP Strcat(out_str, " co-located with a boulder"); +*/ + Strcat(out_str, "(‹Šâ‚Æ“¯‚¶ˆÊ’u‚É‚ ‚é)"); break; /* out of for loop*/ } } @@ -1181,7 +1250,10 @@ const char **firstmatch; */ if (found > 4) +/*JP Sprintf(out_str, "%s", "That can be many things"); +*/ + Sprintf(out_str, "%s", "‚±‚±‚É‚Í‘½‚­‚Ì‚à‚Ì‚ª‚ ‚é"); didlook: if (looked) { @@ -1198,7 +1270,10 @@ const char **firstmatch; found = 1; /* we have something to look up */ } if (monbuf[0]) { +/*JP Sprintf(temp_buf, " [seen: %s]", monbuf); +*/ + Sprintf(temp_buf, " [Ž‹Šo: %s]", monbuf); (void) strncat(out_str, temp_buf, BUFSZ - strlen(out_str) - 1); } diff --git a/src/pickup.c b/src/pickup.c index dbe7ae7..bcb29e9 100644 --- a/src/pickup.c +++ b/src/pickup.c @@ -1916,9 +1916,15 @@ int cindex, ccount; /* index of this container (1..N), number of them (N) */ cobj->lknown ? "" : "‚ށ[‚ñC"); #endif else if (cobj->lknown) +/*JP pline("%s is locked.", The(xname(cobj))); +*/ + pline("%s‚ÍŒ®‚ª‚©‚©‚Á‚Ä‚¢‚éD", xname(cobj)); else +/*JP pline("Hmmm, %s turns out to be locked.", the(xname(cobj))); +*/ + pline("‚ށ[‚ñC%s‚ÍŒ®‚ª‚©‚©‚Á‚Ä‚¢‚éD", xname(cobj)); cobj->lknown = 1; return 0; } @@ -3320,8 +3326,13 @@ boolean outokay, inokay, alreadyused, more_containers; add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, "", MENU_UNSELECTED); if (more_containers) { any.a_int = 7; /* 'n' */ +#if 0 /*JP*/ add_menu(win, NO_GLYPH, &any, menuselector[any.a_int], 0, ATR_NONE, "loot next container", MENU_SELECTED); +#else + add_menu(win, NO_GLYPH, &any, menuselector[any.a_int], 0, ATR_NONE, + "ŽŸ‚Ì” ‚ðŠJ‚¯‚é", MENU_SELECTED); +#endif } any.a_int = 8; /* 'q' */ /*JP @@ -3403,10 +3414,15 @@ dotip() /* use 'i' for inventory unless there are so many containers that it's already being used */ i = (i <= 'i' - 'a' && !flags.lootabc) ? 'i' : 0; +#if 0 /*JP*/ add_menu(win, NO_GLYPH, &any, i, 0, ATR_NONE, "tip something being carried", MENU_SELECTED); +#else + add_menu(win, NO_GLYPH, &any, i, 0, ATR_NONE, + "“ü‚ꕨ‚ð‚ЂÁ‚­‚è‚©‚¦‚·", MENU_SELECTED); +#endif } - end_menu(win, "Tip which container?"); + end_menu(win, "‚Ç‚Ì“ü‚ꕨ‚ð‚ЂÁ‚­‚è‚©‚¦‚·H"); n = select_menu(win, PICK_ONE, &pick_list); destroy_nhwindow(win); /* diff --git a/src/polyself.c b/src/polyself.c index ca8f308..f261d04 100644 --- a/src/polyself.c +++ b/src/polyself.c @@ -863,42 +863,42 @@ int mntmp; /*JP pline(use_thec, monsterc, "use your breath weapon"); */ - pline(use_thec,monsterc, "‘§‚ð“f‚«‚©‚¯‚é"); + pline(use_thec, monsterc, "‘§‚ð“f‚«‚©‚¯‚é"); if (attacktype(youmonst.data, AT_SPIT)) /*JP pline(use_thec, monsterc, "spit venom"); */ - pline(use_thec,monsterc, "“Å‚ð“f‚­"); + pline(use_thec, monsterc, "“Å‚ð“f‚­"); if (youmonst.data->mlet == S_NYMPH) /*JP pline(use_thec, monsterc, "remove an iron ball"); */ - pline(use_thec,monsterc, "“S‹…‚ð‚Í‚¸‚·"); + pline(use_thec, monsterc, "“S‹…‚ð‚Í‚¸‚·"); if (attacktype(youmonst.data, AT_GAZE)) /*JP pline(use_thec, monsterc, "gaze at monsters"); */ - pline(use_thec,monsterc, "‰ö•¨‚ðáɂÞ"); + pline(use_thec, monsterc, "‰ö•¨‚ðáɂÞ"); if (is_hider(youmonst.data)) /*JP pline(use_thec, monsterc, "hide"); */ - pline(use_thec,monsterc, "‰B‚ê‚é"); + pline(use_thec, monsterc, "‰B‚ê‚é"); if (is_were(youmonst.data)) /*JP pline(use_thec, monsterc, "summon help"); */ - pline(use_thec,monsterc, "’‡ŠÔ‚ð¢Š«‚·‚é"); + pline(use_thec, monsterc, "’‡ŠÔ‚ð¢Š«‚·‚é"); if (webmaker(youmonst.data)) /*JP pline(use_thec, monsterc, "spin a web"); */ - pline(use_thec,monsterc, "‚­‚à‚Ì‘ƒ‚𒣂é"); + pline(use_thec, monsterc, "‚­‚à‚Ì‘ƒ‚𒣂é"); if (u.umonnum == PM_GREMLIN) /*JP pline(use_thec, monsterc, "multiply in a fountain"); */ - pline(use_thec,monsterc, "ò‚Ì’†‚Å•ª—ô‚·‚é"); + pline(use_thec, monsterc, "ò‚Ì’†‚Å•ª—ô‚·‚é"); if (is_unicorn(youmonst.data)) /*JP pline(use_thec, monsterc, "use your horn"); @@ -2000,7 +2000,8 @@ int part; "spine", "toe", "hair", "blood", "lung", "nose", "stomach" }, #else - *humanoid_parts[] = { "˜r", "–Ú", "Šç", "Žw", + *humanoid_parts[] = { + "˜r", "–Ú", "Šç", "Žw", "Žwæ", "‘«", "Žè", "Žè‚É‚·‚é", "“ª", "‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", "”wœ", "’ܐæ", "”¯", "ŒŒ", @@ -2015,13 +2016,14 @@ int part; "ripples", "juices", "surface", "sensor", "stomach" }, #else - *jelly_parts[] = { "‹[Ž—GŽè", "•‚¢”Á“_", "‘O–Ê", - "‹[Ž—GŽè‚̐æ", "‹[Ž—GŽè", - "‹[Ž—GŽè‚ÌŠ²", "GŽè", "ˆ¬‚é", - "”]‚̗̈æ", "‰º•û‚Ì‹[Ž—GŽè", "‚˂΂˂΂µ‚Ä‚«‚½", - "’†ŠÔ—̈æ", "•\–Ê", "‹[Ž—GŽè", - "”g–ä", "‘̉t", "•\–Ê", "Š´ŠoŠí", - "ˆÝ"}, + *jelly_parts[] = { + "‹[Ž—GŽè", "•‚¢”Á“_", "‘O–Ê", + "‹[Ž—GŽè‚̐æ", "‹[Ž—GŽè", + "‹[Ž—GŽè‚ÌŠ²", "GŽè", "ˆ¬‚é", + "”]‚̗̈æ", "‰º•û‚Ì‹[Ž—GŽè", "‚˂΂˂΂µ‚Ä‚«‚½", + "’†ŠÔ—̈æ", "•\–Ê", "‹[Ž—GŽè", + "”g–ä", "‘̉t", "•\–Ê", "Š´ŠoŠí", + "ˆÝ"}, #endif #if 0 /*JP*/ *animal_parts[] = { "forelimb", "eye", "face", @@ -2032,13 +2034,14 @@ int part; "blood", "lung", "nose", "stomach" }, #else - *animal_parts[] = { "‘O‘«", "–Ú", "Šç", - "‘O’Ü", "’ܐæ", "Œã’Ü", - "‘O’Ü", "‚ЂÁ‚©‚¯‚é", "“ª", - "Œã‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", - "”wœ", "Œã’ܐæ", "–Ñ”ç", - "ŒŒ", "”x", "•@", - "ˆÝ"}, + *animal_parts[] = { + "‘O‘«", "–Ú", "Šç", + "‘O’Ü", "’ܐæ", "Œã’Ü", + "‘O’Ü", "‚ЂÁ‚©‚¯‚é", "“ª", + "Œã‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", + "”wœ", "Œã’ܐæ", "–Ñ”ç", + "ŒŒ", "”x", "•@", + "ˆÝ"}, #endif #if 0 /*JP*/ *bird_parts[] = { "wing", "eye", "face", "wing", @@ -2047,11 +2050,12 @@ int part; "spine", "toe", "feathers", "blood", "lung", "bill", "stomach" }, #else - *bird_parts[] = { "—ƒ", "–Ú", "Šç", "—ƒ", - "—ƒ‚̐æ", "‘«", "—ƒ", "—ƒ‚É‚Æ‚é", - "“ª", "‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", - "”wœ", "’ܐæ", "‰H–Ñ", "ŒŒ", - "”x", "‚­‚¿‚΂µ", "ˆÝ" }, + *bird_parts[] = { + "—ƒ", "–Ú", "Šç", "—ƒ", + "—ƒ‚̐æ", "‘«", "—ƒ", "—ƒ‚É‚Æ‚é", + "“ª", "‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", + "”wœ", "’ܐæ", "‰H–Ñ", "ŒŒ", + "”x", "‚­‚¿‚΂µ", "ˆÝ" }, #endif #if 0 /*JP*/ *horse_parts[] = { "foreleg", "eye", "face", @@ -2062,13 +2066,14 @@ int part; "blood", "lung", "nose", "stomach" }, #else - *horse_parts[] = { "‘O‘«", "–Ú", "Šç", - "‘O’û", "’û", "Œã’û", - "‘O’Ü", "’û‚É‚Í‚³‚Þ", "“ª", - "Œã‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", - "”wœ", "Œã’ܐæ", "‚½‚Ä‚ª‚Ý", - "ŒŒ", "”x", "•@", - "ˆÝ" }, + *horse_parts[] = { + "‘O‘«", "–Ú", "Šç", + "‘O’û", "’û", "Œã’û", + "‘O’Ü", "’û‚É‚Í‚³‚Þ", "“ª", + "Œã‘«", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", + "”wœ", "Œã’ܐæ", "‚½‚Ä‚ª‚Ý", + "ŒŒ", "”x", "•@", + "ˆÝ" }, #endif #if 0 /*JP*/ *sphere_parts[] = { "appendage", "optic nerve", "body", "tentacle", @@ -2078,7 +2083,8 @@ int part; "lower tentacle tip", "cilia", "life force", "retina", "olfactory nerve", "interior" }, #else - *sphere_parts[] = { "“Ë‹N", "Ž‹Šo_Œo", "‘Ì", "GŽè", + *sphere_parts[] = { + "“Ë‹N", "Ž‹Šo_Œo", "‘Ì", "GŽè", "GŽè‚̐æ", "‰º‚Ì“Ë‹N", "GŽè", "GŽè‚ÉŽ‚Â", "‘Ì", "‰º‚̐GŽè", "‰ñ“]‚µ‚½", "’†Sü", "‘Ì", @@ -2094,7 +2100,8 @@ int part; "juices", "gill", "gill", "interior" }, #else - *fungus_parts[] = { "‹ÛŽ…‘Ì", "Ž‹Šo—̈æ", "‘O", + *fungus_parts[] = { + "‹ÛŽ…‘Ì", "Ž‹Šo—̈æ", "‘O", "‹ÛŽ…", "‹ÛŽ…", "ª", "GŽè", "GŽè‚É‚©‚ç‚݂‚¯‚é", "ŽP", "ªŒs", "¬—‚·‚é", "Ž²", @@ -2111,7 +2118,8 @@ int part; "life force", "center", "leading edge", "interior" }, #else - *vortex_parts[] = { "—̈æ", "–Ú", "‘O", + *vortex_parts[] = { + "—̈æ", "–Ú", "‘O", "¬‚³‚¢—¬‚ê", "¬‚³‚¢—¬‚ê", "‰º•”‚Ì—¬‚ê", "‰QŠª", "‰Q‚ÉŠª‚­", "‰Q‚Ì’†S", "‰º•”‚Ì—¬‚ê", "¬—‚µ‚½", "’†S•”", @@ -2127,7 +2135,8 @@ int part; "scales", "blood", "lung", "forked tongue", "stomach" }, #else - *snake_parts[] = { "‘Þ‰»‚µ‚½‘«", "–Ú", "Šç", "‘å‚«‚È—Ø", + *snake_parts[] = { + "‘Þ‰»‚µ‚½‘«", "–Ú", "Šç", "‘å‚«‚È—Ø", "‘å‚«‚ȗ؂̐æ", "Œã•”•ª", "—Ø‚ÌŒ„ŠÔ", "—Ø‚ÌŒ„ŠÔ‚ɂ‚¯‚é", "“ª", "Œã•”•ª", "‚ß‚Ü‚¢‚ª‚µ‚½", "Žñ", "‘Ì", "Œã•”•ª‚ÌŠZ", @@ -2142,12 +2151,13 @@ int part; "length", "posterior setae", "setae", "blood", "skin", "prostomium", "stomach" }, #else - *worm_parts[] = { "‘O‹æ", "Š´Œõ«×–E", - "ŠÂ‘Ñ", "Šp", "Šp", "Œã‹æ", - "ß", "ß‚ɂ‚¯‚é", "‘O‹æ", - "Œã•”", "L‚Ñ‚·‚¬‚½", "ŠÂ‘Ñ", - "‘Ì", "Œã•”‚ÌŠp", "Šp", "ŒŒ", - "”畆", "Œû‘O—t", "ˆÝ" }, + *worm_parts[] = { + "‘O‹æ", "Š´Œõ«×–E", + "ŠÂ‘Ñ", "Šp", "Šp", "Œã‹æ", + "ß", "ß‚ɂ‚¯‚é", "‘O‹æ", + "Œã•”", "L‚Ñ‚·‚¬‚½", "ŠÂ‘Ñ", + "‘Ì", "Œã•”‚ÌŠp", "Šp", "ŒŒ", + "”畆", "Œû‘O—t", "ˆÝ" }, #endif #if 0 /*JP*/ *fish_parts[] = { "fin", "eye", "premaxillary", "pelvic axillary", @@ -2156,7 +2166,8 @@ int part; "dorsal fin", "caudal fin", "scales", "blood", "gill", "nostril", "stomach" }; #else - *fish_parts[] = { "‚Ђê", "–Ú", "Šç", "‚Ђê‚̐æ", + *fish_parts[] = { + "‚Ђê", "–Ú", "Šç", "‚Ђê‚̐æ", "‚Ђê‚̐æ", "”ö‚Ñ‚ê", "‹¹‚Ђê", "‚Ђê‚ÅŽ‚Â", "“ª", "”ö•¿", "‚ß‚Ü‚¢‚ª‚µ‚½", "‚¦‚ç", "”w‚Ñ‚ê", "”ö‚Ñ‚ê", "—Ø", "ŒŒ", @@ -2426,10 +2437,10 @@ udeadinside() : "empty"; /* golems plus vortices */ #else return !nonliving(youmonst.data) - ? "Ž€‚ñ‚¾" /* living, including demons */ + ? "Ž€‚ñ‚¾" /* ¶•¨‚ƈ«–‚ */ : !weirdnonliving(youmonst.data) - ? "”j‰ó‚³‚ꂽ" /* undead plus manes */ - : "‚È‚­‚È‚Á‚½"; /* golems plus vortices */ + ? "”j‰ó‚³‚ꂽ" /* ƒAƒ“ƒfƒbƒh‚Æ–S—ì */ + : "‚È‚­‚È‚Á‚½"; /* ƒS[ƒŒƒ€‚ƉQ */ #endif } diff --git a/src/pray.c b/src/pray.c index 04439fa..2423b97 100644 --- a/src/pray.c +++ b/src/pray.c @@ -472,7 +472,10 @@ int trouble; set_itimeout(&HPasses_walls, (long) (d(4, 4) + 4)); /* 8..20 */ /* how else could you move between packed rocks or among lattice forming "solid" rock? */ +/*JP You_feel("much slimmer."); +*/ + You_feel("‚Æ‚Ä‚àƒXƒŠƒ€‚É‚È‚Á‚½‹C‚ª‚µ‚½D"); } break; case TROUBLE_CURSED_LEVITATION: diff --git a/src/priest.c b/src/priest.c index 74e0be9..64e03de 100644 --- a/src/priest.c +++ b/src/priest.c @@ -1181,12 +1181,20 @@ struct monst *mtmp; the worm's segments, but we count it as such when presenting worm feedback to the player */ if (!nsegs) { +/*JP Strcat(info, ", single segment"); +*/ + Strcat(info, ", ‘S‘Ì"); } else { ++nsegs; /* include head in the segment count */ segndx = wseg_at(mtmp, bhitpos.x, bhitpos.y); +#if 0 /*JP*/ Sprintf(eos(info), ", %d%s of %d segments", segndx, ordin(segndx), nsegs); +#else + Sprintf(eos(info), ", %dß‚Ì‚¤‚¿%d”Ô–Ú", + nsegs, segndx); +#endif } } if (mtmp->cham >= LOW_PM && mtmp->data != &mons[mtmp->cham]) diff --git a/src/read.c b/src/read.c index c798fbc..89b45f7 100644 --- a/src/read.c +++ b/src/read.c @@ -528,9 +528,15 @@ doread() maintained illiterate conduct so far, and this mail scroll didn't come from bones, ask for confirmation */ if (!u.uconduct.literate) { +#if 0 /*JP*/ if (!scroll->spe && yn( "Reading mail will violate \"illiterate\" conduct. Read anyway?" ) != 'y') +#else + if (!scroll->spe && yn( + "ƒ[ƒ‹‚ð“ǂނƁu•¶Žš‚ð“Ç‚Ü‚È‚¢v’§í‚Ɉᔽ‚·‚邯‚ǁC‚»‚ê‚Å‚à“ǂށH" + ) != 'y') +#endif return 0; } } @@ -1249,7 +1255,10 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */ known = TRUE; if (sobj->spe == 2) /* "stamped scroll" created via magic marker--without a stamp */ +/*JP pline("This scroll is marked \"postage due\"."); +*/ + pline("‚±‚ÌŠª•¨‚ɂ́u—¿‹à•s‘«v‚Ə‘‚¢‚Ä‚ ‚éD"); else if (sobj->spe) /* scroll of mail obtained from bones file or from wishing; * note to the puzzled: the game Larn actually sends you junk @@ -1491,7 +1500,7 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */ /*JP You_feel("confused."); */ - You_feel("confused."); + You_feel("¬—‚µ‚½D"); make_confused(HConfusion + rnd(100), FALSE); } else if (confused) { if (!sblessed) { @@ -2065,11 +2074,20 @@ struct obj *sobj; /* scroll, or fake spellbook object for scroll-like spell */ } else { if (sblessed) { if (!already_known) +/*JP pline("This is a scroll of fire!"); +*/ + pline("‚±‚ê‚͉΂̊ª•¨‚¾I"); dam *= 5; +/*JP pline("Where do you want to center the explosion?"); +*/ + pline("‚Ç‚±‚𔚔­‚Ì’†S‚É‚µ‚Ü‚·‚©H"); getpos_sethilite(display_stinking_cloud_positions, get_valid_stinking_cloud_pos); +/*JP (void) getpos(&cc, TRUE, "the desired position"); +*/ + (void) getpos(&cc, TRUE, "‘_‚¢‚̏ꏊ"); if (!is_valid_stinking_cloud_pos(cc.x, cc.y, FALSE)) { /* try to reach too far, get burned */ cc.x = u.ux; diff --git a/src/region.c b/src/region.c index 9f57b53..9890458 100644 --- a/src/region.c +++ b/src/region.c @@ -958,7 +958,10 @@ genericptr_t p2; if (u.uinvulnerable || nonliving(youmonst.data) || Breathless) return FALSE; if (!Blind) { +/*JP Your("%s sting.", makeplural(body_part(EYE))); +*/ + Your("%s‚ªƒ`ƒNƒ`ƒN‚µ‚½D", body_part(EYE)); make_blinded(1L, FALSE); } if (!Poison_resistance) { @@ -1114,10 +1117,16 @@ region_safety() safe_teleds(FALSE); } else if (r) { remove_region(r); +/*JP pline_The("gas cloud enveloping you dissipates."); +*/ + pline("‚ ‚È‚½‚ð•ï‚ñ‚Å‚¢‚½ƒKƒX‰_‚͏Á‚¦‚½D"); } else { /* cloud dissipated on its own, so nothing needs to be done */ +/*JP pline_The("gas cloud has dissipated."); +*/ + pline("ƒKƒX‰_‚͏Á‚¦‚½D"); } /* maybe cure blindness too */ if ((Blinded & TIMEOUT) == 1L) diff --git a/src/role.c b/src/role.c index f1deb1e..a0238a9 100644 --- a/src/role.c +++ b/src/role.c @@ -2564,7 +2564,10 @@ role_init() urole.cgod = roles[flags.pantheon].cgod; } /* 0 or 1; no gods are neuter, nor is gender randomized */ +/*JP quest_status.godgend = !strcmpi(align_gtitle(alignmnt), "goddess"); +*/ + quest_status.godgend = !strcmpi(align_gtitle(alignmnt), "—_"); /* Fix up infravision */ if (mons[urace.malenum].mflags3 & M3_INFRAVISION) { diff --git a/src/rumors.c b/src/rumors.c index 6fa7921..c8d5ebd 100644 --- a/src/rumors.c +++ b/src/rumors.c @@ -492,7 +492,7 @@ boolean delphi; /*JP : "The Oracle meditates for a moment and then intones:"); */ - : "Œ«ŽÒ‚Í‚µ‚΂炭–»‘z‚µC‰Ì‚¤‚悤‚ɘb‚µ‚½F"); + : "Œ«ŽÒ‚Í‚µ‚΂炭áґz‚µC‰Ì‚¤‚悤‚ɘb‚µ‚½F"); else /*JP putstr(tmpwin, 0, "The message reads:"); diff --git a/src/shk.c b/src/shk.c index b415be3..efdf9e3 100644 --- a/src/shk.c +++ b/src/shk.c @@ -93,7 +93,10 @@ STATIC_DCL const char *FDECL(cad, (BOOLEAN_P)); obj->quan <= bp->bquan */ +/*JP static const char *angrytexts[] = { "quite upset", "ticked off", "furious" }; +*/ +static const char *angrytexts[] = { "‚©‚È‚è“{‚Á‚½", "• ‚𗧂Ă½", "Œƒ“{‚µ‚½" }; /* * Transfer money from inventory to monster when paying @@ -467,10 +470,16 @@ boolean newlev; plname); #endif else +#if 0 /*JP*/ pline("%s %s that you need to pay before leaving%s", Shknam(shkp), NOTANGRY(shkp) ? "points out" : "makes it clear", NOTANGRY(shkp) ? "." : "!"); +#else + pline("%s‚́C‹A‚é‘O‚ÉŽx•¥‚¢‚ð‚·‚é•K—v‚ª‚ ‚邱‚Æ‚ð%s", + Shknam(shkp), + NOTANGRY(shkp) ? "Žw“E‚µ‚½D" : "‚Í‚Á‚«‚肳‚¹‚½I"); +#endif return; } @@ -576,7 +585,7 @@ deserted_shop(enterstring) #else pline("“X‚Í%s%sD", !n ? "”pšÐ‚Ɖ»‚µ‚Ä‚¢‚é" : "•úŠü‚³‚ê‚Ä‚¢‚é", - (m < n) ? "‚悤‚¾" : "is"); + (m < n) ? "‚悤‚¾" : ""); #endif } @@ -639,8 +648,13 @@ char *enterstring; */ verbalize("“§–¾‚È‚¨‹q‚³‚ñ‚Æ‚ÍŠ´S‚µ‚È‚¢‚ȁI"); else +#if 0 /*JP*/ pline("%s stands firm as if %s knows you are there.", Shknam(shkp), mhe(shkp)); +#else + pline("%s‚́C‚Ü‚é‚Å‚ ‚È‚½‚ª‚»‚±‚É‚¢‚邱‚Æ‚ð’m‚Á‚Ä‚¢‚é‚©‚̂悤‚É—§‚¿‚Í‚¾‚©‚Á‚½D", + Shknam(shkp)); +#endif return; } @@ -656,11 +670,18 @@ char *enterstring; shkname(shkp), shtypes[rt - SHOPBASE].name); #endif else +#if 0 /*JP*/ pline("%s seems %s over your return to %s %s!", Shknam(shkp), angrytexts[rn2(SIZE(angrytexts))], mhis(shkp), shtypes[rt - SHOPBASE].name); +#else + pline("‚ ‚È‚½‚ª%s‚É–ß‚Á‚Ä‚«‚½‚Ì‚Å%s‚Í%s‚悤‚¾I", + shtypes[rt - SHOPBASE].name, + Shknam(shkp), + angrytexts[rn2(SIZE(angrytexts))]); +#endif } else if (eshkp->robbed) { if (!Deaf) #if 0 /*JP*/ @@ -671,9 +692,14 @@ char *enterstring; shkname(shkp)); #endif else +#if 0 /*JP*/ pline("%s is combing through %s inventory list.", Shknam(shkp), mhis(shkp)); +#else + pline("%s‚ÍŽ©•ª‚ÌŽ‚¿•¨ˆê——‚ðŠm”F‚µ‚Ä‚¢‚éD", + Shknam(shkp)); +#endif } else { if (!Deaf && !muteshk(shkp)) #if 0 /*JP:T*/ @@ -686,10 +712,17 @@ char *enterstring; eshkp->visitct++ ? "‚Ü‚½—ˆ‚Ü‚µ‚½‚Ë" : "‚悤‚±‚»"); #endif else +#if 0 /*JP*/ You("enter %s %s%s!", s_suffix(shkname(shkp)), shtypes[rt - SHOPBASE].name, eshkp->visitct++ ? " again" : ""); +#else + You("%s%s‚Ì%s‚ð–K‚ꂽI", + eshkp->visitct++ ? "Ä‚Ñ" : "", + shkname(shkp), + shtypes[rt - SHOPBASE].name); +#endif } /* can't do anything about blocking if teleported in */ if (!inside_shop(u.ux, u.uy)) { @@ -741,10 +774,17 @@ char *enterstring; tool); #endif else +#if 0 /*JP*/ pline("%s %s to let you in with your %s%s.", Shknam(shkp), NOTANGRY(shkp) ? "is hesitant" : "refuses", tool, plur(cnt)); +#else + pline("%s‚Í‚ ‚È‚½‚ª%s‚ðŽ‚Á‚Ä“ü‚é‚Ì%sD", + Shknam(shkp), + tool, + NOTANGRY(shkp) ? "‚Í‹C‚ª‚·‚·‚Ü‚È‚¢‚悤‚¾" : "‚ð‹‘”Û‚µ‚½"); +#endif should_block = TRUE; } else if (u.usteed) { if (!Deaf && !muteshk(shkp)) @@ -758,10 +798,17 @@ char *enterstring; y_monnam(u.usteed)); #endif else +#if 0 /*JP*/ pline("%s %s to let you in while you're riding %s.", Shknam(shkp), NOTANGRY(shkp) ? "doesn't want" : "refuses", y_monnam(u.usteed)); +#else + pline("%s‚Í‚ ‚È‚½‚ª%s‚ɏæ‚Á‚½‚Ü‚Ü‚È‚Ì%s.", + Shknam(shkp), + y_monnam(u.usteed), + NOTANGRY(shkp) ? "‚Í–]‚Ü‚È‚¢‚悤‚¾" : "‚ð‹‘”Û‚µ‚½"); +#endif should_block = TRUE; } else { should_block = @@ -798,10 +845,17 @@ struct obj *obj; verbalize("‚Ђ«‚傤ŽÒ‚߁I‚‚é‚Í‚µ‚ðŽ‚Á‚ÄŠO‚ɏo‚ëI"); #endif else +#if 0 /*JP*/ pline("%s %s your pick!", Shknam(shkp), haseyes(shkp->data) ? "glares at" : "is dismayed because of"); +#else + pline("%s‚͂‚é‚Í‚µ%sI", + Shknam(shkp), + haseyes(shkp->data) ? "‚ð‚É‚ç‚݂‚¯‚½" + : "‚É“®—h‚µ‚Ä‚¢‚é"); +#endif } pickmovetime = moves; } @@ -1836,10 +1890,16 @@ proceed: shtypes[eshkp->shoptype - SHOPBASE].name); #endif else +#if 0 /*JP*/ pline("%s nods appreciatively at you for shopping in %s %s!", Shknam(shkp), mhis(shkp), shtypes[eshkp->shoptype - SHOPBASE].name); +#else + pline("%s‚Í%s‚Å‚Ì”ƒ‚¢•¨‚ÉŠ´ŽÓ‚µ‚Ä‚¤‚Ȃ¢‚½I", + Shknam(shkp), + shtypes[eshkp->shoptype - SHOPBASE].name); +#endif } return 1; } @@ -1928,11 +1988,18 @@ boolean itemize; ANGRY(shkp) ? "•¥‚¦I" : "•¥‚Á‚Ä‚­‚¾‚³‚¢D"); #endif } else { +#if 0 /*JP*/ pline("%s %s%s your bill for the other %s first.", Shknam(shkp), ANGRY(shkp) ? "angrily " : "", nolimbs(shkp->data) ? "motions to" : "points out", simpleonames(obj)); +#else + pline("%s‚Í%s‘¼‚Ì%s‚Ì‚½‚ß‚ÌŽx•¥‚¢‚ðæ‚É‚·‚é‚悤‚É‘£‚µ‚½D", + Shknam(shkp), + ANGRY(shkp) ? "“{‚Á‚Ä" : "", + simpleonames(obj)); +#endif } buy = PAY_SKIP; /* shk won't sell */ } @@ -2560,9 +2627,15 @@ boolean quietly; if (!quietly) { if (is_izchak(shkp, TRUE) && !u.uevent.invoked) { if (Deaf || muteshk(shkp)) { +#if 0 /*JP:T*/ pline("%s seems %s that you want to sell that.", Shknam(shkp), (obj->spe < 7) ? "horrified" : "concerned"); +#else + pline("%s‚Í‚ ‚È‚½‚ª‚»‚ê‚𔄂낤‚Æ‚µ‚Ä‚¢‚邱‚Æ‚ð%s‚Ä‚¢‚é‚悤‚¾D", + Shknam(shkp), + (obj->spe < 7) ? "‹°‚ê" : "S”z‚µ"); +#endif } else { /*JP verbalize("No thanks, I'd hang onto that if I were you."); @@ -2589,10 +2662,16 @@ boolean quietly; */ verbalize("‚»‚ê‚ÍŽd“ü‚ê‚È‚¢‚æDŽ‚Á‚Ä‚¢‚«‚È‚³‚¢I"); else +#if 0 /*JP*/ pline("%s shakes %s %s in refusal.", Shknam(shkp), mhis(shkp), mbodypart(shkp, HEAD)); +#else + pline("%s‚Í%s‚ðU‚Á‚Ä‹‘”Û‚µ‚½D", + Shknam(shkp), + mbodypart(shkp, HEAD)); +#endif } } return TRUE; @@ -3401,7 +3480,10 @@ xchar x, y; */ verbalize("‚ ‚肪‚Æ‚æC‚±‚̃Nƒ\‚Á‚½‚êI"); else +/*JP pline("%s smirks with satisfaction.", Shknam(shkp)); +*/ + pline("%s‚Í–ž‘«‚µ‚čì‚èÎ‚¢‚ð•‚‚©‚ׂ½D", Shknam(shkp)); subfrombill(obj, shkp); return; } @@ -4250,10 +4332,16 @@ register struct monst *shkp; Hello(shkp)); #endif else +#if 0 /*JP*/ pline("%s holds out %s upturned %s.", Shknam(shkp), mhis(shkp), mbodypart(shkp, HAND)); +#else + pline("%s‚Í%s‚ðã‚ÉŒü‚¯‚č·‚µo‚µ‚½D", + Shknam(shkp), + mbodypart(shkp, HAND)); +#endif followmsg = moves; if (!rn2(9)) { #if 0 /*JP*/ @@ -4666,9 +4754,16 @@ boolean cant_mollify; jpast(dmgstr)); #endif else +#if 0 /*JP*/ pline("%s is %s that you decided to %s %s %s!", Shknam(shkp), angrytexts[rn2(SIZE(angrytexts))], dmgstr, mhis(shkp), dugwall ? "shop" : "door"); +#else + pline("%s‚Í‚ ‚È‚½‚ª%s‚ð%s‚±‚Ƃɑ΂µ‚Ä%sI", + Shknam(shkp), + dugwall ? "“X" : "”à", dmgstr, + angrytexts[rn2(SIZE(angrytexts))]); +#endif } else { if (!Deaf) { /*JP @@ -4685,9 +4780,16 @@ boolean cant_mollify; jpast(dmgstr)); #endif } else { +#if 0 /*JP*/ pline("%s is %s that someone decided to %s %s %s!", Shknam(shkp), angrytexts[rn2(SIZE(angrytexts))], dmgstr, mhis(shkp), dugwall ? "shop" : "door"); +#else + pline("%s‚Í’N‚©‚ª%s‚ð%s‚±‚Ƃɑ΂µ‚Ä%sI", + Shknam(shkp), + dugwall ? "“X" : "”à", dmgstr, + angrytexts[rn2(SIZE(angrytexts))]); +#endif } } hot_pursuit(shkp); @@ -4726,11 +4828,18 @@ boolean cant_mollify; */ verbalize("‚³‚ C•¥‚¤‚ñ‚¾I"); else +#if 0 /*JP*/ pline("%s lunges %s %s toward your %s!", Shknam(shkp), mhis(shkp), mbodypart(shkp, HAND), body_part(NECK)); +#else + pline("%s‚Í%s‚ð‚ ‚È‚½‚Ì%s‚É“Ë‚«o‚µ‚½I", + Shknam(shkp), + mbodypart(shkp, HAND), + body_part(NECK)); +#endif } else growl(shkp); hot_pursuit(shkp); @@ -5031,8 +5140,13 @@ struct monst *shkp; Hello(shkp)); #endif else +#if 0 /*JP*/ pline("%s taps you on the %s.", Shknam(shkp), body_part(ARM)); +#else + pline("%s‚Í‚ ‚È‚½‚Ì%s‚ðŒy‚­‚½‚½‚¢‚½D", + Shknam(shkp), body_part(ARM)); +#endif } } else if (eshk->billct) { register long total = addupbill(shkp) + eshk->debit; diff --git a/src/spell.c b/src/spell.c index bed45e7..5b6ad0b 100644 --- a/src/spell.c +++ b/src/spell.c @@ -792,10 +792,13 @@ rejectcasting() /*JP You("are too impaired to cast a spell."); */ - You("–‚–@‚ð¥‚¦‚ç‚ê‚È‚¢D"); + You("‚­‚ç‚­‚炵‚Ä‚¢‚Ä–‚–@‚ðŽg‚¦‚È‚¢D"); return TRUE; } else if (!can_chant(&youmonst)) { +/*JP You("are unable to chant the incantation."); +*/ + You("Žô•¶‚ð¥‚¦‚邱‚Æ‚ª‚Å‚«‚È‚¢D"); return TRUE; } else if (!freehand()) { /* Note: !freehand() occurs when weapon and shield (or two-handed diff --git a/src/teleport.c b/src/teleport.c index f17de84..beff951 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -755,7 +755,7 @@ level_tele() /*JP if (ynq("Go to Nowhere. Are you sure?") != 'y') */ - if (ynq("‚Ç‚±‚Æ‚à’m‚ê‚ʏꏊ‚ɍs‚«‚Ü‚·H‚æ‚낵‚¢‚Å‚·‚©H") != 'y') + if (ynq("‚Ç‚±‚Æ‚à’m‚ê‚ʏꏊ‚ɍs‚«‚Ü‚·D‚æ‚낵‚¢‚Å‚·‚©H") != 'y') return; #if 0 /*JP*/ You("%s in agony as your body begins to warp...", diff --git a/src/timeout.c b/src/timeout.c index 76ed222..9ea7964 100644 --- a/src/timeout.c +++ b/src/timeout.c @@ -23,6 +23,7 @@ STATIC_DCL void FDECL(cleanup_burn, (ANY_P *, long)); /* used by wizard mode #timeout and #wizintrinsic; order by 'interest' for timeout countdown, where most won't occur in normal play */ +/*JP ƒEƒBƒU[ƒhƒ‚[ƒh‚Å‚µ‚©Žg‚í‚ê‚È‚¢‚悤‚È‚Ì‚Å–|–󂵂Ȃ¢ */ const struct propname { int prop_num; const char *prop_name; @@ -225,7 +226,10 @@ vomiting_dialogue() else if (Hallucination) /* "hurl" is short for "hurl chunks" which is slang for relatively violent vomiting... */ +/*JP txt = "are about to hurl!"; +*/ + txt = "ƒŠƒo[ƒX¡‘O‚¾I"; break; case 0: stop_occupation(); @@ -240,7 +244,10 @@ vomiting_dialogue() [vomit() issues its own message for the cantvomit() case and for the FAINTING-or-worse case where stomach is empty] */ if (u.uhs < FAINTING) +/*JP You("%s!", !Hallucination ? "vomit" : "hurl chunks"); +*/ + You("%sI", !Hallucination ? "“f‚¢‚½" : "ƒŠƒo[ƒX‚µ‚½"); } vomit(); break; @@ -308,8 +315,13 @@ choke_dialogue() } static NEARDATA const char *const levi_texts[] = { +#if 0 /*JP*//* %s‚ÍŽg‚í‚È‚¢ */ "You float slightly lower.", "You wobble unsteadily %s the %s." +#else + "‚ ‚È‚½‚Ì•‚‚«‹ï‡‚͏­‚µ’á‚­‚È‚Á‚½D", + "‚ ‚È‚½‚Í‚®‚ç‚®‚ç—h‚ê‚Í‚¶‚ß‚½D" +#endif }; STATIC_OVL void @@ -328,6 +340,7 @@ levitation_dialogue() if (((HLevitation & TIMEOUT) % 2L) && i > 0L && i <= SIZE(levi_texts)) { const char *s = levi_texts[SIZE(levi_texts) - i]; +#if 0 /*JP*//* %s ‚ÍŽg‚Á‚Ä‚¢‚È‚¢‚Ì‚Å’Pƒ‰» */ if (index(s, '%')) { boolean danger = (is_pool_or_lava(u.ux, u.uy) && !Is_waterlevel(&u.uz)); @@ -335,6 +348,7 @@ levitation_dialogue() pline(s, danger ? "over" : "in", danger ? surface(u.ux, u.uy) : "air"); } else +#endif pline1(s); } } @@ -419,8 +433,13 @@ burn_away_slime() move between things which are closely packed--like the substance of solid rock! */ static NEARDATA const char *const phaze_texts[] = { +#if 0 /*JP*/ "You start to feel bloated.", "You are feeling rather flabby.", +#else + "‚ ‚È‚½‚Í–c‚ç‚Ý‚Í‚¶‚ß‚½‹C‚ª‚·‚éD", + "‚ ‚È‚½‚͏­‚µ‚½‚é‚ñ‚¾‹C‚ª‚·‚éD", +#endif }; STATIC_OVL void @@ -674,10 +693,18 @@ nh_timeout() case PASSES_WALLS: if (!Passes_walls) { if (stuck_in_wall()) +/*JP You_feel("hemmed in again."); +*/ + You_feel("‚Ü‚½•Â‚¶ž‚ß‚ç‚ꂽ‚悤‚¾D"); else +#if 0 /*JP*/ pline("You're back to your %s self again.", !Upolyd ? "normal" : "unusual"); +#else + pline("‚ ‚È‚½‚͍Ăђʏí%s‚̏ó‘Ô‚É‚È‚Á‚½D", + !Upolyd ? "" : "‚Å‚Í‚È‚¢"); +#endif } break; case STRANGLED: diff --git a/src/topten.c b/src/topten.c index c4ec287..dded344 100644 --- a/src/topten.c +++ b/src/topten.c @@ -980,7 +980,11 @@ boolean so; #endif /*JP*/ if (t1->deathdnum == astral_level.dnum) { +#if 0 /*JP*/ const char *arg, *fmt = " on the Plane of %s"; +#else + const char *arg; +#endif switch (t1->deathlev) { case -5: @@ -1042,9 +1046,11 @@ boolean so; Sprintf(eos(where), "[Å‘å’n‰º%dŠK]", t1->maxlvl); } +#if 0 /*JP*//* “ú–{Œê‚ł͍׍H•s—v */ /* kludge for "quit while already on Charon's boat" */ if (!strncmp(t1->death, "quit ", 5)) Strcat(linebuf, t1->death + 4); +#endif } #if 0 /*JP*/ Strcat(linebuf, "."); @@ -1068,7 +1074,7 @@ boolean so; /* beginning of hp column after padding (not actually padded yet) */ hppos = COLNO - (sizeof(" Hp [max]") - 1); /* sizeof(str) includes \0 */ #if 1 /*JP*/ - while(lngr >= hppos ){ + while (lngr >= hppos) { /*JP hppos‚æ‚è‘O‚Ì“K“–‚Ȉʒu‚Å•ªŠ„‚·‚éD*/ car[0] = '\0'; cdr[0] = '\0'; diff --git a/src/trap.c b/src/trap.c index 438e50f..a9cae8c 100644 --- a/src/trap.c +++ b/src/trap.c @@ -272,9 +272,9 @@ int ef_flags; #else pline("‚È‚º‚©C%s%s‚Í%s‚̉e‹¿‚ðŽó‚¯‚È‚©‚Á‚½D", uvictim ? "‚ ‚È‚½‚Ì" - : !vismon ? "the" /* visobj */ + : !vismon ? "" /* visobj */ : s_suffix(mon_nam(victim)), - vtense(ostr, "are"), bythe[type]); + ostr, bythe[type]); #endif /* We assume here that if the object is protected because it * is blessed, it still shows some minor signs of wear, and @@ -4325,10 +4325,17 @@ xchar x, y; when former contents of a burned container get here via flooreffects() */ if (obj == thrownobj || obj == kickedobj) +#if 0 /*JP*/ pline("%s %s up!", is_plural(obj) ? "They" : "It", otense(obj, "burn")); +#else + pline("‚»‚ê‚Í”R‚¦‚‚«‚½I"); +#endif else +/*JP You_see("%s hit lava and burn up!", doname(obj)); +*/ + You_see("%s‚Í—nŠâ‚É“–‚½‚Á‚Ä”R‚¦‚‚«‚½I", doname(obj)); } if (carried(obj)) { /* shouldn't happen */ remove_worn_item(obj, TRUE); @@ -4437,7 +4444,10 @@ boolean force; return ER_DAMAGED; /* contents were damaged */ } else if (obj->otyp == OILSKIN_SACK) { if (carried(obj)) +/*JP pline("Some water slides right off your %s.", ostr); +*/ + pline("%s‚͐…‚ð’e‚¢‚½D", ostr); makeknown(OILSKIN_SACK); /* not actually damaged, but because we /didn't/ get the "water gets into!" message, the player now has more information and diff --git a/src/uhitm.c b/src/uhitm.c index 5435828..0d7c8c2 100644 --- a/src/uhitm.c +++ b/src/uhitm.c @@ -2379,9 +2379,15 @@ register struct attack *mattk; vampire form now instead of dealing with that when it dies */ if (is_vampshifter(mdef) && newcham(mdef, &mons[mdef->cham], FALSE, FALSE)) { +/*JP You("engulf it, then expel it."); +*/ + You("ˆù‚ݍž‚ñ‚ŁC“f‚«o‚µ‚½D"); if (canspotmon(mdef)) +/*JP pline("It turns into %s.", a_monnam(mdef)); +*/ + pline("‚»‚ê‚Í%s‚É‚È‚Á‚½D", a_monnam(mdef)); else map_invisible(mdef->mx, mdef->my); return 1; diff --git a/src/vault.c b/src/vault.c index 509b8da..cbffd82 100644 --- a/src/vault.c +++ b/src/vault.c @@ -404,7 +404,10 @@ invault() been given in order to vary it upon repeat visits, but discarding the monster and its egd data renders that hard] */ if (Deaf) +/*JP pline("%s huffs and turns to leave.", noit_Monnam(guard)); +*/ + pline("%s‚Í•s‹@Œ™‚É‚È‚Á‚āC‹Ž‚Á‚Ä‚¢‚Á‚½D", noit_Monnam(guard)); else /*JP verbalize("I'll be back when you're ready to speak to me!"); @@ -452,7 +455,10 @@ invault() if (!mvitals[PM_CROESUS].died) { if (Deaf) { if (!Blind) +/*JP pline("%s waves goodbye.", noit_Monnam(guard)); +*/ + pline("%s‚Í‚³‚æ‚È‚ç‚ÆŽè‚ðU‚Á‚½D", noit_Monnam(guard)); } else { verbalize( /*JP @@ -465,8 +471,13 @@ invault() setmangry(guard, FALSE); if (Deaf) { if (!Blind) +#if 0 /*JP:T*/ pline("%s mouths something and looks very angry!", noit_Monnam(guard)); +#else + pline("%s‚͉½‚©‚ðŒ¾‚Á‚Ä‚¢‚éD‚Æ‚Ä‚à“{‚Á‚Ä‚¢‚é‚悤‚¾I", + noit_Monnam(guard)); +#endif } else { #if 0 /*JP:T*/ verbalize( @@ -485,8 +496,12 @@ invault() return; } if (Deaf) +#if 0 /*JP:T*/ pline("%s doesn't %srecognize you.", noit_Monnam(guard), (Blind) ? "" : "appear to "); +#else + pline("%s‚Í‚ ‚È‚½‚Ì‚±‚Æ‚ª•ª‚©‚ç‚È‚¢‚悤‚¾D", noit_Monnam(guard)); +#endif else /*JP verbalize("I don't know you."); @@ -495,8 +510,13 @@ invault() umoney = money_cnt(invent); if (!umoney && !hidden_gold()) { if (Deaf) +#if 0 /*JP:T*/ pline("%s stomps%s.", noit_Monnam(guard), (Blind) ? "" : " and beckons"); +#else + pline("%s‚Í‘«‚𓥂ݖ‚炵%s‚½D", noit_Monnam(guard), + (Blind) ? "" : "‚Ď菵‚«‚µ"); +#endif else /*JP verbalize("Please follow me."); @@ -506,8 +526,13 @@ invault() if (!umoney) { if (Deaf) { if (!Blind) +#if 0 /*JP:T*/ pline("%s glares at you%s.", noit_Monnam(guard), invent ? "r stuff" : ""); +#else + pline("%s‚Í‚ ‚È‚½%s‚ð‚É‚ç‚݂‚¯‚½D", noit_Monnam(guard), + invent ? "‚ÌŽ‚¿•¨" : ""); +#endif } else { /*JP verbalize("You have hidden gold."); @@ -517,9 +542,15 @@ invault() } if (Deaf) { if (!Blind) +#if 0 /*JP:T*/ pline( "%s holds out %s palm and beckons with %s other hand.", noit_Monnam(guard), mhis(guard), mhis(guard)); +#else + pline( + "%s‚Í•ÐŽè‚ð·‚µo‚µC‚à‚¤•ÐŽè‚Ŏ菵‚«‚µ‚½D", + noit_Monnam(guard)); +#endif } else { verbalize( /*JP @@ -820,8 +851,13 @@ register struct monst *grd; egrd->warncnt = 6; if (Deaf) { if (!Blind) +#if 0 /*JP*/ pline("%s holds out %s palm demandingly!", noit_Monnam(grd), mhis(grd)); +#else + pline("%s‚ÍŒµ‚µ‚¢’²Žq‚ÅŽè‚̂Ђç‚ð·‚µo‚µ‚½I", + noit_Monnam(grd)); +#endif } else { /*JP verbalize("Drop all your gold, scoundrel!"); @@ -832,8 +868,13 @@ register struct monst *grd; } else { if (Deaf) { if (!Blind) +#if 0 /*JP:T*/ pline("%s rubs %s hands with enraged delight!", noit_Monnam(grd), mhis(grd)); +#else + pline("%s‚Í“{‚è‚È‚ª‚çŽè‚ð‚·‚è‚ ‚킹‚½I", + noit_Monnam(grd)); +#endif } else { /*JP verbalize("So be it, rogue!"); diff --git a/src/weapon.c b/src/weapon.c index 9ef7c3f..7de49ac 100644 --- a/src/weapon.c +++ b/src/weapon.c @@ -47,14 +47,25 @@ STATIC_VAR NEARDATA const short skill_names_indices[P_NUM_SKILLS] = { /* note: entry [0] isn't used */ STATIC_VAR NEARDATA const char *const odd_skill_names[] = { +#if 0 /*JP*/ "no skill", "bare hands", /* use barehands_or_martial[] instead */ "two weapon combat", "riding", "polearms", "saber", "hammer", "whip", "attack spells", "healing spells", "divination spells", "enchantment spells", "clerical spells", "escape spells", "matter spells", +#else + "no skill", "‘fŽè", /* use barehands_or_martial[] instead */ + "“ñ“—¬", "‹Ræ", "’·•€", "ƒT[ƒxƒ‹", "ƒnƒ“ƒ}[", "•Ú", + "UŒ‚", "Ž¡–ü", "—\’m", + "•â•", "‘m—µ", "’Eo", "•¨Ž¿", +#endif }; /* indexed vis `is_martial() */ STATIC_VAR NEARDATA const char *const barehands_or_martial[] = { +#if 0 /*JP*/ "bare handed combat", "martial arts" +#else + "‘fŽè", "‘̏p" +#endif }; STATIC_OVL void diff --git a/src/wield.c b/src/wield.c index 864234d..f607140 100644 --- a/src/wield.c +++ b/src/wield.c @@ -487,8 +487,13 @@ dowieldquiver() } /* offer to split stack if wielding more than 1 */ if (uwep->quan > 1L && inv_cnt(FALSE) < 52 && splittable(uwep)) { +#if 0 /*JP:T*/ Sprintf(qbuf, "You are wielding %ld %s. Ready %ld of them?", uwep->quan, simpleonames(uwep), uwep->quan - 1L); +#else + Sprintf(qbuf, "‚ ‚È‚½‚Í%ld %s‚ð‘•”õ‚µ‚Ä‚¢‚éD‚»‚Ì‚¤‚¿ %ld ‚ð€”õ‚·‚éH", + uwep->quan, simpleonames(uwep), uwep->quan - 1L); +#endif switch (ynq(qbuf)) { case 'q': return 0; @@ -500,19 +505,31 @@ dowieldquiver() default: break; } +/*JP Strcpy(qbuf, "Ready all of them instead?"); +*/ + Strcpy(qbuf, "‘ã‚í‚è‚É‚±‚ê‚ç‘S•”‚ð€”õ‚·‚éH"); } else { boolean use_plural = (is_plural(uwep) || pair_of(uwep)); +#if 0 /*JP*/ Sprintf(qbuf, "You are wielding %s. Ready %s instead?", !use_plural ? "that" : "those", !use_plural ? "it" : "them"); +#else /* •sŽ©‘R‚¾‚¯‚Ç‚Æ‚è‚ ‚¦‚¸‚±‚ê‚ł悵‚Æ‚·‚é */ + Strcpy(qbuf, "‚ ‚È‚½‚Í‚»‚ê‚ð‘•”õ‚µ‚Ä‚¢‚éD‘ã‚í‚è‚É‚»‚ê‚ð€”õ‚·‚éH"); +#endif } /* require confirmation to ready the main weapon */ if (ynq(qbuf) != 'y') { (void) Shk_Your(qbuf, uwep); /* replace qbuf[] contents */ +#if 0 /*JP*/ pline("%s%s %s wielded.", qbuf, simpleonames(uwep), otense(uwep, "remain")); +#else + pline("%s%s‚ð‘•”õ‚µ‚½‚Ü‚Ü‚É‚µ‚½D", qbuf, + simpleonames(uwep)); +#endif return 0; } /* quivering main weapon, so no longer wielding it */ @@ -522,11 +539,19 @@ dowieldquiver() } else if (newquiver == uswapwep) { if (uswapwep->quan > 1L && inv_cnt(FALSE) < 52 && splittable(uswapwep)) { +#if 0 /*JP*/ Sprintf(qbuf, "%s %ld %s. Ready %ld of them?", u.twoweap ? "You are dual wielding" : "Your alternate weapon is", uswapwep->quan, simpleonames(uswapwep), uswapwep->quan - 1L); +#else /*TODO:“ñ“—¬‚Ì‚Æ‚«‚Í‚©‚È‚è•sŽ©‘R */ + Sprintf(qbuf, "%s %ld %s‚¾D‚»‚Ì‚¤‚¿%ld‚ð€”õ‚·‚éH", + u.twoweap ? "‚ ‚È‚½‚ª‚»‚ꂼ‚ê‘•”õ‚µ‚Ä‚¢‚é‚Ì‚Í" + : "‚ ‚È‚½‚Ì—\”õ‚Ì•Ší‚Í", + uswapwep->quan, simpleonames(uswapwep), + uswapwep->quan - 1L); +#endif switch (ynq(qbuf)) { case 'q': return 0; @@ -538,21 +563,35 @@ dowieldquiver() default: break; } +/*JP Strcpy(qbuf, "Ready all of them instead?"); +*/ + Strcpy(qbuf, "‘ã‚í‚è‚É‚±‚ê‚ç‘S•”‚ð€”õ‚·‚éH"); } else { boolean use_plural = (is_plural(uswapwep) || pair_of(uswapwep)); +#if 0 /*JP*/ Sprintf(qbuf, "%s your %s weapon. Ready %s instead?", !use_plural ? "That is" : "Those are", u.twoweap ? "second" : "alternate", !use_plural ? "it" : "them"); +#else + Sprintf(qbuf, "‚»‚ê‚Í%s•Ší‚¾D‘ã‚í‚è‚É‚»‚ê‚ð€”õ‚·‚éH", + u.twoweap ? "“ñ”Ô–Ú‚Ì" : "—\”õ‚Ì"); +#endif } /* require confirmation to ready the alternate weapon */ if (ynq(qbuf) != 'y') { (void) Shk_Your(qbuf, uswapwep); /* replace qbuf[] contents */ +#if 0 /*JP*/ pline("%s%s %s %s.", qbuf, simpleonames(uswapwep), otense(uswapwep, "remain"), u.twoweap ? "wielded" : "as secondary weapon"); +#else + pline("%s%s‚ð%s‚Ü‚Ü‚É‚µ‚½D", qbuf, + simpleonames(uswapwep), + u.twoweap ? "‘•”õ‚µ‚½" : "“ñ”Ô–Ú‚Ì•Ší‚Ì"); +#endif return 0; } /* quivering alternate weapon, so no more uswapwep */ @@ -579,10 +618,16 @@ dowieldquiver() something we're wielding that's vulnerable to its damage) */ res = 0; if (was_uwep) { +/*JP You("are now empty %s.", body_part(HANDED)); +*/ + You("•Ší‚ðŽ‚½‚È‚­‚È‚Á‚½D"); res = 1; } else if (was_twoweap && !u.twoweap) { +/*JP You("are no longer wielding two weapons at once."); +*/ + You("“ñ“—¬‚ð‚â‚ß‚½D"); res = 1; } return res; diff --git a/src/wizard.c b/src/wizard.c index 8419361..9d02f5a 100644 --- a/src/wizard.c +++ b/src/wizard.c @@ -826,7 +826,7 @@ register struct monst *mtmp; random_insult[rn2(SIZE(random_insult))]); #else verbalize(rn2(2) ? "¡‚Æ‚È‚Á‚Ä‚à‚È‚¨“ð‚Ì–½‚Í‚ ‚¦‚ĐŠ‚¦‚é‚Ì‚¾C%sI" - : "‘§‚ð–¡‚í‚Á‚Ä‚¨‚¯C%sC“ð‚̍Ŋú‚ÌŽž‚¾I", + : "–³‘Ê‚È‚±‚Æ‚ð‚·‚é‚ȁC%sC“ð‚̍Ŋú‚ÌŽž‚¾I", random_insult[rn2(SIZE(random_insult))]); #endif else if (mtmp->mhp < 5 && !rn2(2)) /* Parthian shot */ diff --git a/src/zap.c b/src/zap.c index 02772f9..0ce86eb 100644 --- a/src/zap.c +++ b/src/zap.c @@ -926,14 +926,27 @@ boolean by_hero; char buf[BUFSZ]; unsigned pfx = CXN_PFX_THE; +#if 1 /*JP*//* Ž€‘Ì–¼‚͐æ‚É */ + Strcat(buf, corpse_xname(corpse, (const char *) 0, pfx)); +#endif +#if 0 /*JP*/ Strcpy(buf, one_of ? "one of " : ""); +#else /* Œê‡‚Í•Ï‚í‚Á‚Ä‚¢‚é */ + if (one_of) { + Strcat(buf, "‚̈ê‚Â"); + } +#endif +#if 0 /*JP*//* ‚±‚±‚Łu‚ ‚È‚½‚́v‚Í•sŽ©‘R */ if (carried(corpse) && !corpse->unpaid) { Strcat(buf, "your "); pfx = CXN_NO_PFX; } +#endif if (one_of) corpse->quan++; /* force plural */ +#if 0 /*JP*//* Šù‚ɐݒèÏ‚Ý */ Strcat(buf, corpse_xname(corpse, (const char *) 0, pfx)); +#endif if (one_of) /* could be simplified to ''corpse->quan = 1L;'' */ corpse->quan--; /*JP @@ -5552,7 +5565,10 @@ register int osym, dmgtyp; boolean one = (cnt == 1L); if (dmgtyp == AD_FIRE && osym == FOOD_CLASS) +/*JP how = "exploding glob of slime"; +*/ + how = "ƒXƒ‰ƒCƒ€‚̂˂΂˂΂̔š”­‚Å"; if (physical_damage) dmg = Maybe_Half_Phys(dmg); losehp(dmg, one ? how : (const char *) makeplural(how), -- 2.11.0