#include <translator.hpp>
Definition at line 17 of file translator.hpp.
qi::Translator::Translator |
( |
const std::string & |
name | ) |
|
qi::Translator::~Translator |
( |
| ) |
|
qi::Translator::addDomain |
( |
const std::string & |
domain | ) |
|
Add a new dicationary of messages.
- Parameters
-
qi::Translator::setCurrentLocale |
( |
const std::string & |
locale | ) |
|
Change the locale at runtime.
- Parameters
-
locale | Locale name formatted as xx_XX (country and language code). |
qi::Translator::setDefaultDomain |
( |
const std::string & |
domain | ) |
|
Set the default Domain.
- Parameters
-
qi::Translator::translate |
( |
const std::string & |
msg, |
|
|
const std::string & |
domain = "" , |
|
|
const std::string & |
locale = "" |
|
) |
| |
Translate a message.
- Parameters
-
message | Message |
domain | Domain name |
locale | Locale name |
- Returns
- The translated message
The documentation for this class was generated from the following files: