messages Class Reference

Public Member Functions

void set_mapping (const std::string &lang, const std::string &locale_name)
std::string get (const std::string &lang, const char *message)

Static Public Attributes

static messages static_messages

Detailed Description

the messages class is used get access messages in different languages


Member Function Documentation

std::string messages::get ( const std::string &  lang,
const char *  message 
)

get a translated message

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

Referenced by messages_get().

void messages::set_mapping ( const std::string &  lang,
const std::string &  locale_name 
)

define a mapping from a language token in XML to a system locale

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

Referenced by messages_set_mapping().


Field Documentation

globally available instance of messages


The documentation for this class was generated from the following file:

Generated on Fri Mar 12 06:00:14 2010 for jabberd14 by  doxygen 1.6.1