Choreonoid  1.8
Classes | Namespaces | Macros | Functions
GettextUtil.h File Reference
#include <cnoid/Config>
#include "exportdecl.h"

Go to the source code of this file.

Classes

class  cnoid::GettextDomainBinder
 

Namespaces

 cnoid
 

Macros

#define _(string)   string
 
#define N_(string)   string
 
#define CNOID_BIND_GETTEXT_DOMAN()   namespace { cnoid::GettextDomainBinder cnoidGettextDomainBinder(CNOID_GETTEXT_DOMAIN_NAME); }
 

Functions

const char * cnoid::bindtextdomain (const char *domainname, const char *dirname)
 
const char * cnoid::dgettext (const char *domainname, const char *msgid)
 
const char * cnoid::getText (const char *domainname, const char *msgid)
 
void cnoid::bindGettextDomain (const char *domainname)
 

Detailed Description

Author
Shin'ichiro Nakaoka
Note
This file can only be included from gettext.h defining CNOID_GETTEXT_DOMAIN_NAME

Macro Definition Documentation

◆ _

#define _ (   string)    string

◆ CNOID_BIND_GETTEXT_DOMAN

#define CNOID_BIND_GETTEXT_DOMAN ( )    namespace { cnoid::GettextDomainBinder cnoidGettextDomainBinder(CNOID_GETTEXT_DOMAIN_NAME); }

Implement this once in a shared library to bind a gettext domain. The "gettext.h" header must be included before using this macro.

◆ N_

#define N_ (   string)    string