Manages translation files. More...
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. | |
Manages translation files.
| bool Tonido::Util::PoManager::addMasterPoVfs | ( | const std::string & | a_vfs, |
| const std::string & | a_tag | ||
| ) |
Adds a Master PO VFS File.
| a_vfs | A BootVFS containing language files |
| bool Tonido::Util::PoManager::addPoVfs | ( | const std::string & | a_vfs, |
| const std::string & | a_tag | ||
| ) |
Adds a PO VFS File.
| a_vfs | A BootVFS containing language files |
| const std::string & Tonido::Util::PoManager::getLanguage | ( | ) | const |
Gets the Currently set Language.
| std::string Tonido::Util::PoManager::getTranslation | ( | const std::string & | a_original | ) |
Gets the translation given a original string.
| a_original | original string to translate |
| std::string Tonido::Util::PoManager::getTranslationXML | ( | const std::string & | a_tag | ) |
List of translations for a given tag.
| a_tag | xml translations string for given tag |
| bool Tonido::Util::PoManager::removePoVfs | ( | const std::string & | a_vfs | ) |
Removes a PO VFS File.
| a_vfs | A BootVFS to be removed |
| bool Tonido::Util::PoManager::setLanguage | ( | const std::string & | a_language | ) |
Sets the Language to be used.
| a_language | language to be used |