My Project
|
Read language depeneded messagefile. More...
#include "sql_priv.h"
#include "unireg.h"
#include "derror.h"
#include "mysys_err.h"
#include "mysqld.h"
#include "sql_class.h"
Functions | |
C_MODE_END bool | init_errmessage (void) |
bool | read_texts (const char *file_name, const char *language, const char ***point, uint error_messages) |
Read language depeneded messagefile.
C_MODE_END bool init_errmessage | ( | void | ) |
Read messages from errorfile.
This function can be called multiple times to reload the messages. If it fails to load the messages, it will fail softly by initializing the errmesg pointer to an array of empty strings or by keeping the old array if it exists.
FALSE | OK |
TRUE | Error |
bool read_texts | ( | const char * | file_name, |
const char * | language, | ||
const char *** | point, | ||
uint | error_messages | ||
) |
Read text from packed textfile in language-directory.
If we can't read messagefile then it's panic- we can't continue.