#include <translationManager.h>
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 |
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
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.
lcoale | The new locale |
const miniXml::ustring& Spm::Util::TranslationManager::getLocale | ( | ) |
miniXml::ustring Spm::Util::TranslationManager::translate | ( | const miniXml::ustring & | message | ) |
Translate a string.
message | The string to translate |