7 #ifndef _QI_TRANSLATOR_HPP_
8 #define _QI_TRANSLATOR_HPP_
10 # include <boost/noncopyable.hpp>
16 class TranslatorPrivate;
23 std::string translate(
const std::string &msg,
24 const std::string &domain =
"",
25 const std::string &locale =
"");
27 void setCurrentLocale(
const std::string &locale);
28 void setDefaultDomain(
const std::string &domain);
29 void addDomain(
const std::string &domain);
32 TranslatorPrivate *_p;
37 QI_API std::string
tr(
const std::string &msg,
38 const std::string &domain =
"",
39 const std::string &locale =
"");
49 #endif // _QI_TRANSLATOR_HPP_
void removeDomainPath(const std::string &path)
qi::Translator & defaultTranslator(const std::string &name)
Get a reference on the default Translator.
std::string tr(const std::string &msg, const std::string &domain="", const std::string &locale="")
Translate a message.
void addDomainPath(const std::string &path)
dll import/export and compiler message