Ignore:
Timestamp:
Mar 7, 2008, 8:48:36 PM (14 years ago)
Author:
charles
Message:

lots more i18n string work -- making strings more consistent, folding redundant strings together, etc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/utils.c

    r5209 r5221  
    363363    if( stat( path, &sb ) )
    364364    {
    365         tr_err( _( "Couldn't get information for file \"%s\": %s" ), path, tr_strerror(errno) );
     365        tr_err( _( "Couldn't read file \"%s\": %s" ), path, tr_strerror(errno) );
    366366        return NULL;
    367367    }
     
    369369    if( ( sb.st_mode & S_IFMT ) != S_IFREG )
    370370    {
    371         tr_err( _( "Not a regular file (%s)" ), path );
     371        tr_err( _( "Couldn't read file \"%s\": %s" ), path, _( "Not a regular file" ) );
    372372        return NULL;
    373373    }
     
    377377    if( !file )
    378378    {
    379         tr_err( _( "Couldn't open \"%s\": %s" ), path, tr_strerror(errno) );
     379        tr_err( _( "Couldn't read file \"%s\": %s" ), path, tr_strerror(errno) );
    380380        return NULL;
    381381    }
     
    454454        {
    455455            /* Node exists but isn't a folder */
    456             tr_err( _( "Remove \"%s\", it's in the way." ), path );
     456            char buf[MAX_PATH_LENGTH];
     457            snprintf( buf, sizeof( buf ), _( "File \"%s\" is in the way" ), path );
     458            tr_err( _( "Couldn't create \"%s\": %s" ), path_in, buf );
    457459            tr_free( path );
    458460            errno = ENOTDIR;
     
    840842        size_t n = siz;
    841843
     844        assert( s != NULL );
     845        assert( d != NULL );
     846
    842847        /* Copy as many bytes as will fit */
    843848        if (n != 0) {
Note: See TracChangeset for help on using the changeset viewer.