OSDN Git Service

patch src/
[jnethack/source.git] / src / bones.c
index 7ca1925..4c1c32c 100644 (file)
@@ -346,11 +346,17 @@ struct obj *corpse;
     if (fd >= 0) {
         (void) nhclose(fd);
         if (wizard) {
+/*JP
             if (yn("Bones file already exists.  Replace it?") == 'y') {
+*/
+            if (yn("\8d\9c\83t\83@\83C\83\8b\82ª\8aù\82É\91\8dÝ\82µ\82Ä\82é\82æ\81D  \92u\82«\8a·\82¦\82é\81H") == 'y') {
                 if (delete_bonesfile(&u.uz))
                     goto make_bones;
                 else
+/*JP
                     pline("Cannot unlink old bones.");
+*/
+                    pline("\8cÃ\82¢\8d\9c\82ð\8dí\8f\9c\82Å\82«\82È\82©\82Á\82½\81D");
             }
         }
         /* compression can change the file's name, so must
@@ -524,7 +530,10 @@ make_bones:
         bflush(fd);
         if (bytes_counted > freediskspace(bones)) { /* not enough room */
             if (wizard)
+/*JP
                 pline("Insufficient space to create bones file.");
+*/
+                pline("\8d\9c\83t\83@\83C\83\8b\82ð\90\90¬\82·\82é\82½\82ß\82Ì\8f[\95ª\82È\97Ì\88æ\82ª\82È\82¢\81D");
             (void) nhclose(fd);
             cancel_bonesfile();
             return;
@@ -569,12 +578,18 @@ getbones()
 
     if (validate(fd, bones) != 0) {
         if (!wizard)
+/*JP
             pline("Discarding unuseable bones; no need to panic...");
+*/
+            pline("\8eg\82¦\82È\82¢\8d\9c\82ð\8eÌ\82Ä\82½\81D\8dQ\82Ä\82é\95K\97v\82Í\82È\82¢\81D\81D\81D");
         ok = FALSE;
     } else {
         ok = TRUE;
         if (wizard) {
+/*JP
             if (yn("Get bones?") == 'n') {
+*/
+            if (yn("\8d\9c\82ð\8fE\82¤\81H") == 'n') {
                 (void) nhclose(fd);
                 compress_bonesfile();
                 return 0;
@@ -585,7 +600,10 @@ getbones()
         if (strcmp(bonesid, oldbonesid) != 0) {
             char errbuf[BUFSZ];
 
+/*JP
             Sprintf(errbuf, "This is bones level '%s', not '%s'!", oldbonesid,
+*/
+            Sprintf(errbuf, "\82±\82Ì\8d\9c\82Ì\83\8c\83x\83\8b\82Í'%s'\82Å\82 \82Á\82Ä\81A'%s'\82Å\82Í\82È\82¢\81I", oldbonesid,
                     bonesid);
             if (wizard) {
                 pline1(errbuf);
@@ -626,7 +644,10 @@ getbones()
     u.uroleplay.numbones++;
 
     if (wizard) {
+/*JP
         if (yn("Unlink bones?") == 'n') {
+*/
+        if (yn("\8d\9c\82ð\8fÁ\82·\81H") == 'n') {
             compress_bonesfile();
             return ok;
         }