Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
60692c04
...
60692c0414ecdff092605ca29b93260a5d82db16
authored
2002-12-27 15:35:06 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use ngettext
1 parent
45df8bce
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
frm/frm.c
mail/quit.c
mail/summary.c
frm/frm.c
View file @
60692c0
...
...
@@ -403,8 +403,9 @@ cleanup:
cleanup1:
if
(
show_summary
)
printf
(
total
==
1
?
_
(
"You have %d message.
\n
"
)
:
_
(
"You have %d messages.
\n
"
),
printf
(
ngettext
(
"You have %d message.
\n
"
,
"You have %d messages.
\n
"
,
total
),
total
);
if
(
show_query
&&
have_new_mail
)
printf
(
_
(
"You have new mail.
\n
"
));
...
...
mail/quit.c
View file @
60692c0
...
...
@@ -47,8 +47,10 @@ mail_mbox_close ()
mailbox_get_url
(
mbox
,
&
url
);
mailbox_messages_count
(
mbox
,
&
held_count
);
fprintf
(
ofile
,
held_count
==
1
?
_
(
"Held %d message in %s
\n
"
)
:
_
(
"Held %d messages in %s
\n
"
),
fprintf
(
ofile
,
ngettext
(
"Held %d message in %s
\n
"
,
"Held %d messages in %s
\n
"
,
held_count
),
held_count
,
url_to_string
(
url
));
mailbox_close
(
mbox
);
mailbox_destroy
(
&
mbox
);
...
...
@@ -125,8 +127,10 @@ mail_mbox_commit ()
url_t
u
=
NULL
;
mailbox_get_url
(
dest_mbox
,
&
u
);
fprintf
(
ofile
,
saved_count
==
1
?
_
(
"Saved %d message in %s
\n
"
)
:
_
(
"Saved %d messages in %s
\n
"
),
fprintf
(
ofile
,
ngettext
(
"Saved %d message in %s
\n
"
,
"Saved %d messages in %s
\n
"
,
saved_count
),
saved_count
,
url_to_string
(
u
));
mailbox_close
(
dest_mbox
);
mailbox_destroy
(
&
dest_mbox
);
...
...
mail/summary.c
View file @
60692c0
...
...
@@ -63,7 +63,7 @@ mail_summary (int argc, char **argv)
mailbox_get_url
(
mbox
,
&
url
);
printf
(
"
\"
%s
\"
: "
,
url_to_string
(
url
));
}
printf
(
"%d %s"
,
count
,
count
==
1
?
_
(
"message"
)
:
_
(
"messages"
)
);
printf
(
ngettext
(
"%d message"
,
"%d messages"
,
count
),
count
);
if
(
mnew
>
0
)
printf
(
_
(
" %d new"
),
mnew
);
if
(
mseen
>
0
)
...
...
Please
register
or
sign in
to post a comment