messages.cc File Reference

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)

Detailed Description

support for internationalized messages

This implements an interface to access message translation catalogs


Function Documentation

const char* messages_get ( const char *  lang,
const char *  message 
)

get a translated message from the static messages instance

Parameters:
lang the language (XML language token) to get the message for
message the message to get a translation for
Returns:
the translated message (if available), or same as message

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

Parameters:
lang the XML language token
locale_name the system locale name

References messages::set_mapping().

Referenced by configurate().


Generated on Wed Mar 10 06:00:06 2010 for jabberd14 by  doxygen 1.6.1