| 1 |
/** |
| 2 |
* @file text.h |
| 3 |
* @brief 文字列変換 |
| 4 |
* @author BananaJinn |
| 5 |
* @version $Id: text.h,v 1.15 2010/11/02 15:23:51 bananajinn Exp $ |
| 6 |
* 円盤複写屋 |
| 7 |
* Copyright (C) 2004-2006 BananaJinn<banana@mxh.mesh.ne.jp>. |
| 8 |
*/ |
| 9 |
#ifndef __TEXT_H__ |
| 10 |
#define __TEXT_H__ |
| 11 |
|
| 12 |
#if defined(linux) || defined(__MINGW32__) |
| 13 |
extern char *GetText(const char *string); |
| 14 |
#elif defined(WIN32) |
| 15 |
extern char *GetText(int string_id); |
| 16 |
#elif defined(MACOSX) |
| 17 |
extern const char *GetText(const char *string); |
| 18 |
#endif |
| 19 |
|
| 20 |
#define GT(s) GetText(s) |
| 21 |
|
| 22 |
#if defined(linux) || defined(__MINGW32__) || defined(MACOSX) |
| 23 |
# define MSG_WAITING_READY GT("Waiting ready") |
| 24 |
# define MSG_INSERT_DISC GT("Insert disc") |
| 25 |
# define MSG_QUICK_BLANK GT("Quick blank") |
| 26 |
# define MSG_COMMAND_ERROR GT("Command error(%02Xh : %X/%02X/%02X)") |
| 27 |
# define MSG_READER_ GT("Reader : ") |
| 28 |
# define MSG_WRITER_ GT("Writer%d : ") |
| 29 |
# define MSG_SPEED_ GT("%.1fx") |
| 30 |
# define MSG_REMAINS_ GT(" remains=%d:%02d") |
| 31 |
# define MSG_TOTAL_REMAINS_ GT(" total_remains=%d:%02d") |
| 32 |
# define MSG_BUFFER_ GT(" buffer=%.1f%%") |
| 33 |
# define MSG_CANT_GET_DISC_TYPE GT("Cannot get the disc type.") |
| 34 |
# define MSG_CANT_CREATE_MULTITRACK_ISO GT("Cannot create ISO image of multi track.") |
| 35 |
# define MSG_READING GT("Reading") |
| 36 |
# define MSG_CANT_DAO GT("Because two or more tracks exist, it is not possible to record by DAO.\nDo you switch to the record by TAO?") |
| 37 |
# define MSG_MIN_FORMAT GT("Min format") |
| 38 |
# define MSG_FORMATTING GT("Formatting") |
| 39 |
# define MSG_NOT_BLANK GT("It is not a blank disc.") |
| 40 |
# define MSG_NOT_BLANK_QUICK_BLANK GT("It is not a blank disc. Execute quick blanking?") |
| 41 |
# define MSG_CLOSE_SESSION GT("Close Session") |
| 42 |
# define MSG_CLOSE_TRACK GT("Close Track") |
| 43 |
# define MSG_SPINUP GT("spin up") |
| 44 |
# define MSG_RETRY_ GT("retry:%d") |
| 45 |
# define MSG_TRACK_ GT("track%d") |
| 46 |
# define MSG_WRITING_LEAD_IN GT("Writing lead-in") |
| 47 |
# define MSG_WRITING_CDTEXT GT("Writing CD-TEXT") |
| 48 |
# define MSG_CANT_WRITE_CD_DAO GT("Sorry. Cannot write to CD by DAO.") |
| 49 |
# define MSG_SOURCE_IS_BLANK GT("Source disc is a blank disc.") |
| 50 |
# define MSG_CAPACITY_IS_INSUFFICIENT GT("Capacity is insufficient. Continue?") |
| 51 |
# define MSG_TOTAL GT("Total") |
| 52 |
# define MSG_NETWORK_ERROR_ GT("Network error %ld :") |
| 53 |
# define MSG_ABORTED GT("Aborted.") |
| 54 |
# define MSG_COMPLETE_SUCCESS_AND_EJECT GT("Process was complete successfully. Eject the disc?") |
| 55 |
# define MSG_COMPLETE_SUCCESS GT("Process was complete successfully.") |
| 56 |
# define MSG_ERROR_OCCURRED GT("Error occurred.") |
| 57 |
# define MSG_ERROR_OCCURRED_CMDLOG GT("Error occurred. Create command log?") |
| 58 |
# define MSG_CMDLOG_WAS_SAVED_TO_ GT("Command log was saved to %s.") |
| 59 |
# define MSG_MEM_ALLOC_ERROR GT("Memory allocation error.") |
| 60 |
# define MSG_CANT_COPY_DIFFERENT_TYPE GT("Cannot copy onto a different disc type.") |
| 61 |
# define MSG_CANT_OPEN_IMAGE GT("Cannot open image file.") |
| 62 |
# define MSG_CANT_READ_IMAGE GT("Cannot read image file.") |
| 63 |
# define MSG_CANT_WRITE_IMAGE GT("Cannot write image file.") |
| 64 |
# define MSG_CODE_CONV_ERROR GT("Code convert error.") |
| 65 |
# define MSG_UNKNOWN_COMMAND GT("Unknown command was received.") |
| 66 |
# define MSG_INVALID_IMAGE_FILE GT("Invalid image file.") |
| 67 |
# define MSG_MKISOFS_ERROR_ GT("Error occurred while executing mkisofs.\n%s") |
| 68 |
# define MSG_VIDEO_MODE GT("Do you want DVD-video mode?") |
| 69 |
|
| 70 |
#elif defined(WIN32) |
| 71 |
/* Windows用メッセージ */ |
| 72 |
# include "resource.h" |
| 73 |
# define MSG_WAITING_READY GT(IDS_WAITING_READY) |
| 74 |
# define MSG_INSERT_DISC GT(IDS_INSERT_DISC) |
| 75 |
# define MSG_QUICK_BLANK GT(IDS_QUICK_BLANK) |
| 76 |
# define MSG_COMMAND_ERROR GT(IDS_COMMAND_ERROR) |
| 77 |
# define MSG_READER_ GT(IDS_READER_) |
| 78 |
# define MSG_WRITER_ GT(IDS_WRITER_) |
| 79 |
# define MSG_SPEED_ GT(IDS_SPEED_) |
| 80 |
# define MSG_REMAINS_ GT(IDS_REMAINS_) |
| 81 |
# define MSG_TOTAL_REMAINS_ GT(IDS_TOTAL_REMAINS_) |
| 82 |
# define MSG_BUFFER_ GT(IDS_BUFFER_) |
| 83 |
# define MSG_CANT_GET_DISC_TYPE GT(IDS_CANT_GET_DISC_TYPE) |
| 84 |
# define MSG_CANT_CREATE_MULTITRACK_ISO GT(IDS_CANT_CREATE_MULTITRACK_ISO) |
| 85 |
# define MSG_READING GT(IDS_READING) |
| 86 |
# define MSG_CANT_DAO GT(IDS_CANT_DAO) |
| 87 |
# define MSG_MIN_FORMAT GT(IDS_MIN_FORMAT) |
| 88 |
# define MSG_FORMATTING GT(IDS_FORMATTING) |
| 89 |
# define MSG_NOT_BLANK GT(IDS_NOT_BLANK) |
| 90 |
# define MSG_NOT_BLANK_QUICK_BLANK GT(IDS_NOT_BLANK_QUICK_BLANK) |
| 91 |
# define MSG_CLOSE_SESSION GT(IDS_CLOSE_SESSION) |
| 92 |
# define MSG_CLOSE_TRACK GT(IDS_CLOSE_TRACK) |
| 93 |
# define MSG_SPINUP GT(IDS_SPINUP) |
| 94 |
# define MSG_RETRY_ GT(IDS_RETRY_) |
| 95 |
# define MSG_TRACK_ GT(IDS_TRACK_) |
| 96 |
# define MSG_WRITING_LEAD_IN GT(IDS_WRITING_LEAD_IN) |
| 97 |
# define MSG_WRITING_CDTEXT GT(IDS_WRITING_CDTEXT) |
| 98 |
# define MSG_CANT_WRITE_CD_DAO GT(IDS_CANT_WRITE_CD_DAO) |
| 99 |
# define MSG_SOURCE_IS_BLANK GT(IDS_SOURCE_IS_BLANK) |
| 100 |
# define MSG_CAPACITY_IS_INSUFFICIENT GT(IDS_CAPACITY_IS_INSUFFICIENT) |
| 101 |
# define MSG_TOTAL GT(IDS_TOTAL) |
| 102 |
# define MSG_NETWORK_ERROR_ GT(IDS_NETWORK_ERROR_) |
| 103 |
# define MSG_ABORTED GT(IDS_ABORTED) |
| 104 |
# define MSG_COMPLETE_SUCCESS_AND_EJECT GT(IDS_COMPLETE_SUCCESS_AND_EJECT) |
| 105 |
# define MSG_COMPLETE_SUCCESS GT(IDS_COMPLETE_SUCCESS) |
| 106 |
# define MSG_ERROR_OCCURRED GT(IDS_ERROR_OCCURRED) |
| 107 |
# define MSG_ERROR_OCCURRED_CMDLOG GT(IDS_ERROR_OCCURRED_CMDLOG) |
| 108 |
# define MSG_CMDLOG_WAS_SAVED_TO_ GT(IDS_CMDLOG_WAS_SAVED_TO_) |
| 109 |
# define MSG_MEM_ALLOC_ERROR GT(IDS_MEM_ALLOC_ERROR) |
| 110 |
# define MSG_CANT_COPY_DIFFERENT_TYPE GT(IDS_CANT_COPY_DIFFERENT_TYPE) |
| 111 |
# define MSG_CANT_OPEN_IMAGE GT(IDS_CANT_OPEN_IMAGE) |
| 112 |
# define MSG_CANT_READ_IMAGE GT(IDS_CANT_READ_IMAGE) |
| 113 |
# define MSG_CANT_WRITE_IMAGE GT(IDS_CANT_WRITE_IMAGE) |
| 114 |
# define MSG_CODE_CONV_ERROR GT(IDS_CODE_CONV_ERROR) |
| 115 |
# define MSG_UNKNOWN_COMMAND GT(IDS_UNKNOWN_COMMAND) |
| 116 |
# define MSG_INVALID_IMAGE_FILE GT(IDS_INVALID_IMAGE_FILE) |
| 117 |
# define MSG_MKISOFS_ERROR_ GT(IDS_MKISOFS_ERROR_) |
| 118 |
# define MSG_VIDEO_MODE GT(IDS_VIDEO_MODE) |
| 119 |
|
| 120 |
#endif |
| 121 |
|
| 122 |
#endif /* !__TEXT_H__ */ |