~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/my_handler_errors.h

  • Committer: Monty Taylor
  • Date: 2008-08-01 22:33:44 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080801223344-vzhlflfmtijp1imv
First pass at gettexizing the error messages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <libdrizzle/gettext.h>
1
2
 
2
3
/*
3
4
  Errors a handler can give you
6
7
static const char *handler_error_messages[]=
7
8
{
8
9
  /* HA_ERR_KEY_NOT_FOUND */
9
 
  "Didn't find key on read or update",
 
10
  gettext_noop("Didn't find key on read or update"),
10
11
  /* HA_ERR_FOUND_DUPP_KEY */
11
 
  "Duplicate key on write or update",
 
12
  gettext_noop("Duplicate key on write or update"),
12
13
  /* HA_ERR_INTERNAL_ERROR */
13
 
  "Internal (unspecified) error in handler",
 
14
  gettext_noop("Internal (unspecified) error in handler"),
14
15
  /* HA_ERR_RECORD_CHANGED */
15
 
  "Someone has changed the row since it was read (while the table was locked to prevent it)",
 
16
  gettext_noop("Someone has changed the row since it was read (while the table was locked to prevent it)"),
16
17
  /* HA_ERR_WRONG_INDEX */
17
 
  "Wrong index given to function",
 
18
  gettext_noop("Wrong index given to function"),
18
19
  /* empty */
19
 
  "Undefined handler error 125",
 
20
  gettext_noop("Undefined handler error 125"),
20
21
  /* HA_ERR_CRASHED */
21
 
  "Index file is crashed",
 
22
  gettext_noop("Index file is crashed"),
22
23
  /* HA_ERR_WRONG_IN_RECORD */
23
 
  "Record file is crashed",
 
24
  gettext_noop("Record file is crashed"),
24
25
  /* HA_ERR_OUT_OF_MEM */
25
 
  "Out of memory in engine",
 
26
  gettext_noop("Out of memory in engine"),
26
27
  /* empty */
27
 
  "Undefined handler error 129",
 
28
  gettext_noop("Undefined handler error 129"),
28
29
  /* HA_ERR_NOT_A_TABLE */
29
 
  "Incorrect file format",
 
30
  gettext_noop("Incorrect file format"),
30
31
  /* HA_ERR_WRONG_COMMAND */
31
 
  "Command not supported by database",
 
32
  gettext_noop("Command not supported by database"),
32
33
  /* HA_ERR_OLD_FILE */
33
 
  "Old database file",
 
34
  gettext_noop("Old database file"),
34
35
  /* HA_ERR_NO_ACTIVE_RECORD */
35
 
  "No record read before update",
 
36
  gettext_noop("No record read before update"),
36
37
  /* HA_ERR_RECORD_DELETED */
37
 
  "Record was already deleted (or record file crashed)",
 
38
  gettext_noop("Record was already deleted (or record file crashed)"),
38
39
  /* HA_ERR_RECORD_FILE_FULL */
39
 
  "No more room in record file",
 
40
  gettext_noop("No more room in record file"),
40
41
  /* HA_ERR_INDEX_FILE_FULL */
41
 
  "No more room in index file",
 
42
  gettext_noop("No more room in index file"),
42
43
  /* HA_ERR_END_OF_FILE */
43
 
  "No more records (read after end of file)",
 
44
  gettext_noop("No more records (read after end of file)"),
44
45
  /* HA_ERR_UNSUPPORTED */
45
 
  "Unsupported extension used for table",
 
46
  gettext_noop("Unsupported extension used for table"),
46
47
  /* HA_ERR_TO_BIG_ROW */
47
 
  "Too big row",
 
48
  gettext_noop("Too big row"),
48
49
  /* HA_WRONG_CREATE_OPTION */
49
 
  "Wrong create options",
 
50
  gettext_noop("Wrong create options"),
50
51
  /* HA_ERR_FOUND_DUPP_UNIQUE */
