diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2005-07-16 14:35:25 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2005-07-16 14:35:25 +0000 |
commit | f4ecaaed31db0aa5d71c05dd3f04dc2833ad29fe (patch) | |
tree | 362b09da27833d63b3ae7b8d9fd14a4b56e92243 /utils/messages.c | |
parent | 81a39c30755e9bb61a10a0edb16fec8996100024 (diff) | |
download | netsurf-f4ecaaed31db0aa5d71c05dd3f04dc2833ad29fe.tar.gz netsurf-f4ecaaed31db0aa5d71c05dd3f04dc2833ad29fe.tar.bz2 |
[project @ 2005-07-16 14:35:20 by jmb]
- Convert Messages files to UTF-8 encoding.
- Replace local_encoding_name() with platform specific
utf8_[to,from]_local_encoding() functions - this allows mapping of 8bit
characters 0x80->0x9f (inclusive).
- All text that is rendered by the RISC OS Wimp is now converted to the system
local encoding prior to display.
- Lose the horrendous hack that was messages_get_key()
- Menu text is now translated to system local encoding on the fly (if necessary)
rather than at menu creation time. This allows the system alphabet to change
under us and our menus remain usable.
- The Languages menu now lists all languages that are present in the LangNames
file. In the case of selecting the UI language, those languages which are not
available are shaded.
svn path=/import/netsurf/; revision=1796
Diffstat (limited to 'utils/messages.c')
-rw-r--r-- | utils/messages.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/utils/messages.c b/utils/messages.c index f2ed3e037..3b5b6d662 100644 --- a/utils/messages.c +++ b/utils/messages.c @@ -53,7 +53,7 @@ static unsigned int messages_hash(const char *s); void messages_load(const char *path) { - char s[300]; + char s[400]; FILE *fp; fp = fopen(path, "r"); @@ -121,23 +121,6 @@ const char *messages_get(const char *key) return entry->value; } -/** - * Retrieve the key associated with a value - * - * \param value The value as returned by messages_get - * \return The key associated with the value or NULL if not found - */ -const char *messages_get_key(const char *value) -{ - const char *key = value - MAX_KEY_LENGTH; - const char *temp_value = messages_get(key); - - if (strcmp(value, temp_value) == 0) - return key; - - return NULL; -} - /** * Hash function for keys. |