1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/chinese/pine4/files/patch-be
Steve Price 965c27e236 Update to version 4.21.
PR:		14994
Submitted by:	maintainer
1999-12-27 00:58:54 +00:00

85 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

--- pine/newmail.c.orig Tue Nov 2 08:13:10 1999
+++ pine/newmail.c Fri Nov 19 16:18:24 1999
@@ -318,24 +318,15 @@
ENVELOPE *e;
char subject[200], from[2*MAX_SCREEN_COLS],
intro[MAX_SCREEN_COLS+1];
- static char *carray[] = { "regarding",
- "concerning",
- "about",
- "as to",
- "as regards",
- "as respects",
- "in re",
- "re",
- "respecting",
- "in point of",
- "with regard to",
- "subject:"
+ static char *carray[] = { "關於",
+ "有關",
+ "標題為:"
};
e = mail_fetchstructure(stream, max_num, NULL);
if(e && e->from){
- sprintf(from, " %srom ", (number > 1L) ? "Most recent f" : "F");
+ sprintf(from, " %srom ", (number > 1L) ? "最近來" : "來");
if(e->from->personal)
istrncpy(from + ((number > 1L) ? 18 : 6),
(char *) rfc1522_decode((unsigned char *) tmp_20k_buf,
@@ -352,13 +343,13 @@
if(number <= 1L) {
if(e && e->subject){
- sprintf(subject, " %s ", carray[(unsigned)random()%12]);
+ sprintf(subject, " %s ", carray[(unsigned)random()%2]);
istrncpy(subject + strlen(subject),
(char *) rfc1522_decode((unsigned char *) tmp_20k_buf,
e->subject, NULL), 100);
}
else
- strcpy(subject, " with no subject");
+ strcpy(subject, " 沒有主題");
if(!from[0])
subject[1] = toupper((unsigned char)subject[1]);
@@ -368,29 +359,29 @@
if(!folder) {
if(number > 1)
- sprintf(intro, "%ld new messages!", number);
+ sprintf(intro, "%ld 封新信件!", number);
else
- sprintf(intro, "New mail%s!",
- (e && address_is_us(e->to, ps_global)) ? " to you" : "");
+ sprintf(intro, "%s新信",
+ (e && address_is_us(e->to, ps_global)) ? "您有" : "");
}
else {
long fl, tot, newfl;
if(number > 1)
- sprintf(intro, "%ld messages saved to folder \"%s\"", number,
+ sprintf(intro, "%ld 封信件被存至資料匣 \"%s\"", number,
folder);
else
- sprintf(intro, "Mail saved to folder \"%s\"", folder);
+ sprintf(intro, "信件被存至資料匣 \"%s\"", folder);
if((fl=strlen(folder)) > 10 &&
(tot=strlen(intro) + strlen(from) + strlen(subject)) >
ps_global->ttyo->screen_cols - 2){
newfl = max(10, fl-(tot-(ps_global->ttyo->screen_cols - 2)));
if(number > 1)
- sprintf(intro, "%ld messages saved to folder \"...%s\"", number,
+ sprintf(intro, "%ld 封信件被存至資料匣 \"...%s\"", number,
folder+(fl-(newfl-3)));
else
- sprintf(intro, "Mail saved to folder \"...%s\"",
+ sprintf(intro, "信件被存至資料匣 \"...%s\"",
folder+(fl-(newfl-3)));
}
}