OSDN Git Service

add translation
[jnethack/source.git] / src / version.c
index 0810b96..2b1f0bd 100644 (file)
@@ -40,6 +40,15 @@ char *buf;
     return strcpy(buf, VERSION_STRING);
 }
 
+#if 1 /*JP*/
+char *
+version_string_j(buf)
+char *buf;
+{
+    return strcpy(buf, JVERSION_ID);
+}
+#endif
+
 /* fill and return the given buffer with the long nethack version string */
 char *
 getversionstring(buf)
@@ -96,7 +105,7 @@ doversion()
 
     pline("%s", getversionstring(buf));
 #if 1 /*JP*/
-    pline("%s", JVERSION_ID);
+    pline("%s", version_string_j(buf));
 #endif
     return 0;
 }
@@ -126,6 +135,11 @@ doextversion()
         putstr(win, 0, p);
     }
 
+#if 1 /*JP*/
+    (void) version_string_j(buf);
+    putstr(win, 0, buf);
+#endif
+
     f = dlb_fopen(OPTIONS_USED, "r");
     if (!f) {
         putstr(win, 0, "");