Changeset 5194


Ignore:
Timestamp:
Mar 4, 2008, 2:13:53 AM (14 years ago)
Author:
charles
Message:

fold some error messages together into common strings

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/metainfo.c

    r5193 r5194  
    473473        if( 0 == inf->trackerTiers )
    474474        {
    475             tr_inf( _( "No valid entries in \"announce-list\"" ) );
     475            tr_inf( _( "Incomplete benc entry \"%s\"" ), "announce-list" );
    476476            free( inf->trackerList );
    477477            inf->trackerList = NULL;
     
    493493    if( NULL == val || TYPE_STR != val->type )
    494494    {
    495         tr_err( _( "No \"announce\" entry" ) );
     495        tr_err( _( "Missing benc entry \"%s\"" ), "announce" );
    496496        return TR_EINVALID;
    497497    }
  • trunk/libtransmission/utils.c

    r5193 r5194  
    528528
    529529        case TR_ERROR_IO_PARENT:
    530             return _( "Download folder does not exist" );
     530            return _( "Download folder doesn't exist" );
    531531        case TR_ERROR_IO_PERMISSIONS:
    532             return _( "Insufficient permissions" );
     532            return tr_strerror( EACCES );
    533533        case TR_ERROR_IO_SPACE:
    534             return _( "Insufficient free space" );
     534            return tr_strerror( ENOSPC );
    535535        case TR_ERROR_IO_FILE_TOO_BIG:
    536             return _( "File too large" );
     536            return tr_strerror( EFBIG );
    537537        case TR_ERROR_IO_OPEN_FILES:
    538             return _( "Too many open files" );
     538            return tr_strerror( EMFILE );
    539539        case TR_ERROR_IO_DUP_DOWNLOAD:
    540540            return _( "Already active transfer with same name and download folder" );
Note: See TracChangeset for help on using the changeset viewer.