if ((host = gethostbyname(hostname)) == NULL)
{
ch_error(channel, "in gethostbyname() in channel_open()");
- PERROR("E901: gethostbyname() in channel_open()");
+ PERROR(_("E901: gethostbyname() in channel_open()"));
channel_free(channel);
return NULL;
}
if (sd == -1)
{
ch_error(channel, "in socket() in channel_open().");
- PERROR("E898: socket() in channel_open()");
+ PERROR(_("E898: socket() in channel_open()"));
channel_free(channel);
return NULL;
}
{
ch_error(channel, "received command with non-string argument");
if (p_verbose > 2)
- EMSG("E903: received command with non-string argument");
+ EMSG(_("E903: received command with non-string argument"));
return;
}
arg = argv[1].vval.v_string;
{
ch_error(channel, "last argument for expr/call must be a number");
if (p_verbose > 2)
- EMSG("E904: last argument for expr/call must be a number");
+ EMSG(_("E904: last argument for expr/call must be a number"));
}
else if (is_call && argv[2].v_type != VAR_LIST)
{
ch_error(channel, "third argument for call must be a list");
if (p_verbose > 2)
- EMSG("E904: third argument for call must be a list");
+ EMSG(_("E904: third argument for call must be a list"));
}
else
{
else if (p_verbose > 2)
{
ch_errors(channel, "Received unknown command: %s", (char *)cmd);
- EMSG2("E905: received unknown command: %s", cmd);
+ EMSG2(_("E905: received unknown command: %s"), cmd);
}
}
if (!channel->ch_error && fun != NULL)
{
ch_errors(channel, "%s(): write while not connected", fun);
- EMSG2("E630: %s(): write while not connected", fun);
+ EMSG2(_("E630: %s(): write while not connected"), fun);
}
channel->ch_error = TRUE;
return FAIL;
if (!channel->ch_error && fun != NULL)
{
ch_errors(channel, "%s(): write failed", fun);
- EMSG2("E631: %s(): write failed", fun);
+ EMSG2(_("E631: %s(): write failed"), fun);
}
channel->ch_error = TRUE;
return FAIL;
return;
if (id >= 1 && id <= 3)
{
- EMSGN("E798: ID is reserved for \":match\": %ld", id);
+ EMSGN(_("E798: ID is reserved for \":match\": %ld"), id);
return;
}
/* id == 3 is ok because matchaddpos() is supposed to substitute :3match */
if (id == 1 || id == 2)
{
- EMSGN("E798: ID is reserved for \":match\": %ld", id);
+ EMSGN(_("E798: ID is reserved for \":match\": %ld"), id);
return;
}
return -1;
if (id < -1 || id == 0)
{
- EMSGN("E799: Invalid ID: %ld (must be greater than or equal to 1)", id);
+ EMSGN(_("E799: Invalid ID: %ld (must be greater than or equal to 1)"), id);
return -1;
}
if (id != -1)
{
if (cur->id == id)
{
- EMSGN("E801: ID already taken: %ld", id);
+ EMSGN(_("E801: ID already taken: %ld"), id);
return -1;
}
cur = cur->next;
if (id < 1)
{
if (perr == TRUE)
- EMSGN("E802: Invalid ID: %ld (must be greater than or equal to 1)",
+ EMSGN(_("E802: Invalid ID: %ld (must be greater than or equal to 1)"),
id);
return -1;
}
if (cur == NULL)
{
if (perr == TRUE)
- EMSGN("E803: ID not found: %ld", id);
+ EMSGN(_("E803: ID not found: %ld"), id);
return -1;
}
if (cur == prev)