00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _I18N_H_
00020 #define _I18N_H_
00021
00050 #include <glib.h>
00051
00052
00053
00054
00055
00056 #define MSG_MAGIC "@&!*@*@"
00057 #define MSG_MAGIC_LEN 7
00058 #define MSGID(id) MSG_MAGIC "(" #id ")"
00059
00068 #define SU_(msgid, en) VMTools_GetString(VMW_TEXT_DOMAIN, MSGID(msgid) en)
00069
00070 #if defined(_WIN32)
00071
00079 # define SW_(msgid, en) VMTools_GetUtf16String(VMW_TEXT_DOMAIN, MSGID(msgid) en)
00080 #endif
00081
00082 G_BEGIN_DECLS
00083
00084 void
00085 VMTools_BindTextDomain(const char *domain,
00086 const char *locale,
00087 const char *catdir);
00088
00089 const char *
00090 VMTools_GetString(const char *domain,
00091 const char *msgid);
00092
00093 #if defined(_WIN32)
00094 const wchar_t *
00095 VMTools_GetUtf16String(const char *domain,
00096 const char *msgid);
00097 #endif
00098
00099 G_END_DECLS
00100
00103 #endif
00104