diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 4 | ||||
-rw-r--r-- | include/proto.h | 5 | ||||
-rw-r--r-- | include/pttstruct.h | 2 |
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. |