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
00053 #include <glib.h>
00054
00055
00056
00057
00058
00059 #define MSG_MAGIC "@&!*@*@"
00060 #define MSG_MAGIC_LEN 7
00061 #define MSGID(id) MSG_MAGIC "(" #id ")"
00062
00071 #define SU_(msgid, en) VMTools_GetString(VMW_TEXT_DOMAIN, MSGID(msgid) en)
00072
00073 #if defined(_WIN32)
00074
00082 # define SW_(msgid, en) VMTools_GetUtf16String(VMW_TEXT_DOMAIN, MSGID(msgid) en)
00083 #endif
00084
00085 G_BEGIN_DECLS
00086
00087 void
00088 VMTools_BindTextDomain(const char *domain,
00089 const char *locale,
00090 const char *catdir);
00091
00092 const char *
00093 VMTools_GetString(const char *domain,
00094 const char *msgid);
00095
00096 #if defined(_WIN32)
00097 const wchar_t *
00098 VMTools_GetUtf16String(const char *domain,
00099 const char *msgid);
00100 #endif
00101
00102 G_END_DECLS
00103
00106 #endif
00107