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:
driAn
2009-08-12 19:12:17 +00:00
parent 65f12de830
commit e7a3cc012b
5 changed files with 397 additions and 1 deletions
+1
View File
@@ -27,6 +27,7 @@
#endif
#include <zlib.h>
#include <libintl.h>
#include <enet/enet.h>
#ifdef WIN32
+2
View File
@@ -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();