~drizzle-trunk/drizzle/development

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