summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-06 21:38:14 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2009-09-06 21:38:14 +0800
commite2a6b4b4502bd8926777c9b17747e65528422464 (patch)
tree13e3da9497952ea312802beab4a4ae0ccd32abbb
parent2eb5731c5011ca46377f4301965c15cf7750b49a (diff)
downloadpttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.tar
pttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.tar.gz
pttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.tar.bz2
pttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.tar.lz
pttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.tar.xz
pttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.tar.zst
pttbbs-e2a6b4b4502bd8926777c9b17747e65528422464.zip
* refine message with quantity
git-svn-id: http://opensvn.csie.org/pttbbs/branches/pttbbs.pwcu@4813 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--include/common.h1
-rw-r--r--mbbsd/chat.c3
-rw-r--r--mbbsd/talk.c4
-rw-r--r--mbbsd/user.c2
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);