added libintl for localization
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4628 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#endif
|
||||
|
||||
#include <zlib.h>
|
||||
#include <libintl.h>
|
||||
#include <enet/enet.h>
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
@@ -638,6 +638,8 @@ inline char *newstring(const char *s) { return newstring(s, strlen(s))
|
||||
inline char *newstringbuf() { return newstring(_MAXDEFSTR-1); }
|
||||
inline char *newstringbuf(const char *s) { return newstring(s, _MAXDEFSTR-1); }
|
||||
|
||||
#define _(STRING) gettext(STRING)
|
||||
|
||||
extern const char *timestring(bool local = false, const char *fmt = NULL);
|
||||
extern const char *asctime();
|
||||
extern const char *numtime();
|
||||
|
||||
Reference in New Issue
Block a user