summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-09-09 16:17:22 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2014-09-09 16:17:22 +0800
commit300810121e0378048433fbb92b9c9faab40c6ad8 (patch)
tree551c6f25a3ddc1cd93497cf7964ab9d2f5b9e058
parent759afece54dd57dd18825e07b0771549fa3add65 (diff)
downloadpttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.tar
pttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.tar.gz
pttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.tar.bz2
pttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.tar.lz
pttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.tar.xz
pttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.tar.zst
pttbbs-300810121e0378048433fbb92b9c9faab40c6ad8.zip
Revise editor SAVE messages.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@6071 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--pttbbs/mbbsd/edit.c28
1 files changed, 20 insertions, 8 deletions
diff --git a/pttbbs/mbbsd/edit.c b/pttbbs/mbbsd/edit.c
index 806f8ee2..536472e2 100644
--- a/pttbbs/mbbsd/edit.c
+++ b/pttbbs/mbbsd/edit.c
@@ -1917,14 +1917,26 @@ write_file(const char *fpath, int saveheader, int *islocal, char mytitle[STRLEN]
upload = 1;
#endif // EDIT_UPLOAD_ALLOWALL
- // common trail
- if (flags & EDITFLAG_ALLOW_LOCAL) {
- if (local_article)
- outs("[L]儲存 (S)儲存+轉信");
- else
- outs("[S]儲存+轉信 (L)儲存");
- } else {
- outs("[S]儲存");
+ {
+ const char *msgSave = "儲存";
+
+ if (flags & (EDITFLAG_KIND_NEWPOST |
+ EDITFLAG_KIND_REPLYPOST)) {
+ msgSave = "發文";
+ } else if (flags & (EDITFLAG_KIND_SENDMAIL |
+ EDITFLAG_KIND_MAILLIST)) {
+ msgSave = "發信";
+ }
+
+ // common trail
+ if (flags & EDITFLAG_ALLOW_LOCAL) {
+ if (local_article)
+ prints("[L]%s (S)%s+轉信", msgSave, msgSave);
+ else
+ prints("[S]%s+轉信 (L)%s", msgSave, msgSave);
+ } else {
+ prints("[S]%s", msgSave);
+ }
}
#ifdef EXP_EDIT_UPLOAD