if( freeme == NULL ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
- "ldif_parse_line: line malloc failed\n");
+ _("ldif_parse_line: line malloc failed\n"));
return( -1 );
}
if ( s == NULL ) {
ber_pvt_log_printf( LDAP_DEBUG_PARSE, ldif_debug,
- "ldif_parse_line: missing ':' after %s\n",
+ _("ldif_parse_line: missing ':' after %s\n"),
type );
ber_memfree( freeme );
return( -1 );
if ( *s == '\0' ) {
/* no value is present, error out */
ber_pvt_log_printf( LDAP_DEBUG_PARSE, ldif_debug,
- "ldif_parse_line: %s missing base64 value\n", type );
+ _("ldif_parse_line: %s missing base64 value\n"), type );
ber_memfree( freeme );
return( -1 );
}
if ( p[i] != '=' && (p[i] & 0x80 ||
b642nib[ p[i] & 0x7f ] > 0x3f) ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
- "ldif_parse_line: %s: invalid base64 encoding"
- " char (%c) 0x%x\n",
+ _("ldif_parse_line: %s: invalid base64 encoding"
+ " char (%c) 0x%x\n"),
type, p[i], p[i] );
ber_memfree( freeme );
return( -1 );
if ( *s == '\0' ) {
/* no value is present, error out */
ber_pvt_log_printf( LDAP_DEBUG_PARSE, ldif_debug,
- "ldif_parse_line: %s missing URL value\n", type );
+ _("ldif_parse_line: %s missing URL value\n"), type );
ber_memfree( freeme );
return( -1 );
}
if( ldif_fetch_url( s, &value, &vlen ) ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
- "ldif_parse_line: %s: URL \"%s\" fetch failed\n",
+ _("ldif_parse_line: %s: URL \"%s\" fetch failed\n"),
type, s );
ber_memfree( freeme );
return( -1 );
if( type == NULL ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
- "ldif_parse_line: type malloc failed\n");
+ _("ldif_parse_line: type malloc failed\n"));
if( url ) ber_memfree( value );
ber_memfree( freeme );
return( -1 );
p = ber_memalloc( vlen + 1 );
if( p == NULL ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
- "ldif_parse_line: value malloc failed\n");
+ _("ldif_parse_line: value malloc failed\n"));
ber_memfree( type );
ber_memfree( freeme );
return( -1 );
if ( buf == NULL ) {
ber_pvt_log_printf( LDAP_DEBUG_ANY, ldif_debug,
- "ldif_type_and_value: malloc failed!" );
+ _("ldif_type_and_value: malloc failed!"));
return NULL;
}
optopt = (int) c;
if (c == arg || (cp = strchr(opts,c)) == NULL)
{
- ERR(argv,": illegal option--",c);
+ ERR(argv,_(": illegal option--"),c);
if (argv[optind][++sp] == eos)
{
optind++;
optarg = &argv[optind++][sp + 1];
else if (++optind >= argc)
{
- ERR(argv,": option requires an argument--",c);
+ ERR(argv,_(": option requires an argument--"),c);
sp = 1;
return error;
}
if( challenge ) {
if( interact->challenge ) {
- fprintf( stderr, "Challenge: %s\n", interact->challenge );
+ fprintf( stderr, _("Challenge: %s\n"), interact->challenge );
}
}
if( dflt ) {
- fprintf( stderr, "Default: %s\n", dflt );
+ fprintf( stderr, _("Default: %s\n"), dflt );
}
snprintf( input, sizeof input, "%s: ",
- interact->prompt ? interact->prompt : "Interact" );
+ interact->prompt ? interact->prompt : _("Interact") );
if( noecho ) {
interact->result = (char *) getpassphrase( input );
if( ld == NULL ) return LDAP_PARAM_ERROR;
if( flags == LDAP_SASL_INTERACTIVE ) {
- fputs( "SASL Interaction\n", stderr );
+ fputs( _("SASL Interaction\n"), stderr );
}
while( interact->id != SASL_CB_LIST_END ) {