summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-26 11:46:43 +0800
committerjack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-26 11:46:43 +0800
commit4a0d96299cb75a5a322395d9de79d171e3b2233e (patch)
tree19bc59281d1eb7bd07b29a183fe88fea9a7f72d1 /include
parent4ef61e4763bd25bbb78a76180252df22f3af42a7 (diff)
downloadpttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.tar
pttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.tar.gz
pttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.tar.bz2
pttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.tar.lz
pttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.tar.xz
pttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.tar.zst
pttbbs-4a0d96299cb75a5a322395d9de79d171e3b2233e.zip
add i18n prototype to proto.h
git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1859 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'include')
-rw-r--r--include/config.h4
-rw-r--r--include/proto.h5
-rw-r--r--include/pttstruct.h2
3 files changed, 10 insertions, 1 deletions
diff --git a/include/config.h b/include/config.h
index 5f9a5a73..8e280dbd 100644
--- a/include/config.h
+++ b/include/config.h
@@ -33,6 +33,10 @@
#define MAX_STRING (8000) /* 系統最多使用字串 */
#endif
+#ifndef LANG_FILE
+#define LANG_FILE "lang.big5" /* 預設語言檔 */
+#endif
+
#ifndef MAX_POST_MONEY /* 發表文章稿費的上限 */
#define MAX_POST_MONEY 100
#endif
diff --git a/include/proto.h b/include/proto.h
index b3fed5a6..9dc35bc6 100644
--- a/include/proto.h
+++ b/include/proto.h
@@ -677,4 +677,9 @@ void touchbtotal(int bid);
/* util_cache.c */
void reload_pttcache(void);
+#ifdef I18N
+/* i18n.c */
+void load_i18nstring(void);
+#endif
+
#endif
diff --git a/include/pttstruct.h b/include/pttstruct.h
index e436defd..07f7a6e9 100644
--- a/include/pttstruct.h
+++ b/include/pttstruct.h
@@ -428,7 +428,7 @@ typedef struct {
#ifdef I18N
/* i18n(internationlization) */
- const char *i18nstr[MAX_LANG][MAX_STRING];
+ 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 20 bytes approximately.