@@ -702,7 +702,7 @@ channel_open(
702702 if ((host = gethostbyname (hostname )) == NULL )
703703 {
704704 ch_error (channel , "in gethostbyname() in channel_open()" );
705- PERROR ("E901: gethostbyname() in channel_open()" );
705+ PERROR (_ ( "E901: gethostbyname() in channel_open()" ) );
706706 channel_free (channel );
707707 return NULL ;
708708 }
@@ -729,7 +729,7 @@ channel_open(
729729 if (sd == -1 )
730730 {
731731 ch_error (channel , "in socket() in channel_open()." );
732- PERROR ("E898: socket() in channel_open()" );
732+ PERROR (_ ( "E898: socket() in channel_open()" ) );
733733 channel_free (channel );
734734 return NULL ;
735735 }
@@ -2070,7 +2070,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
20702070 {
20712071 ch_error (channel , "received command with non-string argument" );
20722072 if (p_verbose > 2 )
2073- EMSG ("E903: received command with non-string argument" );
2073+ EMSG (_ ( "E903: received command with non-string argument" ) );
20742074 return ;
20752075 }
20762076 arg = argv [1 ].vval .v_string ;
@@ -2129,13 +2129,13 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
21292129 {
21302130 ch_error (channel , "last argument for expr/call must be a number" );
21312131 if (p_verbose > 2 )
2132- EMSG ("E904: last argument for expr/call must be a number" );
2132+ EMSG (_ ( "E904: last argument for expr/call must be a number" ) );
21332133 }
21342134 else if (is_call && argv [2 ].v_type != VAR_LIST )
21352135 {
21362136 ch_error (channel , "third argument for call must be a list" );
21372137 if (p_verbose > 2 )
2138- EMSG ("E904: third argument for call must be a list" );
2138+ EMSG (_ ( "E904: third argument for call must be a list" ) );
21392139 }
21402140 else
21412141 {
@@ -2195,7 +2195,7 @@ channel_exe_cmd(channel_T *channel, int part, typval_T *argv)
21952195 else if (p_verbose > 2 )
21962196 {
21972197 ch_errors (channel , "Received unknown command: %s" , (char * )cmd );
2198- EMSG2 ("E905: received unknown command: %s" , cmd );
2198+ EMSG2 (_ ( "E905: received unknown command: %s" ) , cmd );
21992199 }
22002200}
22012201
@@ -3382,7 +3382,7 @@ channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun)
33823382 if (!channel -> ch_error && fun != NULL )
33833383 {
33843384 ch_errors (channel , "%s(): write while not connected" , fun );
3385- EMSG2 ("E630: %s(): write while not connected" , fun );
3385+ EMSG2 (_ ( "E630: %s(): write while not connected" ) , fun );
33863386 }
33873387 channel -> ch_error = TRUE;
33883388 return FAIL ;
@@ -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 failed" , fun );
3410- EMSG2 ("E631: %s(): write failed" , fun );
3410+ EMSG2 (_ ( "E631: %s(): write failed" ) , fun );
34113411 }
34123412 channel -> ch_error = TRUE;
34133413 return FAIL ;
0 commit comments