OSDN Git Service

add translation
[jnethack/source.git] / src / cmd.c
index f7efef2..e1db095 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -422,10 +422,15 @@ doextlist(VOID_ARGS)
         add_menu(menuwin, NO_GLYPH, &any, 0, 0, ATR_NONE,
                  "", MENU_UNSELECTED);
 
+#if 0 /*JP*/
         Strcpy(buf, menumode ? "Show" : "Hide");
         Strcat(buf, " commands that don't autocomplete");
         if (!menumode)
             Strcat(buf, " (those not marked with [A])");
+#else
+        Strcpy(buf, "\8e©\93®\95â\8a®\82³\82ê\82È\82¢\83R\83}\83\93\83h\82ð");
+        Strcat(buf, menumode ? "\95\\8e¦\82·\82é" : "\95\\8e¦\82µ\82È\82¢ (\82±\82ê\82ç\82Í[A]\83}\81[\83N\82ª\82Â\82©\82È\82¢)");
+#endif
         any.a_int = 1;
         add_menu(menuwin, NO_GLYPH, &any, 'a', 0, ATR_NONE, buf,
                  MENU_UNSELECTED);
@@ -437,10 +442,19 @@ doextlist(VOID_ARGS)
                actual list of extended commands shown via separator lines;
                having ':' as an explicit selector overrides the default
                menu behavior for it; we retain 's' as a group accelerator */
+#if 0 /*JP*/
             add_menu(menuwin, NO_GLYPH, &any, ':', 's', ATR_NONE,
                      "Search extended commands", MENU_UNSELECTED);
+#else
+            add_menu(menuwin, NO_GLYPH, &any, ':', 's', ATR_NONE,
+                     "\8ag\92£\83R\83}\83\93\83h\82ð\8c\9f\8dõ\82·\82é", MENU_UNSELECTED);
+#endif
         } else {
+#if 0 /*JP*/
             Strcpy(buf, "Show all, clear search");
+#else
+            Strcpy(buf, "\91S\82Ä\95\\8e¦; \8c\9f\8dõ\82ð\83N\83\8a\83A");
+#endif
             if (strlen(buf) + strlen(searchbuf) + strlen(" (\"\")") < QBUFSZ)
                 Sprintf(eos(buf), " (\"%s\")", searchbuf);
             any.a_int = 3;
@@ -454,10 +468,17 @@ doextlist(VOID_ARGS)
         }
         if (wizard) {
             any.a_int = 4;
+#if 0 /*JP*/
             add_menu(menuwin, NO_GLYPH, &any, 'z', 0, ATR_NONE,
                      onelist ? "Show debugging commands in separate section"
                      : "Show all alphabetically, including debugging commands",
                      MENU_UNSELECTED);
+#else
+            add_menu(menuwin, NO_GLYPH, &any, 'z', 0, ATR_NONE,
+                     onelist ? "\83f\83o\83b\83O\83R\83}\83\93\83h\82Í\95Ê\82Ì\90ß\82É\95\\8e¦\82·\82é"
+                     : "\83f\83o\83b\83O\83R\83}\83\93\83h\82ð\8aÜ\82Þ\91S\82Ä\82Ì\83R\83}\83\93\83h\82ð\83A\83\8b\83t\83@\83x\83b\83g\8f\87\82É\95\\8e¦\82·\82é",
+                     MENU_UNSELECTED);
+#endif
         }
         any = zeroany;
         add_menu(menuwin, NO_GLYPH, &any, 0, 0, ATR_NONE,
@@ -519,8 +540,13 @@ doextlist(VOID_ARGS)
                          "", MENU_UNSELECTED);
         }
         if (*searchbuf && !n)
+#if 0 /*JP*/
             add_menu(menuwin, NO_GLYPH, &any, 0, 0, ATR_NONE,
                      "no matches", MENU_UNSELECTED);
+#else
+            add_menu(menuwin, NO_GLYPH, &any, 0, 0, ATR_NONE,
+                     "\88ê\92v\82È\82µ", MENU_UNSELECTED);
+#endif
 
         end_menu(menuwin, (char *) 0);
         n = select_menu(menuwin, PICK_ONE, &selected);
@@ -551,8 +577,12 @@ doextlist(VOID_ARGS)
             searchbuf[0] = '\0';
         }
         if (search) {
+#if 0 /*JP*/
             Strcpy(promptbuf, "Extended command list search phrase");
             Strcat(promptbuf, "?");
+#else
+            Strcpy(promptbuf, "\8ag\92£\83R\83}\83\93\83h\82Ì\8c\9f\8dõ\95\8e\9a\97ñ\82Í?");
+#endif
             getlin(promptbuf, searchbuf);
             (void) mungspaces(searchbuf);
             if (searchbuf[0] == '\033')
@@ -2229,8 +2259,12 @@ int final;
         int egdepth = observable_depth(&u.uz);
 
         (void) endgamelevelname(tmpbuf, egdepth);
+#if 0 /*JP*/
         Sprintf(buf, "in the endgame, on the %s%s",
                 !strncmp(tmpbuf, "Plane", 5) ? "Elemental " : "", tmpbuf);
+#else
+        Sprintf(buf, "\8dÅ\8fI\8e\8e\97û\82Ì%s", tmpbuf);
+#endif
     } else if (Is_knox(&u.uz)) {
         /* this gives away the fact that the knox branch is only 1 level */
 /*JP
@@ -2260,9 +2294,15 @@ int final;
         /* TODO? maybe extend this bit to include various other automatic
            annotations from the dungeon overview code */
         if (Is_rogue_level(&u.uz))
+/*JP
             Strcat(tmpbuf, ", a primitive area");
+*/
+            Strcat(tmpbuf, ", \92P\8f\83\82È\90¢\8aE");
         else if (Is_bigroom(&u.uz) && !Blind)
+/*JP
             Strcat(tmpbuf, ", a very big room");
+*/
+            Strcat(tmpbuf, ", \82Æ\82Ä\82à\91å\82«\82È\95\94\89®");
 #if 0 /*JP*/
         Sprintf(buf, "in %s, on %s", dgnbuf, tmpbuf);
 #else
@@ -2305,9 +2345,14 @@ int final;
                 long nxtlvl = newuexp(ulvl);
                 /* long oldlvl = (ulvl > 1) ? newuexp(ulvl - 1) : 0; */
 
+#if 0 /*JP*/
                 Sprintf(eos(buf), ", %ld %s%sneeded to attain level %d",
                         (nxtlvl - u.uexp), (u.uexp > 0) ? "more " : "",
                         !final ? "" : "were ", (ulvl + 1));
+#else
+                Sprintf(eos(buf), "(\83\8c\83x\83\8b%d\82Ü\82Å%ld\83|\83C\83\93\83g)",
+                        (ulvl + 1), (nxtlvl - u.uexp));
+#endif
             }
         }
         you_have(buf, "");
@@ -2433,15 +2478,32 @@ int final;
     if (flags.pickup) {
         char ocl[MAXOCLASSES + 1];
 
+#if 0 /*JP*//*\8cã\82É\89ñ\82·*/
         Strcpy(buf, "on");
+#endif
         oc_to_str(flags.pickup_types, ocl);
+#if 0 /*JP*/
         Sprintf(eos(buf), " for %s%s%s",
                 *ocl ? "'" : "", *ocl ? ocl : "all types", *ocl ? "'" : "");
+#else
+        Sprintf(buf, "%s%s%s",
+                *ocl ? "'" : "", *ocl ? ocl : "\91S\82Ä\82Ì\8eí\97Þ", *ocl ? "'" : "");
+#endif
         if (flags.pickup_thrown && *ocl) /* *ocl: don't show if 'all types' */
+/*JP
             Strcat(buf, " plus thrown");
+*/
+            Strcat(buf, "\82É\89Á\82¦\82Ä\93\8a\82°\82é\82à\82Ì");
         if (iflags.autopickup_exceptions[AP_GRAB]
             || iflags.autopickup_exceptions[AP_LEAVE])
+/*JP
             Strcat(buf, ", with exceptions");
+*/
+            Strcat(buf, "(\97á\8aO\82 \82è)");
+#if 1 /*JP*/
+        Strcpy(buf, "\82É\91Î\82µ\82Ä\83I\83\93");
+#endif
+        
     } else
 /*JP
         Strcpy(buf, "off");
@@ -3228,7 +3290,11 @@ int final;
 
     /*** Vision and senses ***/
     if (!Blind && (Blinded || !haseyes(youmonst.data)))
+#if 0 /*JP*/
         you_can("see", from_what(-BLINDED)); /* Eyes of the Overworld */
+#else /*\81u\92´\90¢\8aE\82Ì\96Ú\82É\82æ\82Á\82Ä\8c©\82é\82±\82Æ\82ª\82Å\82«\82é\81v*/
+        you_can("\8c©\82é\82±\82Æ\82ª", from_what(-BLINDED)); /* Eyes of the Overworld */
+#endif
     if (See_invisible) {
         if (!Blind)
 /*JP
@@ -4386,6 +4452,7 @@ int final;
              *  N wishes (1 for an artifact)
              *  N wishes (M for artifacts)
              */
+#if 0 /*JP*/
             if (u.uconduct.wisharti == u.uconduct.wishes)
                 Sprintf(eos(buf), " (%s",
                         (u.uconduct.wisharti > 2L) ? "all "
@@ -4396,6 +4463,9 @@ int final;
             Sprintf(eos(buf), "for %s)",
                     (u.uconduct.wisharti == 1L) ? "an artifact"
                                                 : "artifacts");
+#else
+            Sprintf(eos(buf), " (\90¹\8aí\82Í%ld\89ñ)", u.uconduct.wisharti);
+#endif
         }
         you_have_X(buf);
 
@@ -6435,9 +6505,15 @@ const char *msg;
         }
     }
 
+#if 0 /*JP*/
     Sprintf(buf, "Valid direction keys%s%s%s are:",
             prefixhandling ? " to " : "", prefixhandling ? dothat : "",
             NODIAG(u.umonnum) ? " in your current form" : "");
+#else
+    Sprintf(buf, "%s%s%s\82Å\82Ì\97L\8cø\82È\95û\8cü\8ew\92è\82Í:",
+            prefixhandling ? " to " : "", prefixhandling ? dothat : "",
+            NODIAG(u.umonnum) ? " in your current form" : "");
+#endif
     putstr(win, 0, buf);
     show_direction_keys(win, !prefixhandling ? '.' : ' ', NODIAG(u.umonnum));