51
 
  "Duplicate unique key or constraint on write or update",
 
52
  gettext_noop("Duplicate unique key or constraint on write or update"),
52
53
  /* HA_ERR_UNKNOWN_CHARSET */
53
 
  "Unknown character set used in table",
 
54
  gettext_noop("Unknown character set used in table"),
54
55
  /* HA_ERR_WRONG_MRG_TABLE_DEF */
55
 
  "Conflicting table definitions in sub-tables of MERGE table",
 
56
  gettext_noop("Conflicting table definitions in sub-tables of MERGE table"),
56
57
  /* HA_ERR_CRASHED_ON_REPAIR */
57
 
  "Table is crashed and last repair failed",
 
58
  gettext_noop("Table is crashed and last repair failed"),
58
59
  /* HA_ERR_CRASHED_ON_USAGE */
59
 
  "Table was marked as crashed and should be repaired",
 
60
  gettext_noop("Table was marked as crashed and should be repaired"),
60
61
  /* HA_ERR_LOCK_WAIT_TIMEOUT */
61
 
  "Lock timed out; Retry transaction",
 
62
  gettext_noop("Lock timed out; Retry transaction"),
62
63
  /* HA_ERR_LOCK_TABLE_FULL */
63
 
  "Lock table is full;  Restart program with a larger locktable",
 
64
  gettext_noop("Lock table is full;  Restart program with a larger locktable"),
64
65
  /* HA_ERR_READ_ONLY_TRANSACTION */
65
 
  "Updates are not allowed under a read only transactions",
 
66
  gettext_noop("Updates are not allowed under a read only transactions"),
66
67
  /* HA_ERR_LOCK_DEADLOCK */
67
 
  "Lock deadlock; Retry transaction",
 
68
  gettext_noop("Lock deadlock; Retry transaction"),
68
69
  /* HA_ERR_CANNOT_ADD_FOREIGN */
69
 
  "Foreign key constraint is incorrectly formed",
 
70
  gettext_noop("Foreign key constraint is incorrectly formed"),
70
71
  /* HA_ERR_NO_REFERENCED_ROW */
71
 
  "Cannot add a child row",
 
72
  gettext_noop("Cannot add a child row"),
72
73
  /* HA_ERR_ROW_IS_REFERENCED */
73
 
  "Cannot delete a parent row",
 
74
  gettext_noop("Cannot delete a parent row"),
74
75
  /* HA_ERR_NO_SAVEPOINT */
75
 
  "No savepoint with that name",
 
76
  gettext_noop("No savepoint with that name"),
76
77
  /* HA_ERR_NON_UNIQUE_BLOCK_SIZE */
77
 
  "Non unique key block size",
 
78
  gettext_noop("Non unique key block size"),
78
79
  /* HA_ERR_NO_SUCH_TABLE */
79
 
  "The table does not exist in engine",
 
80
  gettext_noop("The table does not exist in engine"),
80
81
  /* HA_ERR_TABLE_EXIST */
81
 
  "The table already existed in storage engine",
 
82
  gettext_noop("The table already existed in storage engine"),
82
83
  /* HA_ERR_NO_CONNECTION */
83
 
  "Could not connect to storage engine",
 
84
  gettext_noop("Could not connect to storage engine"),
84
85
  /* HA_ERR_NULL_IN_SPATIAL */
85
 
  "Unexpected null pointer found when using spatial index",
 
86
  gettext_noop("Unexpected null pointer found when using spatial index"),
86
87
  /* HA_ERR_TABLE_DEF_CHANGED */
87
 
  "The table changed in storage engine",
 
88
  gettext_noop("The table changed in storage engine"),
88
89
  /* HA_ERR_NO_PARTITION_FOUND */
89
 
  "There's no partition in table for the given value",
 
90
  gettext_noop("There's no partition in table for the given value"),
90
91
  /* HA_ERR_RBR_LOGGING_FAILED */
