Spm::Util::TranslationManager Class Reference

Manage translation. More...

#include <translationManager.h>

List of all members.

Public Member Functions

void setLocale (const miniXml::ustring &locale)
 Change the current locale of the translation.
const miniXml::ustring & getLocale ()
miniXml::ustring translate (const miniXml::ustring &message)
 Translate a string.

Static Public Member Functions

static boost::shared_ptr<
TranslationManager > & 
create (const miniXml::ustring &domain, const miniXml::ustring &localeDir)
 create of get a new TranslationManager object


Detailed Description

Manage translation.


Member Function Documentation

static boost::shared_ptr<TranslationManager>& Spm::Util::TranslationManager::create ( const miniXml::ustring &  domain,
const miniXml::ustring &  localeDir 
) [static]

create of get a new TranslationManager object

Parameters:
domain The domain of the translation
localeDir The directory where translation reside

void Spm::Util::TranslationManager::setLocale ( const miniXml::ustring &  locale  ) 

Change the current locale of the translation.

Parameters:
lcoale The new locale

const miniXml::ustring& Spm::Util::TranslationManager::getLocale (  ) 

Returns:
The current locale

miniXml::ustring Spm::Util::TranslationManager::translate ( const miniXml::ustring &  message  ) 

Translate a string.

Parameters:
message The string to translate
Returns:
The translated string


The documentation for this class was generated from the following file:
Generated on Sat Mar 21 17:00:15 2009 for libSpm by  doxygen 1.5.2