8 #ifdef CNOID_GETTEXT_DOMAIN_NAME 9 #undef CNOID_GETTEXT_DOMAIN_NAME 11 #define CNOID_GETTEXT_DOMAIN_NAME "CnoidBase-1.5" 17 #include <boost/format.hpp> 19 inline boost::format
fmt(
const char* f_string) {
20 boost::format f(f_string);
21 f.exceptions(boost::io::no_error_bits);
24 inline boost::format
fmt(
const std::string& f_string) {
25 boost::format f(f_string);
26 f.exceptions(boost::io::no_error_bits);
31 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) 32 # ifdef CnoidUtil_EXPORTS 33 __declspec(dllexport)
const char*
getText(
const char* domainname,
const char* msgid);
35 __declspec(dllimport)
const char*
getText(
const char* domainname,
const char* msgid);
38 const char*
getText(
const char* domainname,
const char* msgid);
43 #define CNOID_ENABLE_GETTEXT 1 45 #if CNOID_ENABLE_GETTEXT 49 #ifdef CNOID_USE_GETTEXT_WRAPPER 50 #define _(text) cnoid::getText(CNOID_GETTEXT_DOMAIN_NAME, text) 52 #define _(text) dgettext(CNOID_GETTEXT_DOMAIN_NAME, text) 55 #define N_(string) string 60 inline const char* bindtextdomain(
const char* domainname,
const char* dirname) {
63 inline const char* dgettext(
const char* domainname,
const char* msgid){
68 #define _(string) string 69 #define N_(string) string Defines the minimum processing for performing pasing file for STL.
Definition: AbstractSceneLoader.h:9
boost::format fmt(const char *f_string)
Definition: Util/gettext.h:19
const char * getText(const char *domainname, const char *msgid)
Definition: GettextWrapper.cpp:13