diff options
author | jack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-12 12:32:30 +0800 |
---|---|---|
committer | jack <jack@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-05-12 12:32:30 +0800 |
commit | 3535d2d6ca3468683b29f6477aae8b91759affe3 (patch) | |
tree | 7adc66ebab6e850ce58840d1a89d21c208346967 /mbbsd/talk.c | |
parent | e7e72e99df864c3738bc7ce8349ea35ccdd6397f (diff) | |
download | pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.tar pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.tar.gz pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.tar.bz2 pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.tar.lz pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.tar.xz pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.tar.zst pttbbs-3535d2d6ca3468683b29f6477aae8b91759affe3.zip |
Replaced var.c to i18n version, also slightly modified user.c cal.c menu.c mbbsd.c admin.c talk.c
git-svn-id: http://opensvn.csie.org/pttbbs/branches/Jaky.i18n@1950 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/talk.c')
-rw-r--r-- | mbbsd/talk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 8c0c2ec3..f8bd81f1 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -86,9 +86,9 @@ modestring(userinfo_t * uentp, int simple) /* for debugging */ if (mode >= MAX_MODES) { syslog(LOG_WARNING, "what!? mode = %d", mode); - word = ModeTypeTable[mode % MAX_MODES]; + word = SHM->i18nstr[cuser.language][ModeTypeTable[mode % MAX_MODES]]; } else - word = ModeTypeTable[mode]; + word = SHM->i18nstr[cuser.language][ModeTypeTable[mode]]; fri_stat = friend_stat(currutmp, uentp); if (!(HAS_PERM(PERM_SYSOP) || HAS_PERM(PERM_SEECLOAK)) && ((uentp->invisible || (fri_stat & HRM)) && @@ -96,8 +96,8 @@ modestring(userinfo_t * uentp, int simple) return notonline; else if (mode == EDITING) { snprintf(modestr, sizeof(modestr), "E:%s", - ModeTypeTable[uentp->destuid < EDITING ? uentp->destuid : - EDITING]); + SHM->i18nstr[cuser.language][ModeTypeTable[uentp->destuid < EDITING ? uentp->destuid : + EDITING]]); word = modestr; } else if (!mode && *uentp->chatid == 1) { if (!simple) |