From 04fddd5a2ba3497b38fdedca6d2d0b83d3a4225f Mon Sep 17 00:00:00 2001 From: SHIRAKATA Kentaro Date: Fri, 5 Oct 2018 15:54:12 +0900 Subject: [PATCH] add translation --- src/cmd.c | 3 -- src/do_wear.c | 2 +- src/options.c | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/priest.c | 2 ++ 4 files changed, 108 insertions(+), 4 deletions(-) diff --git a/src/cmd.c b/src/cmd.c index da0b718..e62a662 100644 --- a/src/cmd.c +++ b/src/cmd.c @@ -1878,10 +1878,7 @@ int final; tmpbuf, urace.adj, role_titl, rank_titl); #endif } -/*JP you_are(buf, ""); -*/ - you_are_ing(buf, ""); /* report alignment (bypass you_are() in order to omit ending period); adverb is used to distinguish between temporary change (helm of opp. diff --git a/src/do_wear.c b/src/do_wear.c index 67cbefe..482e5c4 100644 --- a/src/do_wear.c +++ b/src/do_wear.c @@ -189,7 +189,7 @@ boolean on; You_feel("that monsters%s have difficulty pinpointing your location.", on ? "" : " no longer"); #else - You_feel("‰ö•¨‚Í‚ ‚È‚½‚̈ʒu‚ª‚Í‚Á‚«‚è‚Æ•ª‚©%s‚È‚Á‚½‚悤‚¾D", + pline("‰ö•¨‚Í‚ ‚È‚½‚̈ʒu‚ª‚Í‚Á‚«‚è‚Æ•ª‚©%s‚È‚Á‚½‚悤‚¾D", on ? "‚ç‚È‚­" : "‚é‚悤‚É"); #endif } diff --git a/src/options.c b/src/options.c index a3e6123..56d46d3 100644 --- a/src/options.c +++ b/src/options.c @@ -1300,7 +1300,10 @@ boolean val_optional; if (!colon || !*++colon) { if (!val_optional) +/*JP config_error_add("Missing parameter for '%s'", opts); +*/ + config_error_add("'%s'‚̈ø”‚ª‚ ‚è‚Ü‚¹‚ñ", opts); return (char *) 0; } return colon; @@ -1541,8 +1544,13 @@ int iscompound; /* 0 == boolean option, 1 == compound */ * For now just return. */ #else /* !MAC */ +#if 0 /*JP*/ config_error_add("%s option specified multiple times: %s", iscompound ? "compound" : "boolean", opts); +#else + config_error_add("%sƒIƒvƒVƒ‡ƒ“‚ª•¡”‰ñŽw’肳‚ê‚Ä‚¢‚Ü‚·F%s", + iscompound ? "•¡‡" : "^‹U’l", opts); +#endif #endif /* ?MAC */ return; } @@ -1565,23 +1573,50 @@ STATIC_VAR const struct paranoia_opts { both require at least two letters during config processing and use case-senstivity for 'O's interactive menu */ { PARANOID_CONFIRM, "Confirm", 1, "Paranoia", 2, +/*JP "for \"yes\" confirmations, require \"no\" to reject" }, +*/ + "\"yes\"‚ðŠm”F‚·‚é‚Æ‚«‚ɁC‹‘”Û‚·‚é‚Æ‚«‚É‚Í\"no\"‚ª•K—v" }, { PARANOID_QUIT, "quit", 1, "explore", 1, +/*JP "yes vs y to quit or to enter explore mode" }, +*/ + "I—¹‚Ü‚½‚Í’TŒŸƒ‚[ƒh‚É“ü‚é‚Æ‚«‚Éy‚Å‚Í‚È‚­yes" }, { PARANOID_DIE, "die", 1, "death", 2, +/*JP "yes vs y to die (explore mode or debug mode)" }, +*/ + "(’TŒŸƒ‚[ƒh‚©ƒfƒoƒbƒOƒ‚[ƒh‚Å)Ž€‚Ê‚Æ‚«‚Éy‚Å‚Í‚È‚­yes" }, { PARANOID_BONES, "bones", 1, 0, 0, +/*JP "yes vs y to save bones data when dying in debug mode" }, +*/ + "ƒfƒoƒbƒOƒ‚[ƒh‚ÅŽ€‚ñ‚ōœƒf[ƒ^‚ð•Û‘¶‚·‚é‚Æ‚«‚Éy‚Å‚Í‚È‚­yes" }, { PARANOID_HIT, "attack", 1, "hit", 1, +/*JP "yes vs y to attack a peaceful monster" }, +*/ + "—FD“I‰ö•¨‚ðUŒ‚‚·‚é‚Æ‚«‚Éy‚Å‚Í‚È‚­yes" }, { PARANOID_BREAKWAND, "wand-break", 2, "break-wand", 2, +/*JP "yes vs y to break a wand via (a)pply" }, +*/ + "(a)pply‚ŏñ‚ðÜ‚é‚Æ‚«‚Éy‚Å‚Í‚È‚­yes" }, { PARANOID_WERECHANGE, "Were-change", 2, (const char *) 0, 0, +/*JP "yes vs y to change form when lycanthropy is controllable" }, +*/ + "b‰»•a‚ª§Œä‰Â”\‚ȏꍇ‚ɕω»‚·‚é‚Æ‚«‚Éy‚Å‚Í‚È‚­yes" }, { PARANOID_PRAY, "pray", 1, 0, 0, +/*JP "y to pray (supersedes old \"prayconfirm\" option)" }, +*/ + "‹F‚é‚Æ‚«‚Éy‚ª•K—v(ŒÃ‚¢\"prayconfirm\"ƒIƒvƒVƒ‡ƒ“‚ðã‘‚«‚·‚é)" }, { PARANOID_REMOVE, "Remove", 1, "Takeoff", 1, +/*JP "always pick from inventory for Remove and Takeoff" }, +*/ + "Remove‚ÆTakeoff‚ŏí‚ÉŽ‚¿•¨ˆê——‚©‚ç‘I‚Ô" }, /* for config file parsing; interactive menu skips these */ { 0, "none", 4, 0, 0, 0 }, /* require full word match */ { ~0, "all", 3, 0, 0, 0 }, /* ditto */ @@ -1770,12 +1805,24 @@ static const struct { xchar msgtyp; const char *descr; } msgtype_names[] = { +/*JP { "show", MSGTYP_NORMAL, "Show message normally" }, +*/ + { "show", MSGTYP_NORMAL, "’ʏí’ʂ胁ƒbƒZ[ƒW‚ð•\Ž¦‚·‚é" }, +/*JP { "hide", MSGTYP_NOSHOW, "Hide message" }, +*/ + { "hide", MSGTYP_NOSHOW, "ƒƒbƒZ[ƒW‚ð•\Ž¦‚µ‚È‚¢" }, { "noshow", MSGTYP_NOSHOW, NULL }, +/*JP { "stop", MSGTYP_STOP, "Prompt for more after the message" }, +*/ + { "stop", MSGTYP_STOP, "moreƒvƒƒ“ƒvƒg‚Å‘Ò‚Â" }, { "more", MSGTYP_STOP, NULL }, +/*JP { "norep", MSGTYP_NOREP, "Do not repeat the message" } +*/ + { "norep", MSGTYP_NOREP, "‚±‚̃ƒbƒZ[ƒW‚ÍŒJ‚è•Ô‚³‚È‚¢" } }; STATIC_OVL const char * @@ -1807,7 +1854,10 @@ query_msgtype() add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, msgtype_names[i].descr, MENU_UNSELECTED); } +/*JP end_menu(tmpwin, "How to show the message"); +*/ + end_menu(tmpwin, "ƒƒbƒZ[ƒW‚Ì•\Ž¦•û–@"); pick_cnt = select_menu(tmpwin, PICK_ONE, &picks); destroy_nhwindow(tmpwin); if (pick_cnt > 0) { @@ -4332,7 +4382,10 @@ boolean dolist; static char fmtstr_doset[] = "%s%-15s [%s] "; static char fmtstr_doset_tab[] = "%s\t[%s]"; +/*JP static char n_currently_set[] = "(%d currently set)"; +*/ +static char n_currently_set[] = "(%dŒÂÝ’è’†)"; /* doset('O' command) menu entries for compound options */ STATIC_OVL void @@ -5204,18 +5257,27 @@ boolean setinitial, setfromfile; msgtypes_again: nmt = msgtype_count(); +/*JP opt_idx = handle_add_list_remove("message type", nmt); +*/ + opt_idx = handle_add_list_remove("ƒƒbƒZ[ƒWŒ^", nmt); if (opt_idx == 3) { /* done */ return TRUE; } else if (opt_idx == 0) { /* add new */ +/*JP getlin("What new message pattern?", mtbuf); +*/ + getlin("V‚µ‚¢ƒƒbƒZ[ƒWƒpƒ^[ƒ“F", mtbuf); if (*mtbuf == '\033') return TRUE; if (*mtbuf && test_regex_pattern(mtbuf, (const char *)0) && (mttyp = query_msgtype()) != -1 && !msgtype_add(mttyp, mtbuf)) { +/*JP pline("Error adding the message type."); +*/ + pline("ƒƒbƒZ[ƒWŒ^’ljÁƒGƒ‰[D"); wait_synch(); } goto msgtypes_again; @@ -5244,8 +5306,13 @@ boolean setinitial, setfromfile; MENU_UNSELECTED); tmp = tmp->next; } +#if 0 /*JP*/ Sprintf(mtbuf, "%s message types", (opt_idx == 1) ? "List of" : "Remove which"); +#else + Strcpy(mtbuf, (opt_idx == 1) ? + "ƒƒbƒZ[ƒWŒ^ˆê——" : "íœ‚·‚郁ƒbƒZ[ƒWŒ^"); +#endif end_menu(tmpwin, mtbuf); pick_cnt = select_menu(tmpwin, (opt_idx == 1) ? PICK_NONE : PICK_ANY, @@ -5266,11 +5333,17 @@ boolean setinitial, setfromfile; menucolors_again: nmc = count_menucolors(); +/*JP opt_idx = handle_add_list_remove("menucolor", nmc); +*/ + opt_idx = handle_add_list_remove("ƒƒjƒ…[F", nmc); if (opt_idx == 3) { /* done */ return TRUE; } else if (opt_idx == 0) { /* add new */ +/*JP getlin("What new menucolor pattern?", mcbuf); +*/ + getlin("V‚µ‚¢ƒƒjƒ…[Fƒpƒ^[ƒ“F", mcbuf); if (*mcbuf == '\033') return TRUE; if (*mcbuf @@ -5278,7 +5351,10 @@ boolean setinitial, setfromfile; && (mcclr = query_color((char *) 0)) != -1 && (mcattr = query_attr((char *) 0)) != -1 && !add_menu_coloring_parsed(mcbuf, mcclr, mcattr)) { +/*JP pline("Error adding the menu color."); +*/ + pline("ƒƒjƒ…[F’ljÁƒGƒ‰[D"); wait_synch(); } goto menucolors_again; @@ -5315,8 +5391,13 @@ boolean setinitial, setfromfile; MENU_UNSELECTED); tmp = tmp->next; } +#if 0 /*JP*/ Sprintf(mcbuf, "%s menu colors", (opt_idx == 1) ? "List of" : "Remove which"); +#else + Strcpy(mcbuf, (opt_idx == 1) ? + "ƒƒjƒ…[Fˆê——" : "íœ‚·‚郁ƒjƒ…[F"); +#endif end_menu(tmpwin, mcbuf); pick_cnt = select_menu(tmpwin, (opt_idx == 1) ? PICK_NONE : PICK_ANY, @@ -5338,7 +5419,10 @@ boolean setinitial, setfromfile; ape_again: totalapes = count_ape_maps(&numapes[AP_LEAVE], &numapes[AP_GRAB]); +/*JP opt_idx = handle_add_list_remove("autopickup exception", totalapes); +*/ + opt_idx = handle_add_list_remove("Ž©“®E‚¢—áŠO", totalapes); if (opt_idx == 3) { /* done */ return TRUE; } else if (opt_idx == 0) { /* add new */ @@ -5448,9 +5532,15 @@ boolean setinitial, setfromfile; sl = sl->next; } if (!setcount) { +#if 0 /*JP*/ pline("There are no appropriate %ssymbol sets available.", (rogueflag) ? "rogue level " : (primaryflag) ? "primary " : ""); +#else + pline("“KØ‚È%sƒVƒ“ƒ{ƒ‹Ý’肪‚ ‚è‚Ü‚¹‚ñD", + (rogueflag) ? "rogueƒŒƒxƒ‹" + : (primaryflag) ? "—Dæ" : ""); +#endif return TRUE; } @@ -5483,8 +5573,13 @@ boolean setinitial, setfromfile; } sl = sl->next; } +#if 0 /*JP*/ Sprintf(buf, "Select %ssymbol set:", rogueflag ? "rogue level " : ""); +#else + Sprintf(buf, "%sƒVƒ“ƒ{ƒ‹Ý’è‚ð‘I‘ð‚µ‚Ä‚­‚¾‚³‚¢F", + rogueflag ? "rogueƒŒƒxƒ‹" : ""); +#endif end_menu(tmpwin, buf); if (select_menu(tmpwin, PICK_ONE, &symset_pick) > 0) { chosen = symset_pick->item.a_int - 2; @@ -5523,11 +5618,17 @@ boolean setinitial, setfromfile; nothing_to_do = TRUE; } else if (!res) { /* The symbols file could not be accessed */ +/*JP pline("Unable to access \"%s\" file.", SYMBOLS); +*/ + pline("\"%s\"ƒtƒ@ƒCƒ‹‚ɃAƒNƒZƒX‚Å‚«‚Ü‚¹‚ñD", SYMBOLS); return TRUE; } else if (!symset_list) { /* The symbols file was empty */ +/*JP pline("There were no symbol sets found in \"%s\".", SYMBOLS); +*/ + pline("\"%s\"‚ɃVƒ“ƒ{ƒ‹Ý’肪‚ ‚è‚Ü‚¹‚ñD", SYMBOLS); return TRUE; } @@ -5657,7 +5758,11 @@ char *buf; : defopt); #endif else if (!strcmp(optname, "align")) +#if 0 /*JP*/ Sprintf(buf, "%s", rolestring(flags.initalign, aligns, adj)); +#else + Sprintf(buf, "%s", rolestring(flags.initalign, aligns, noun)); +#endif #ifdef WIN32 else if (!strcmp(optname, "altkeyhandler")) Sprintf(buf, "%s", diff --git a/src/priest.c b/src/priest.c index d9b4795..88479f6 100644 --- a/src/priest.c +++ b/src/priest.c @@ -1140,8 +1140,10 @@ const char *suffix; Sprintf(buf, "%s", pio); if (suffix && (!showneg || u.ualign.record >= 0)) { +#if 0 /*JP*/ if (u.ualign.record != 3) Strcat(buf, " "); +#endif Strcat(buf, suffix); } return buf; -- 2.11.0