2003-08-16 22:39:10 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
2004-05-08 22:13:27 +04:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
2003-08-16 22:39:10 +04:00
|
|
|
*/
|
|
|
|
|
2004-05-08 22:13:27 +04:00
|
|
|
/** \file
|
|
|
|
* Localised message support (interface).
|
|
|
|
*
|
2003-08-16 22:39:10 +04:00
|
|
|
* The messages module loads a file of keys and associated strings, and
|
|
|
|
* provides fast lookup by key. The messages file consists of key:value lines,
|
|
|
|
* comment lines starting with #, and other lines are ignored. Use
|
2004-05-08 22:13:27 +04:00
|
|
|
* messages_load() to read the file into memory. To lookup a key, use
|
|
|
|
* messages_get("key").
|
|
|
|
*
|
2004-05-12 14:23:07 +04:00
|
|
|
* Only the first MAX_KEY_LENGTH (currently 24) characters of the key are
|
2004-05-08 22:13:27 +04:00
|
|
|
* significant.
|
2003-08-16 22:39:10 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_UTILS_MESSAGES_H_
|
|
|
|
#define _NETSURF_UTILS_MESSAGES_H_
|
|
|
|
|
|
|
|
void messages_load(const char *path);
|
|
|
|
const char *messages_get(const char *key);
|
2004-07-28 00:44:46 +04:00
|
|
|
const char *messages_get_key(const char *value);
|
2003-08-16 22:39:10 +04:00
|
|
|
void messages_dump(void);
|
|
|
|
|
|
|
|
#endif
|