support for internationalized messages More...
#include <map>#include <string>#include <locale>#include <stdexcept>#include "jabberdlib.h"Data Structures | |
| class | messages |
Functions | |
| void | messages_set_mapping (const char *lang, const char *locale_name) |
| const char * | messages_get (const char *lang, const char *message) |
support for internationalized messages
This implements an interface to access message translation catalogs
| const char* messages_get | ( | const char * | lang, | |
| const char * | message | |||
| ) |
get a translated message from the static messages instance
| lang | the language (XML language token) to get the message for | |
| message | the message to get a translation for |
References messages::get().
Referenced by _dialback_out_beat_packets(), _js_routed_session_control_packet(), _js_routed_session_packet(), deliver_fail(), dialback_out_connection_cleanup(), js_session_end(), js_session_route(), jutil_delay(), and jutil_error_xmpp().
| void messages_set_mapping | ( | const char * | lang, | |
| const char * | locale_name | |||
| ) |
define a mapping from a language token in XML to a system locale for the static messages instance
| lang | the XML language token | |
| locale_name | the system locale name |
References messages::set_mapping().
Referenced by configurate().
1.6.1