65 "The site %s is requesting your username and password. "
66 "The realm is \"%s\""},
67 {
"PrivacyDescription",
68 "A privacy error occurred while communicating with %s this "
69 "may be a site configuration error or an attempt to steal "
70 "private information (passwords, messages or credit cards)"},
71 {
"TimeoutDescription",
72 "A connection to %s could not be established. The site may "
73 "be temporarily unavailable or too busy to respond."},
74 {
"FetchErrorDescription",
75 "An error occurred when connecting to %s"},
82 for (floop = 0; fallback[floop].key != NULL; floop++) {
85 fallback[floop].value);
130 "Unable to create hash table for messages file %s",
156 const char *r = NULL;
183 NSLOG(netsurf, INFO,
"Loading Messages from '%s'",
path);
197 NSLOG(netsurf, INFO,
"Unable to create hash table");
220 if (msg_fmt == NULL) {
225 buff_len = vsnprintf(buff, buff_len, msg_fmt, ap);
228 buff = malloc(buff_len + 1);
232 vsnprintf(buff, buff_len + 1, msg_fmt, ap);
nserror
Enumeration of error codes.
@ NSERROR_TIMEOUT
Operation timed out.
@ NSERROR_PERMISSION
Permission error.
@ NSERROR_SAVE_FAILED
Failed to save data.
@ NSERROR_CSS_BASE
CSS base sheet failed.
@ NSERROR_BMP_ERROR
A BMP error occurred.
@ NSERROR_SPRITE_ERROR
A RISC OS Sprite error occurred.
@ NSERROR_NOSPACE
Insufficient space.
@ NSERROR_NOT_FOUND
Requested item not found.
@ NSERROR_INIT_FAILED
Initialisation failed.
@ NSERROR_BAD_ENCODING
The character set is unknown.
@ NSERROR_BAD_CONTENT
Bad Content.
@ NSERROR_BOX_CONVERT
Box conversion failed.
@ NSERROR_BAD_URL
Bad URL.
@ NSERROR_DOM
DOM call returned error.
@ NSERROR_ICO_ERROR
A ICO error occurred.
@ NSERROR_GIF_ERROR
A GIF error occurred.
@ NSERROR_BAD_AUTH
Fetch needs authentication data.
@ NSERROR_NOT_IMPLEMENTED
Functionality is not implemented.
@ NSERROR_BAD_PARAMETER
Bad Parameter.
@ NSERROR_SVG_ERROR
A SVG error occurred.
@ NSERROR_BAD_CERTS
Fetch needs certificate chain check.
@ NSERROR_BAD_SIZE
Bad size.
@ NSERROR_NO_FETCH_HANDLER
No fetch handler for URL scheme.
@ NSERROR_PNG_ERROR
A PNG error occurred.
@ NSERROR_NEED_DATA
More data needed.
@ NSERROR_BAD_REDIRECT
Fetch encountered a bad redirect.
@ NSERROR_FRAME_DEPTH
Exceeded frame depth.
@ NSERROR_UNKNOWN
Unknown error - DO NOT USE.
@ NSERROR_NOT_DIRECTORY
Missing directory.
@ NSERROR_STOPPED
Content conversion stopped.
@ NSERROR_ENCODING_CHANGE
The character changed.
@ NSERROR_CSS
CSS call returned error.
@ NSERROR_INVALID
Invalid data.
@ NSERROR_NOMEM
Memory exhaustion.
@ NSERROR_CLONE_FAILED
Failed to clone handle.
struct hash_table * hash_create(unsigned int chains)
Create a new hash table.
bool hash_add(struct hash_table *ht, const char *key, const char *value)
Adds a key/value pair to a hash table.
nserror hash_add_inline(struct hash_table *ht, const uint8_t *data, size_t size)
Add key/value pairs to a hash table with data from a memory buffer.
nserror hash_add_file(struct hash_table *ht, const char *path)
Add key/value pairs to a hash table with data from a file.
void hash_destroy(struct hash_table *ht)
Destroys a hash table.
const char * hash_get(struct hash_table *ht, const char *key)
Looks up a the value associated with with a key from a specific hash table.
Interface to Write-Once hash table for string to string mapping.
#define NSLOG(catname, level, logmsg, args...)
nserror messages_add_from_inline(const uint8_t *data, size_t size)
Read keys and values from inline message data into the standard Messages hash.
static nserror messages_load_ctx(const char *path, struct hash_table **ctx)
Read keys and values from messages file.
nserror messages_add_from_file(const char *path)
Read keys and values from messages file into the standard Messages hash.
const char * messages_get_errorcode(nserror code)
lookup of a message by errorcode from the standard Messages hash.
const char * messages_get(const char *key)
Fast lookup of a message by key from the standard Messages hash.
char * messages_get_buff(const char *key,...)
Formatted message from a key in the global message hash.
static void messages_destroy_ctx(struct hash_table *ctx)
Free memory used by a messages hash.
static struct hash_table * messages_hash
The hash table used to store the standard Messages file for the old API.
void messages_destroy(void)
Free memory used by the standard Messages hash.
static struct hash_table * messages_create_ctx(int hash_size)
Create a message context.
#define HASH_SIZE
Messages are stored in a fixed-size hash table.
static const char * messages_get_ctx(const char *key, struct hash_table *ctx)
Fast lookup of a message by key.
const char * messages_get_sslcode(ssl_cert_err code)
lookup of a message by SSL error code from the standard Messages hash.
Localised message support (interface).
ssl_cert_err
ssl certificate error status
@ SSL_CERT_ERR_TOO_YOUNG
This certificate is not yet valid.
@ SSL_CERT_ERR_BAD_SIG
Bad signature on this certificate.
@ SSL_CERT_ERR_BAD_ISSUER
Bad issuer.
@ SSL_CERT_ERR_SELF_SIGNED
This certificate (or the chain) is self signed.
@ SSL_CERT_ERR_OK
Nothing wrong with this certificate.
@ SSL_CERT_ERR_HOSTNAME_MISMATCH
This certificate host did not match the server.
@ SSL_CERT_ERR_TOO_OLD
This certificate is no longer valid.
@ SSL_CERT_ERR_REVOKED
This certificate has been revoked.
@ SSL_CERT_ERR_CHAIN_SELF_SIGNED
This certificate chain is self signed.
@ SSL_CERT_ERR_CERT_MISSING
This certificate was missing from the chain, its data is useless.
@ SSL_CERT_ERR_UNKNOWN
Unknown error.
Interface to utility string handling.
Interface to a number of general purpose functionality.
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.