}
else
{
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
sjis2euc(buf2);
#endif
sprintf(buf, "t%c%c%c%c%s", x+1, y+1, len, col, buf2);
disable_chuukei_server();
#endif
fd_close(movie_fd);
-#ifdef JP
- msg_print("録画を終了しました。");
-#else
- msg_print("Stopped recording.");
-#endif
+ msg_print(_("録画を終了しました。", "Stopped recording."));
}
else
{
sprintf(tmp, "%s.amv", player_base);
-#ifdef JP
- if (get_string("ムービー記録ファイル: ", tmp, 80))
-#else
- if (get_string("Movie file name: ", tmp, 80))
-#endif
+ if (get_string(_("ムービー記録ファイル: ", "Movie file name: "), tmp, 80))
{
int fd;
(void)fd_close(fd);
/* Build query */
-#ifdef JP
- (void)sprintf(out_val, "現存するファイルに上書きしますか? (%s)", buf);
-#else
- (void)sprintf(out_val, "Replace existing file %s? ", buf);
-#endif
+ (void)sprintf(out_val, _("現存するファイルに上書きしますか? (%s)", "Replace existing file %s? "), buf);
/* Ask */
if (!get_check(out_val)) return;
if (!movie_fd)
{
-#ifdef JP
- msg_print("ファイルを開けません!");
-#else
- msg_print("Can not open file.");
-#endif
+ msg_print(_("ファイルを開けません!", "Can not open file."));
return;
}
while (get_nextbuf(buf))
{
char id;
- int x, y, len, col;
+ int x, y, len;
+ SYMBOL_COLOR col;
int i;
unsigned char tmp1, tmp2, tmp3, tmp4;
char *mesg;
switch (id)
{
case 't': /* 通常 */
-#ifdef SJIS
+#if defined(SJIS) && defined(JP)
euc2sjis(mesg);
#endif
update_term_size(x, y, len);