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

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

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


Field Documentation

messages messages::static_messages [static]

globally available instance of messages


The documentation for this class was generated from the following file:
Generated on Wed Apr 2 03:30:10 2008 for jabberd14 by  doxygen 1.5.3