00001 /********************************************************* 00002 * Copyright (C) 2010-2016 VMware, Inc. All rights reserved. 00003 * 00004 * This program is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation version 2.1 and no later version. 00007 * 00008 * This program is distributed in the hope that it will be useful, but 00009 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 00010 * or FITNESS FOR A PARTICULAR PURPOSE. See the Lesser GNU General Public 00011 * License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public License 00014 * along with this program; if not, write to the Free Software Foundation, Inc., 00015 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 00016 * 00017 *********************************************************/ 00018 00019 #ifndef _I18N_H_ 00020 #define _I18N_H_ 00021 00050 #include <glib.h> 00051 00052 /* 00053 * Copied from msgid.h to avoid exposing VMware internal headers. Don't 00054 * change these values. Ever. 00055 */ 00056 #define MSG_MAGIC "@&!*@*@" #define MSG_MAGIC_LEN 7 #define MSGID(id) MSG_MAGIC "(" #id ")" 00057 00066 #define SU_(msgid, en) VMTools_GetString(VMW_TEXT_DOMAIN, MSGID(msgid) en) 00067 00068 #if defined(_WIN32) 00069 00077 # define SW_(msgid, en) VMTools_GetUtf16String(VMW_TEXT_DOMAIN, MSGID(msgid) en) 00078 #endif 00079 00080 G_BEGIN_DECLS 00081 00082 void 00083 VMTools_BindTextDomain(const char *domain, 00084 const char *locale, 00085 const char *catdir); 00086 00087 const char * 00088 VMTools_GetString(const char *domain, 00089 const char *msgid); 00090 00091 #if defined(_WIN32) 00092 const wchar_t * 00093 VMTools_GetUtf16String(const char *domain, 00094 const char *msgid); 00095 #endif 00096 00097 G_END_DECLS 00098 00101 #endif /* _I18N_H_ */ 00102 00103
1.5.6