Public Member Functions
Tonido::Util::PoManager Class Reference

Manages translation files. More...

List of all members.

Public Member Functions

 PoManager ()
 Ctor.
 ~PoManager ()
 Dtor.
bool addMasterPoVfs (const std::string &a_vfs, const std::string &a_tag)
 Adds a Master PO VFS File.
bool addPoVfs (const std::string &a_vfs, const std::string &a_tag)
 Adds a PO VFS File.
bool removePoVfs (const std::string &a_vfs)
 Removes a PO VFS File.
bool setLanguage (const std::string &a_language)
 Sets the Language to be used.
const std::string & getLanguage () const
 Gets the Currently set Language.
std::string getTranslation (const std::string &a_original)
 Gets the translation given a original string.
const std::set< std::string > & getTranslationLanguageList ()
 Gets list of translations available.
std::string getTranslationXML (const std::string &a_tag)
 List of translations for a given tag.

Detailed Description

Manages translation files.


Member Function Documentation

bool Tonido::Util::PoManager::addMasterPoVfs ( const std::string &  a_vfs,
const std::string &  a_tag 
)

Adds a Master PO VFS File.

Parameters:
a_vfsA BootVFS containing language files
Returns:
true on success, false on failure
bool Tonido::Util::PoManager::addPoVfs ( const std::string &  a_vfs,
const std::string &  a_tag 
)

Adds a PO VFS File.

Parameters:
a_vfsA BootVFS containing language files
Returns:
true on success, false on failure
const std::string & Tonido::Util::PoManager::getLanguage ( ) const

Gets the Currently set Language.

Returns:
the currently set language
std::string Tonido::Util::PoManager::getTranslation ( const std::string &  a_original)

Gets the translation given a original string.

Parameters:
a_originaloriginal string to translate
Returns:
the translated string
std::string Tonido::Util::PoManager::getTranslationXML ( const std::string &  a_tag)

List of translations for a given tag.

Parameters:
a_tagxml translations string for given tag
Returns:
the translated strings in XML
bool Tonido::Util::PoManager::removePoVfs ( const std::string &  a_vfs)

Removes a PO VFS File.

Parameters:
a_vfsA BootVFS to be removed
Returns:
true on success, false otherwise
bool Tonido::Util::PoManager::setLanguage ( const std::string &  a_language)

Sets the Language to be used.

Parameters:
a_languagelanguage to be used
Returns:
true on success, false otherwise

Generated on Wed Oct 12 2011 21:46:54. © CodeLathe LLC 2007-2011. All Rights Reserved.