From 3535d2d6ca3468683b29f6477aae8b91759affe3 Mon Sep 17 00:00:00 2001 From: jack Date: Wed, 12 May 2004 04:32:30 +0000 Subject: 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 --- mbbsd/talk.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mbbsd/talk.c') 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) -- cgit v1.2.3