mark more translatable strings

This commit is contained in:
Kurt Zeilenga 2003-04-06 06:47:31 +00:00
parent e41ca42de1
commit 02c992a132
5 changed files with 20 additions and 20 deletions

View File

@ -89,7 +89,7 @@ ldif_parse_line(
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 );
}
@ -99,7 +99,7 @@ ldif_parse_line(
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 );
@ -142,7 +142,7 @@ ldif_parse_line(
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 );
}
@ -155,8 +155,8 @@ ldif_parse_line(
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 );
@ -194,14 +194,14 @@ ldif_parse_line(
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 );
@ -216,7 +216,7 @@ ldif_parse_line(
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 );
@ -226,7 +226,7 @@ ldif_parse_line(
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 );
@ -523,7 +523,7 @@ ldif_put(
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;
}

View File

@ -90,7 +90,7 @@ printf("DF_TRACE_DEBUG: int getopt () in getopt.c\n");
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++;
@ -104,7 +104,7 @@ printf("DF_TRACE_DEBUG: int getopt () in getopt.c\n");
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;
}

View File

@ -50,7 +50,7 @@ lutil_getpass( const char *prompt )
static char buf[256];
int i, c;
if( prompt == NULL ) prompt = "Password: ";
if( prompt == NULL ) prompt = _("Password: ");
#ifdef DEBUG
if (debug & D_TRACE)
@ -76,7 +76,7 @@ lutil_getpass( const char *prompt )
FILE *fi;
RETSIGTYPE (*sig)( int sig );
if( prompt == NULL ) prompt = "Password: ";
if( prompt == NULL ) prompt = _("Password: ");
#ifdef DEBUG
if (debug & D_TRACE)

View File

@ -42,8 +42,8 @@ lutil_get_filed_password(
struct stat sb;
if ( fstat( fileno( f ), &sb ) == 0 ) {
if( sb.st_mode & 006 ) {
fprintf( stderr,
"Warning: Password file %s is publicly readable/writeable\n",
fprintf( stderr, _("Warning: Password file %s"
" is publicly readable/writeable\n"),
filename );
}

View File

@ -138,16 +138,16 @@ static int interaction(
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 );
@ -207,7 +207,7 @@ int lutil_sasl_interact(
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 ) {