(trunk) rephrase "tracker returned..." to "tracker gave..." which is equally expressive but saves a little space on the status line

This commit is contained in:
Charles Kerr 2009-08-06 07:04:19 +00:00
parent e10adbc3fc
commit 5018a1b0d2
4 changed files with 8 additions and 8 deletions

View File

@ -439,8 +439,8 @@ main( int argc,
{
char line[LINEWIDTH];
const tr_stat * st;
const char * messageName[] = { NULL, "Tracker returned a warning:",
"Tracker returned an error:",
const char * messageName[] = { NULL, "Tracker gave a warning:",
"Tracker gave an error:",
"Error:" };
tr_wait( 200 );

View File

@ -1010,8 +1010,8 @@ printDetails( tr_benc * top )
tr_bencDictFindInt( t, "error", &i ) && i )
{
switch( i ) {
case TR_STAT_TRACKER_WARNING: printf( " Tracker returned a warning: %s\n", str ); break;
case TR_STAT_TRACKER_ERROR: printf( " Tracker returned an error: %s\n", str ); break;
case TR_STAT_TRACKER_WARNING: printf( " Tracker gave a warning: %s\n", str ); break;
case TR_STAT_TRACKER_ERROR: printf( " Tracker gave an error: %s\n", str ); break;
case TR_STAT_LOCAL_ERROR: printf( " Error: %s\n", str ); break;
default: break; /* no error */
}

View File

@ -213,8 +213,8 @@ getStatusString( const tr_stat * torStat )
if( torStat->error )
{
const char * fmt[] = { NULL, N_( "Tracker returned a warning: \"%s\"" ),
N_( "Tracker returned an error: \"%s\"" ),
const char * fmt[] = { NULL, N_( "Tracker gave a warning: \"%s\"" ),
N_( "Tracker gave an error: \"%s\"" ),
N_( "Error: \"%s\"" ) };
g_string_append_printf( gstr, _( fmt[torStat->error] ), torStat->errorString );
}

View File

@ -629,8 +629,8 @@ Torrent :: getError( ) const
switch( getInt( ERROR ) )
{
case TR_STAT_TRACKER_WARNING: s = tr( "Tracker returned a warning: %1" ).arg( s ); break;
case TR_STAT_TRACKER_ERROR: s = tr( "Tracker returned an error: %1" ).arg( s ); break;
case TR_STAT_TRACKER_WARNING: s = tr( "Tracker gave a warning: %1" ).arg( s ); break;
case TR_STAT_TRACKER_ERROR: s = tr( "Tracker gave an error: %1" ).arg( s ); break;
case TR_STAT_LOCAL_ERROR: s = tr( "Error: %1" ).arg( s ); break;
default: s.clear(); break;
}