?? gsm_nls.h
字號(hào):
// *************************************************************************
// * GSM TA/ME library
// *
// * File: gsm_nls.h
// *
// * Purpose: Groups macros, initialization and includes
// * for National Language Support (NLS)
// *
// * Warning: Only include this header from gsmlib .cc-files
// *
// * Author: Peter Hofmann (software@pxh.de)
// *
// * Created: 3.11.1999
// *************************************************************************
#ifndef GSM_NLS_H
#define GSM_NLS_H
#ifdef HAVE_CONFIG_H
#include <gsm_config.h>
#endif
#ifdef ENABLE_NLS
#ifdef HAVE_LIBINTL_H
#include <libintl.h>
#else
#include "../intl/libintl.h"
#endif
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
#define _(String) dgettext(PACKAGE, String)
// this causes automatic NLS initialization if one file of the library
// includes gsm_nls.h
namespace gsmlib
{
const class InitNLS
{
static bool initialized;
public:
InitNLS()
{
if (! initialized) // do only once
{
setlocale(LC_ALL, "");
#ifdef LOCAL_TRANSLATIONS
bindtextdomain(PACKAGE, "../po");
#else
bindtextdomain(PACKAGE, LOCALEDIR);
#endif
textdomain(PACKAGE);
initialized = true;
}
}
} initNLS;
};
#else
#define _(String) (String)
#endif // ENABLE_NLS
#define N_(String) (String)
#endif // GSM_NLS_H
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -