JNetHackのソースをいじくったものを置いておくための場所
Révision | 9f85cf9d094ee479f1bbda33d20c0b5a4ea2bcf3 (tree) |
---|---|
l'heure | 2018-04-29 04:42:45 |
Auteur | SHIRAKATA Kentaro <argrath@ub32...> |
Commiter | SHIRAKATA Kentaro |
add translation
@@ -2698,7 +2698,7 @@ int how; | ||
2698 | 2698 | /*JP |
2699 | 2699 | getlin("What monster do you want to genocide? [type the name]", |
2700 | 2700 | */ |
2701 | - getlin("どの怪物を虐殺しますか?[名前を入れてね]", | |
2701 | + getlin("どの怪物を虐殺しますか?[名前を日本語で入れてね]", | |
2702 | 2702 | buf); |
2703 | 2703 | (void) mungspaces(buf); |
2704 | 2704 | /* choosing "none" preserves genocideless conduct */ |
@@ -364,15 +364,28 @@ struct obj *otmp; | ||
364 | 364 | } else if ((obj = which_armor(mtmp, W_SADDLE)) != 0) { |
365 | 365 | char buf[BUFSZ]; |
366 | 366 | |
367 | +#if 0 /*JP*/ | |
367 | 368 | Sprintf(buf, "%s %s", s_suffix(Monnam(mtmp)), |
368 | 369 | distant_name(obj, xname)); |
370 | +#else | |
371 | + Sprintf(buf, "%sの%s", s_suffix(Monnam(mtmp)), | |
372 | + distant_name(obj, xname)); | |
373 | +#endif | |
369 | 374 | if (cansee(mtmp->mx, mtmp->my)) { |
370 | 375 | if (!canspotmon(mtmp)) |
371 | 376 | Strcpy(buf, An(distant_name(obj, xname))); |
377 | +#if 0 /*JP*/ | |
372 | 378 | pline("%s falls to the %s.", buf, |
373 | 379 | surface(mtmp->mx, mtmp->my)); |
380 | +#else | |
381 | + pline("%sは%sに落ちた.", buf, | |
382 | + surface(mtmp->mx, mtmp->my)); | |
383 | +#endif | |
374 | 384 | } else if (canspotmon(mtmp)) { |
385 | +/*JP | |
375 | 386 | pline("%s falls off.", buf); |
387 | +*/ | |
388 | + pline("%sが落ちた.", buf); | |
376 | 389 | } |
377 | 390 | obj_extract_self(obj); |
378 | 391 | mdrop_obj(mtmp, obj, FALSE); |
@@ -2016,19 +2029,34 @@ struct obj *obj, *otmp; | ||
2016 | 2029 | maybelearnit = cansee(obj->ox, obj->oy) || !Deaf; |
2017 | 2030 | if (obj->otyp == BOULDER) { |
2018 | 2031 | if (cansee(obj->ox, obj->oy)) |
2032 | +/*JP | |
2019 | 2033 | pline_The("boulder falls apart."); |
2034 | +*/ | |
2035 | + pline_The("岩はばらばらになった."); | |
2020 | 2036 | else |
2037 | +/*JP | |
2021 | 2038 | You_hear("a crumbling sound."); |
2039 | +*/ | |
2040 | + You_hear("何かが砕ける音を聞いた."); | |
2022 | 2041 | fracture_rock(obj); |
2023 | 2042 | } else if (obj->otyp == STATUE) { |
2024 | 2043 | if (break_statue(obj)) { |
2025 | 2044 | if (cansee(obj->ox, obj->oy)) { |
2026 | 2045 | if (Hallucination) |
2046 | +/*JP | |
2027 | 2047 | pline_The("%s shatters.", rndmonnam(NULL)); |
2048 | +*/ | |
2049 | + pline_The("%sは粉々になった.", rndmonnam(NULL)); | |
2028 | 2050 | else |
2051 | +/*JP | |
2029 | 2052 | pline_The("statue shatters."); |
2053 | +*/ | |
2054 | + pline_The("石像は粉々になった."); | |
2030 | 2055 | } else |
2056 | +/*JP | |
2031 | 2057 | You_hear("a crumbling sound."); |
2058 | +*/ | |
2059 | + You_hear("何かが砕ける音を聞いた."); | |
2032 | 2060 | } |
2033 | 2061 | } else { |
2034 | 2062 | if (context.mon_moving |
@@ -2066,13 +2094,23 @@ struct obj *obj, *otmp; | ||
2066 | 2094 | res = !!revive(obj, TRUE); |
2067 | 2095 | if (res && Role_if(PM_HEALER)) { |
2068 | 2096 | if (Hallucination && !Deaf) { |
2097 | +/*JP | |
2069 | 2098 | You_hear("the sound of a defibrillator."); |
2099 | +*/ | |
2100 | + You_hear("除細動器の音を聞いた."); | |
2070 | 2101 | learn_it = TRUE; |
2071 | 2102 | } else if (!Blind) { |
2103 | +#if 0 /*JP*/ | |
2072 | 2104 | You("observe %s %s change dramatically.", |
2073 | 2105 | s_suffix(an(mons[corpsenm].mname)), |
2074 | 2106 | nonliving(&mons[corpsenm]) ? "motility" |
2075 | 2107 | : "health"); |
2108 | +#else | |
2109 | + You("%sの%sが劇的に変化するのを見た.", | |
2110 | + s_suffix(an(mons[corpsenm].mname)), | |
2111 | + nonliving(&mons[corpsenm]) ? "運動性" | |
2112 | + : "健康"); | |
2113 | +#endif | |
2076 | 2114 | learn_it = TRUE; |
2077 | 2115 | } |
2078 | 2116 | if (learn_it) |
@@ -2735,16 +2773,26 @@ int amt; /* pseudo-damage used to determine blindness duration */ | ||
2735 | 2773 | dmg = 10 + rnd(dmg - 10); |
2736 | 2774 | if (dmg > 20) |
2737 | 2775 | dmg = 20; |
2776 | +/*JP | |
2738 | 2777 | pline("Ow, that light hurts%c", (dmg > 2 || u.mh <= 5) ? '!' : '.'); |
2778 | +*/ | |
2779 | + pline("おわ,光が痛い%s", (dmg > 2 || u.mh <= 5) ? "!" : "."); | |
2739 | 2780 | /* [composing killer/reason is superfluous here; if fatal, cause |
2740 | 2781 | of death will always be "killed while stuck in creature form"] */ |
2741 | 2782 | if (obj->oclass == SCROLL_CLASS || obj->oclass == SPBOOK_CLASS) |
2742 | 2783 | ordinary = FALSE; /* say blasted rather than zapped */ |
2743 | 2784 | how = (obj->oclass != SPBOOK_CLASS) |
2744 | 2785 | ? (const char *) ansimpleoname(obj) |
2786 | +/*JP | |
2745 | 2787 | : "spell of light"; |
2788 | +*/ | |
2789 | + : "光の魔法"; | |
2790 | +#if 0 /*JP*/ | |
2746 | 2791 | Sprintf(buf, "%s %sself with %s", ordinary ? "zapped" : "blasted", |
2747 | 2792 | uhim(), how); |
2793 | +#else | |
2794 | + Sprintf(buf, "自分で%sを浴びて", how); | |
2795 | +#endif | |
2748 | 2796 | /* might rehumanize(); could be fatal, but only for Unchanging */ |
2749 | 2797 | #if 0 /*JP*/ |
2750 | 2798 | losehp(Maybe_Half_Phys(dmg), buf, NO_KILLER_PREFIX); |
@@ -3499,10 +3547,18 @@ struct obj **pobj; /* object tossed/used, set to NULL | ||
3499 | 3547 | if (is_pool(bhitpos.x, bhitpos.y) && !mtmp) { |
3500 | 3548 | in_skip = TRUE; |
3501 | 3549 | if (!Blind) |
3550 | +#if 0 /*JP*/ | |
3502 | 3551 | pline("%s %s%s.", Yname2(obj), otense(obj, "skip"), |
3503 | 3552 | skipcount ? " again" : ""); |
3553 | +#else | |
3554 | + pline("%sは%s跳ねた.", Yname2(obj), | |
3555 | + skipcount ? "再び" : ""); | |
3556 | +#endif | |
3504 | 3557 | else |
3558 | +/*JP | |
3505 | 3559 | You_hear("%s skip.", yname(obj)); |
3560 | +*/ | |
3561 | + You_hear("%sが跳ねる音を聞いた.", yname(obj)); | |
3506 | 3562 | skipcount++; |
3507 | 3563 | } else if (skiprange_start > skiprange_end + 1) { |
3508 | 3564 | --skiprange_start; |
@@ -3515,8 +3571,13 @@ struct obj **pobj; /* object tossed/used, set to NULL | ||
3515 | 3571 | skiprange(range, &skiprange_start, &skiprange_end); |
3516 | 3572 | } else if (mtmp && M_IN_WATER(mtmp->data)) { |
3517 | 3573 | if ((!Blind && canseemon(mtmp)) || sensemon(mtmp)) |
3574 | +#if 0 /*JP*/ | |
3518 | 3575 | pline("%s %s over %s.", Yname2(obj), otense(obj, "pass"), |
3519 | 3576 | mon_nam(mtmp)); |
3577 | +#else | |
3578 | + pline("%sは%sを飛び越えた.", Yname2(obj), | |
3579 | + mon_nam(mtmp)); | |
3580 | +#endif | |
3520 | 3581 | } |
3521 | 3582 | } |
3522 | 3583 |
@@ -3750,7 +3811,10 @@ int dx, dy; | ||
3750 | 3811 | delay_output(); |
3751 | 3812 | if (IS_SINK(levl[bhitpos.x][bhitpos.y].typ)) { |
3752 | 3813 | if (!Deaf) |
3814 | +/*JP | |
3753 | 3815 | pline("Klonk!"); |
3816 | +*/ | |
3817 | + pline("カラン!"); | |
3754 | 3818 | break; /* boomerang falls on sink */ |
3755 | 3819 | } |
3756 | 3820 | /* ct==0, initial position, we want next delta to be same; |
@@ -4471,7 +4535,10 @@ register int dx, dy; | ||
4471 | 4535 | */ |
4472 | 4536 | pline("%sはあなたのそばをかすめた!", fltxt); |
4473 | 4537 | } else if (abstype == ZT_LIGHTNING) { |
4538 | +/*JP | |
4474 | 4539 | Your("%s tingles.", body_part(ARM)); |
4540 | +*/ | |
4541 | + Your("%sはヒリヒリした.", body_part(ARM)); | |
4475 | 4542 | } |
4476 | 4543 | if (abstype == ZT_LIGHTNING) |
4477 | 4544 | (void) flashburn((long) d(nd, 50)); |
@@ -4667,7 +4734,10 @@ long timeout UNUSED; | ||
4667 | 4734 | y = (xchar) (where & 0xFFFF); |
4668 | 4735 | x = (xchar) ((where >> 16) & 0xFFFF); |
4669 | 4736 | /* melt_ice does newsym when appropriate */ |
4737 | +/*JP | |
4670 | 4738 | melt_ice(x, y, "Some ice melts away."); |
4739 | +*/ | |
4740 | + melt_ice(x, y, "氷が少し溶けた."); | |
4671 | 4741 | } |
4672 | 4742 | |
4673 | 4743 | /* Burn floor scrolls, evaporate pools, etc... in a single square. |
@@ -4851,13 +4921,19 @@ short exploding_wand_typ; | ||
4851 | 4921 | if (lev->typ == IRONBARS) { |
4852 | 4922 | if ((lev->wall_info & W_NONDIGGABLE) != 0) { |
4853 | 4923 | if (see_it) |
4924 | +/*JP | |
4854 | 4925 | Norep("The %s corrode somewhat but remain intact.", |
4926 | +*/ | |
4927 | + Norep("%sは少し痛んだがまだしっかりしている.", | |
4855 | 4928 | defsyms[S_bars].explanation); |
4856 | 4929 | /* but nothing actually happens... */ |
4857 | 4930 | } else { |
4858 | 4931 | rangemod -= 3; |
4859 | 4932 | if (see_it) |
4933 | +/*JP | |
4860 | 4934 | Norep("The %s melt.", defsyms[S_bars].explanation); |
4935 | +*/ | |
4936 | + Norep("%sが溶けた.", defsyms[S_bars].explanation); | |
4861 | 4937 | if (*in_rooms(x, y, SHOPBASE)) { |
4862 | 4938 | /* in case we ever have a shop bounded by bars */ |
4863 | 4939 | lev->typ = ROOM; |
@@ -4909,8 +4985,12 @@ short exploding_wand_typ; | ||
4909 | 4985 | (except on rogue level) */ |
4910 | 4986 | newsym(x, y); |
4911 | 4987 | if (see_it) |
4988 | +#if 0 /*JP*/ | |
4912 | 4989 | pline("%s %s reveals a secret door.", |
4913 | 4990 | yourzap ? "Your" : "The", zapverb); |
4991 | +#else | |
4992 | + pline("%sで隠し扉が明らかになった.", zapverb); | |
4993 | +#endif | |
4914 | 4994 | else if (Is_rogue_level(&u.uz)) |
4915 | 4995 | draft_message(FALSE); /* "You feel a draft." (open doorway) */ |
4916 | 4996 | } |
@@ -4975,8 +5055,14 @@ short exploding_wand_typ; | ||
4975 | 5055 | /* Magical explosion from misc exploding wand */ |
4976 | 5056 | if (exploding_wand_typ == WAN_STRIKING) { |
4977 | 5057 | new_doormask = D_BROKEN; |
5058 | +/*JP | |
4978 | 5059 | see_txt = "The door crashes open!"; |
5060 | +*/ | |
5061 | + see_txt = "扉は壊れて開いた!"; | |
5062 | +/*JP | |
4979 | 5063 | sense_txt = "feel a burst of cool air."; |
5064 | +*/ | |
5065 | + sense_txt = "冷気の充満を感じた."; | |
4980 | 5066 | break; |
4981 | 5067 | } |
4982 | 5068 | } |
@@ -5614,7 +5700,7 @@ retry: | ||
5614 | 5700 | /*JP |
5615 | 5701 | Strcpy(promptbuf, "For what do you wish"); |
5616 | 5702 | */ |
5617 | - Strcpy(promptbuf, "何をお望み"); | |
5703 | + Strcpy(promptbuf, "(日本語で)何をお望み"); | |
5618 | 5704 | if (iflags.cmdassist && tries > 0) |
5619 | 5705 | /*JP |
5620 | 5706 | Strcat(promptbuf, " (enter 'help' for assistance)"); |