91
 
  "Row-based binlogging of row failed",
 
92
  gettext_noop("Row-based binlogging of row failed"),
92
93
  /* HA_ERR_DROP_INDEX_FK */
93
 
  "Index needed in foreign key constraint",
 
94
  gettext_noop("Index needed in foreign key constraint"),
94
95
  /* HA_ERR_FOREIGN_DUPLICATE_KEY */
95
 
  "Upholding foreign key constraints would lead to a duplicate key error in "
 
96
  gettext_noop("Upholding foreign key constraints would lead to a duplicate key error"),
96
97
  /* HA_ERR_TABLE_NEEDS_UPGRADE */
97
 
  "Table needs to be upgraded before it can be used",
 
98
  gettext_noop("Table needs to be upgraded before it can be used"),
98
99
  /* HA_ERR_TABLE_READONLY */
99
 
  "Table is read only",
 
100
  gettext_noop("Table is read only"),
100
101
  /* HA_ERR_AUTOINC_READ_FAILED */
101
 
  "Failed to get next auto increment value",
 
102
  gettext_noop("Failed to get next auto increment value"),
102
103
  /* HA_ERR_AUTOINC_ERANGE */
103
 
  "Failed to set row auto increment value",
 
104
  gettext_noop("Failed to set row auto increment value"),
104
105
  /* HA_ERR_GENERIC */
105
 
  "Unknown (generic) error from engine",
 
106
  gettext_noop("Unknown (generic) error from engine"),
106
107
  /* HA_ERR_RECORD_IS_THE_SAME */
107
 
  "Record is the same",
 
108
  gettext_noop("Record is the same"),
108
109
  /* HA_ERR_LOGGING_IMPOSSIBLE */
109
 
  "It is not possible to log this statement",
 
110
  gettext_noop("It is not possible to log this statement"),
110
111
  /* HA_ERR_TABLESPACE_EXIST */
111
 
  "Tablespace exists",
 
112
  gettext_noop("Tablespace exists"),
112
113
  /* HA_ERR_CORRUPT_EVENT */
113
 
  "The event was corrupt, leading to illegal data being read",
 
114
  gettext_noop("The event was corrupt, leading to illegal data being read"),
114
115
  /* HA_ERR_NEW_FILE */
115
 
  "The table is of a new format not supported by this version",
 
116
  gettext_noop("The table is of a new format not supported by this version"),
116
117
  /* HA_ERR_ROWS_EVENT_APPLY */
117
 
  "The event could not be processed no other hanlder error happened",
 
118
  gettext_noop("The event could not be processed no other hanlder error happened"),
118
119
  /* HA_ERR_INITIALIZATION */
119
 
  "Got a fatal error during initialzaction of handler",
 
120
  gettext_noop("Got a fatal error during initialzaction of handler"),
120
121
  /* HA_ERR_FILE_TOO_SHORT */
121
 
  "File to short; Expected more data in file",
 
122
  gettext_noop("File to short; Expected more data in file"),
122
123
  /* HA_ERR_WRONG_CRC */
123
 
  "Read page with wrong checksum",
 
124
  gettext_noop("Read page with wrong checksum"),
124
125
  /* HA_ERR_LOCK_OR_ACTIVE_TRANSACTION */
125
 
  "Lock or active transaction", /* TODO: get a better message */
 
126
  gettext_noop("Lock or active transaction"), /* TODO: get a better message */
126
127
  /* HA_ERR_NO_SUCH_TABLESPACE */
127
 
  "No such table space", /* TODO: get a better message */
 
128
  gettext_noop("No such table space"), /* TODO: get a better message */
128
129
  /* HA_ERR_TABLESPACE_NOT_EMPTY */
129
 
  "Tablespace not empty" /* TODO: get a better message */
 
130
  gettext_noop("Tablespace not empty") /* TODO: get a better message */
130
131
};
131
132