Ignore:
Timestamp:
Mar 6, 2008, 9:59:00 PM (14 years ago)
Author:
charles
Message:

more i18n strings work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/natpmp.c

    r5193 r5208  
    3232#define COMMAND_WAIT_SECS 8
    3333
    34 #define KEY "Port Mapping (NAT-PMP): "
    35 
    3634typedef enum
    3735{
     
    6664{
    6765    if( ret==NATPMP_TRYAGAIN )
    68         tr_dbg( _( KEY "%s returned 'try again'" ), func );
     66        tr_dbg( _( "Port Mapping (NAT-PMP): %s returned 'try again'" ), func );
    6967    else if( ret >= 0 )
    70         tr_dbg( _( KEY "%s returned success (%d)" ), func, ret );
     68        tr_dbg( _( "Port Mapping (NAT-PMP): %s returned success (%d)" ), func, ret );
    7169    else
    72         tr_err( _( KEY "%s returned error %d, errno is %d (%s)" ), func, ret, errno, tr_strerror(errno) );
     70        tr_err( _( "Port Mapping (NAT-PMP): %s returned error %d, errno is %d (%s)" ), func, ret, errno, tr_strerror(errno) );
    7371}
    7472
     
    110108setErrorState( struct tr_natpmp * nat )
    111109{
    112     tr_err( _( KEY "If your router supports NAT-PMP, please make sure NAT-PMP is enabled!" ) );
    113     tr_err( _( KEY "NAT-PMP port forwarding unsuccessful, trying UPnP next" ) );
     110    tr_err( _( "Port Mapping (NAT-PMP): If your router supports NAT-PMP, please make sure NAT-PMP is enabled!" ) );
     111    tr_err( _( "Port Mapping (NAT-PMP): NAT-PMP port forwarding unsuccessful, trying UPnP next" ) );
    114112    nat->state = TR_NATPMP_ERR;
    115113}
     
    137135        logVal( "readnatpmpresponseorretry", val );
    138136        if( val >= 0 ) {
    139             tr_inf( _( KEY "found public address %s" ), inet_ntoa( response.publicaddress.addr ) );
     137            tr_inf( _( "Port Mapping (NAT-PMP): found public address %s" ), inet_ntoa( response.publicaddress.addr ) );
    140138            nat->state = TR_NATPMP_IDLE;
    141139        } else if( val != NATPMP_TRYAGAIN ) {
     
    164162        logVal( "readnatpmpresponseorretry", val );
    165163        if( val >= 0 ) {
    166             tr_inf( _( KEY "port %d has been unmapped." ), nat->port );
     164            tr_inf( _( "Port Mapping (NAT-PMP): port %d has been unmapped." ), nat->port );
    167165            nat->state = TR_NATPMP_IDLE;
    168166            nat->port = -1;
     
    200198            nat->renewTime = time( NULL ) + LIFETIME_SECS;
    201199            nat->port = resp.newportmapping.privateport;
    202             tr_inf( _( KEY "port %d mapped successfully" ), nat->port );
     200            tr_inf( _( "Port Mapping (NAT-PMP): port %d mapped successfully" ), nat->port );
    203201        } else if( val != NATPMP_TRYAGAIN ) {
    204202            setErrorState( nat );
Note: See TracChangeset for help on using the changeset viewer.