@@ -723,7 +723,7 @@ channel_open(
723723 if ((host = gethostbyname (hostname )) == NULL )
724724 {
725725 ch_error (channel , "in gethostbyname() in channel_open()" );
726- PERROR ("E901: gethostbyname() in channel_open()" );
726+ PERROR (_ ( "E901: gethostbyname() in channel_open()" ) );
727727 channel_free (channel );
728728 return NULL ;
729729 }
@@ -750,7 +750,7 @@ channel_open(
750750 if (sd == -1 )
751751 {
752752 ch_error (channel , "in socket() in channel_open()." );
753- PERROR ("E898: socket() in channel_open()" );
753+ PERROR (_ ( "E898: socket() in channel_open()" ) );
754754 channel_free (channel );
755755 return NULL ;
756756 }
@@ -2091,7 +2091,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
20912091 {
20922092 ch_error (channel , "received command with non-string argument" );
20932093 if (p_verbose > 2 )
2094- EMSG ("E903: received command with non-string argument" );
2094+ EMSG (_ ( "E903: received command with non-string argument" ) );
20952095 return ;
20962096 }
20972097 arg = argv [1 ].vval .v_string ;
@@ -2150,13 +2150,13 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
21502150 {
21512151 ch_error (channel , "last argument for expr/call must be a number" );
21522152 if (p_verbose > 2 )
2153- EMSG ("E904: last argument for expr/call must be a number" );
2153+ EMSG (_ ( "E904: last argument for expr/call must be a number" ) );
21542154 }
21552155 else if (is_call && argv [2 ].v_type != VAR_LIST )
21562156 {
21572157 ch_error (channel , "third argument for call must be a list" );
21582158 if (p_verbose > 2 )
2159- EMSG ("E904: third argument for call must be a list" );
2159+ EMSG (_ ( "E904: third argument for call must be a list" ) );
21602160 }
21612161 else
21622162 {
@@ -2216,7 +2216,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
22162216 else if (p_verbose > 2 )
22172217 {
22182218 ch_errors (channel , "Received unknown command: %s" , (char * )cmd );
2219- EMSG2 ("E905: received unknown command: %s" , cmd );
2219+ EMSG2 (_ ( "E905: received unknown command: %s" ) , cmd );
22202220 }
22212221}
22222222
@@ -3407,7 +3407,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
34073407 if (!channel -> ch_error && fun != NULL )
34083408 {
34093409 ch_errors (channel , "%s(): write while not connected" , fun );
3410- EMSG2 ("E630: %s(): write while not connected" , fun );
3410+ EMSG2 (_ ( "E630: %s(): write while not connected" ) , fun );
34113411 }
34123412 channel -> ch_error = TRUE;
34133413 return FAIL ;
@@ -3432,7 +3432,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
34323432 if (!channel -> ch_error && fun != NULL )
34333433 {
34343434 ch_errors (channel , "%s(): write failed" , fun );
3435- EMSG2 ("E631: %s(): write failed" , fun );
3435+ EMSG2 (_ ( "E631: %s(): write failed" ) , fun );
34363436 }
34373437 channel -> ch_error = TRUE;
34383438 return FAIL ;
0 commit comments