summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-24 22:11:55 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-24 22:11:55 +0200
commit5b30291785e6b9be1a607504c14bd03c601b59a6 (patch)
tree86e6c5c0cf7090f485392cfecb80b43602a8b0cd /src/channel.c
parentba2099034f92a2814494f37bddb0c57d034401b4 (diff)
downloadvim-git-5b30291785e6b9be1a607504c14bd03c601b59a6.tar.gz
patch 7.4.2250v7.4.2250
Problem: Some error message cannot be translated. Solution: Enclose them in _() and N_(). (Dominique Pelle)
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/channel.c b/src/channel.c
index 5ee05e333..443524885 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -702,7 +702,7 @@ channel_open(
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;
}
@@ -729,7 +729,7 @@ channel_open(
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;
}
@@ -2070,7 +2070,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
{
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;
@@ -2129,13 +2129,13 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
{
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
{
@@ -2195,7 +2195,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
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);
}
}
@@ -3382,7 +3382,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
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;
@@ -3407,7 +3407,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
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;