7 #ifndef _QI_TRANSLATOR_HPP_
8 #define _QI_TRANSLATOR_HPP_
10 # include <boost/noncopyable.hpp>
17 class TranslatorPrivate;
43 std::string translate(
const std::string &msg,
44 const std::string &domain =
"",
45 const std::string &locale =
"",
46 const std::string &
context =
"");
55 std::string translateContext(
const std::string &msg,
63 void setCurrentLocale(
const std::string &locale);
69 void setDefaultDomain(
const std::string &domain);
75 void addDomain(
const std::string &domain);
78 TranslatorPrivate *_p;
92 QI_API std::string
tr(
const std::string &msg,
93 const std::string &domain =
"",
94 const std::string &locale =
"",
95 const std::string &
context =
"");
110 #endif // _QI_TRANSLATOR_HPP_
void addDomainPath(const std::string &path)
Localization of your source code.
qi::Translator & defaultTranslator(const std::string &name)
Get a reference on the default Translator.
dll import/export and compiler message
std::string tr(const std::string &msg, const std::string &domain="", const std::string &locale="", const std::string &context="")
Translate a message.
void removeDomainPath(const std::string &path)
std::string trContext(const std::string &msg, const std::string &context)
Translate a message with a specific context.
int context()
Get log context.