From e2a6b4b4502bd8926777c9b17747e65528422464 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 6 Sep 2009 13:38:14 +0000 Subject: * refine message with quantity git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4813 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/common.h | 1 + mbbsd/chat.c | 3 ++- mbbsd/talk.c | 4 ++-- mbbsd/user.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/include/common.h b/include/common.h index 6e25ce2b..59316fb3 100644 --- a/include/common.h +++ b/include/common.h @@ -116,6 +116,7 @@ #define STR_POST2 "站內:" #define STR_LOGINDAYS "登入次數" +#define STR_LOGINDAYS_QTY "次" /* AIDS */ #define AID_DISPLAYNAME "文章代碼(AID)" diff --git a/mbbsd/chat.c b/mbbsd/chat.c index fcf63144..9ce7d6c3 100644 --- a/mbbsd/chat.c +++ b/mbbsd/chat.c @@ -204,7 +204,8 @@ chat_query(char *arg) char buf[ANSILINELEN], *ptr; FILE *fp; - snprintf(buf, sizeof(buf), "%s(%s) " STR_LOGINDAYS " %d ,發表過 %d 篇文章", + snprintf(buf, sizeof(buf), + "%s(%s) " STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY ",發表過 %d 篇文章", xuser.userid, xuser.nickname, xuser.numlogindays, xuser.numposts); printchatline(buf); diff --git a/mbbsd/talk.c b/mbbsd/talk.c index 2ed5b5c8..b11799c5 100644 --- a/mbbsd/talk.c +++ b/mbbsd/talk.c @@ -471,7 +471,7 @@ my_query(const char *uident) // ------------------------------------------------------------ - prints("《" STR_LOGINDAYS "》%d ", muser.numlogindays); + prints("《" STR_LOGINDAYS "》%d " STR_LOGINDAYS_QTY, muser.numlogindays); #ifdef SHOW_LOGINOK if (!(muser.userlevel & PERM_LOGINOK)) outs(" (尚未通過認證)"); @@ -3307,7 +3307,7 @@ talkreply(void) strlcpy(currutmp->msgs[0].last_call_in, "呼叫、呼叫,聽到請回答 (Ctrl-R)", sizeof(currutmp->msgs[0].last_call_in)); currutmp->msgs[0].msgmode = MSGMODE_TALK; - prints("對方來自 [%s]," STR_LOGINDAYS " %d ,文章共 %d 篇\n", + prints("對方來自 [%s]," STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY ",文章共 %d 篇\n", uip->from, xuser.numlogindays, xuser.numposts); if (is_chess) diff --git a/mbbsd/user.c b/mbbsd/user.c index 5f94c135..e1d6dc26 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -173,7 +173,7 @@ user_display(const userec_t * u, int adminmode) prints("\t\t認證資料: %s\n", u->justify); } - prints("\t\t上站文章: " STR_LOGINDAYS " %d / 文章 %d 篇\n", + prints("\t\t上站文章: " STR_LOGINDAYS " %d " STR_LOGINDAYS_QTY "/ 文章 %d 篇\n", u->numlogindays, u->numposts); sethomedir(genbuf, u->userid); -- cgit v1.2.3