summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-25 06:47:01 +0800
committerjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-25 06:47:01 +0800
commitd5b5d39d9d9e657c11cf937db215aad22c998255 (patch)
tree727a2b52b5f6a8851cc37d4a2b2cb1ac74c14e1a
parent267f536b17c8ed2f8d0f924502083504fd2d326a (diff)
downloadpttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.tar
pttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.tar.gz
pttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.tar.bz2
pttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.tar.lz
pttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.tar.xz
pttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.tar.zst
pttbbs-d5b5d39d9d9e657c11cf937db215aad22c998255.zip
git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1847 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/pttstruct.h6
-rw-r--r--mbbsd/Makefile2
-rw-r--r--mbbsd/i18n.c6
3 files changed, 10 insertions, 4 deletions
diff --git a/include/pttstruct.h b/include/pttstruct.h
index eafc8636..58c45588 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -427,10 +427,10 @@ typedef struct {
#ifdef I18N
/* i18n(internationlization) */
- char *i18nstrptr[MAX_LANG][MAX_STRING];
- char i18nstrbody[16 * MAX_LANG * MAX_STRING];
+ const char *i18nstr[MAX_LANG][MAX_STRING];
+ char i18nstrbody[20 * MAX_LANG * MAX_STRING];
/* Based on the statistis, we found the lengh of one string
- is 16 bytes approximately.
+ is 20 bytes approximately.
*/
#endif
} SHM_t;
diff --git a/mbbsd/Makefile b/mbbsd/Makefile
index 1a078380..777dfdbe 100644
--- a/mbbsd/Makefile
+++ b/mbbsd/Makefile
@@ -13,7 +13,7 @@ OBJS= admin.o announce.o args.o assess.o bbs.o board.o cache.o cal.o card.o\
gomo.o guess.o indict.o io.o kaede.o lovepaper.o mail.o mbbsd.o menu.o\
more.o name.o osdep.o othello.o page.o read.o record.o\
register.o screen.o stuff.o talk.o term.o topsong.o user.o brc.o\
- vice.o vote.o xyz.o voteboard.o syspost.o var.o passwd.o calendar.o
+ vice.o vote.o xyz.o voteboard.o syspost.o var.o passwd.o calendar.o i18n.o
.SUFFIXES: .c .o
.c.o: ../include/var.h
diff --git a/mbbsd/i18n.c b/mbbsd/i18n.c
new file mode 100644
index 00000000..91403612
--- /dev/null
+++ b/mbbsd/i18n.c
@@ -0,0 +1,6 @@
+#include "bbs.h"
+
+#ifdef I18N
+void load_i18nstring() {
+}
+#endif