i18n.h
Go to the documentation of this file.
/*********************************************************
* Copyright (C) 2010-2016 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
* by the Free Software Foundation version 2.1 and no later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public
* License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
*********************************************************/
#ifndef _I18N_H_
#define _I18N_H_
#include <glib.h>
/*
* Copied from msgid.h to avoid exposing VMware internal headers. Don't
* change these values. Ever.
*/
#define MSG_MAGIC "@&!*@*@"
#define MSG_MAGIC_LEN 7
#define MSGID(id) MSG_MAGIC "(" #id ")"
#define SU_(msgid, en) VMTools_GetString(VMW_TEXT_DOMAIN, MSGID(msgid) en)
#if defined(_WIN32)
# define SW_(msgid, en) VMTools_GetUtf16String(VMW_TEXT_DOMAIN, MSGID(msgid) en)
#endif
G_BEGIN_DECLS
void
VMTools_BindTextDomain(const char *domain,
const char *locale,
const char *catdir);
const char *
VMTools_GetString(const char *domain,
const char *msgid);
#if defined(_WIN32)
const wchar_t *
VMTools_GetUtf16String(const char *domain,
const char *msgid);
#endif
G_END_DECLS
#endif /* _I18N_H_ */
VMTools_GetString
const char * VMTools_GetString(const char *domain, const char *msgid)
Definition: i18n.c:803
VMTools_BindTextDomain
G_BEGIN_DECLS void VMTools_BindTextDomain(const char *domain, const char *locale, const char *catdir)
Definition: i18n.c:709