Commit 3c7df9f5 authored by Thomas Roessler's avatar Thomas Roessler

patch-0.95.6.gettext.1.gz, from Gero Treuner.

parent e271dc4d
......@@ -47,30 +47,35 @@
#include <sys/stat.h>
#include <errno.h>
static const char No_mailbox_is_open[] = N_("No mailbox is open.");
static const char There_are_no_messages[] = N_("There are no messages.");
static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not permitted in attach-message mode.");
#define CHECK_MSGCOUNT if (!Context) \
{ \
mutt_flushinp (); \
mutt_error _("No mailbox is open."); \
mutt_error _(No_mailbox_is_open); \
break; \
} \
else if (!Context->msgcount) \
{ \
mutt_flushinp (); \
mutt_error _("There are no messages."); \
mutt_error _(There_are_no_messages); \
break; \
}
#define CHECK_READONLY if (Context->readonly) \
{ \
mutt_flushinp (); \
mutt_error _("Mailbox is read-only."); \
mutt_error _(Mailbox_is_read_only); \
break; \
}
#define CHECK_ATTACH if(option(OPTATTACHMSG)) \
{\
mutt_flushinp (); \
mutt_error ("Function not permitted in attach-message mode."); \
mutt_error _(Function_not_permitted_in_attach_message_mode); \
break; \
}
......
......@@ -51,24 +51,28 @@
#define IsAttach(x) (x && (x)->bdy)
#define IsHeader(x) (x && (x)->hdr)
static const char Not_available_in_this_menu[] = N_("Not available in this menu.");
static const char Mailbox_is_read_only[] = N_("Mailbox is read-only.");
static const char Function_not_permitted_in_attach_message_mode[] = N_("Function not permitted in attach-message mode.");
#define CHECK_MODE(x) if (!(x)) \
{ \
mutt_flushinp (); \
mutt_error _("Not available in this menu."); \
mutt_error _(Not_available_in_this_menu); \
break; \
}
#define CHECK_READONLY if (Context->readonly) \
{ \
mutt_flushinp (); \
mutt_error _("Mailbox is read-only."); \
mutt_error _(Mailbox_is_read_only); \
break; \
}
#define CHECK_ATTACH if(option(OPTATTACHMSG)) \
{\
mutt_flushinp (); \
mutt_error _("Function not permitted in attach-message mode."); \
mutt_error _(Function_not_permitted_in_attach_message_mode); \
break; \
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment