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

first cut at adding i18n hooks into libtransmission.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r5065 r5193  
    9393#endif
    9494        {
    95             tr_err( "Couldn't set socket to non-blocking mode (%s)",
     95            tr_err( _( "Couldn't set socket to non-blocking mode: %s" ),
    9696                    tr_strerror( sockerrno ) );
    9797            tr_netClose( fd );
     
    133133        && ( sockerrno != EINPROGRESS ) )
    134134    {
    135         tr_err( "Couldn't connect socket %d to %s, port %d (errno %d - %s)",
     135        tr_err( _( "Couldn't connect socket %d to %s, port %d (errno %d - %s)" ),
    136136                s, inet_ntoa(*addr), port,
    137137                sockerrno, tr_strerror(sockerrno) );
     
    160160    if( ( s = createSocket( type, 1 ) ) < 0 )
    161161    {
    162         tr_err( "Couldn't create socket of type %d", type );
     162        tr_err( _( "Couldn't create socket of type %d" ), type );
    163163        return -1;
    164164    }
     
    177177               sizeof( struct sockaddr_in ) ) )
    178178    {
    179         tr_err( "Couldn't bind port %d: %s", port, tr_strerror(sockerrno) );
     179        tr_err( _( "Couldn't bind port %d: %s" ), port, tr_strerror(sockerrno) );
    180180        tr_netClose( s );
    181181        return -1;
    182182    }
    183183     
    184     tr_inf( "Bound socket %d to port %d", s, port );
     184    tr_inf( _( "Bound socket %d to port %d" ), s, port );
    185185    return s;
    186186}
Note: See TracChangeset for help on using the changeset viewer.