Changeset 5226
- Timestamp:
- Mar 8, 2008, 4:53:11 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gtk/actions.c
r5221 r5226 113 113 { "delete-torrent", GTK_STOCK_DELETE, N_("_Delete Files and Remove"), "<control>Delete", NULL, G_CALLBACK(action_cb) }, 114 114 { "new-torrent", GTK_STOCK_NEW, N_("_New..."), NULL, 115 N_("Create a newtorrent"),115 N_("Create a torrent"), 116 116 G_CALLBACK(action_cb) }, 117 117 { "close", GTK_STOCK_CLOSE, N_("Close _Window"), "<control>W", … … 124 124 { "edit-preferences", GTK_STOCK_PREFERENCES, NULL, NULL, NULL, G_CALLBACK(action_cb) }, 125 125 { "show-torrent-details", GTK_STOCK_INFO, 126 N_("_Details"), "<alt>Return", N _("Torrent Details"), G_CALLBACK(action_cb) },126 N_("_Details"), "<alt>Return", NULL, G_CALLBACK(action_cb) }, 127 127 { "show-about-dialog", GTK_STOCK_ABOUT, NULL, NULL, NULL, G_CALLBACK(action_cb) }, 128 128 { "update-tracker", GTK_STOCK_NETWORK, -
trunk/gtk/details.c
r5225 r5226 32 32 ****/ 33 33 34 /* define SHOW_PIECES */ 35 36 #ifdef SHOW_PIECES 34 37 static int 35 38 getGridSize (int pieceCount, int * n_rows, int * n_cols) … … 221 224 return FALSE; 222 225 } 226 #endif 223 227 224 228 /**** … … 463 467 append_peers_to_model (store, peers, n_peers); /* all these are new */ 464 468 469 #ifdef SHOW_PIECES 465 470 if (GDK_IS_DRAWABLE (p->completeness->window)) 466 471 refresh_pieces (p->completeness, NULL, p->gtor); 472 #endif 467 473 468 474 fmtpeercount (p->seeders_lb, stat->seeders); … … 477 483 guint i; 478 484 GtkTreeModel *m; 479 GtkWidget *h, *v, *w, *ret, * da, *sw, *l, *vbox, *hbox;485 GtkWidget *h, *v, *w, *ret, *sw, *l, *vbox, *hbox; 480 486 tr_torrent * tor = tr_torrent_handle (gtor); 481 487 PeerData * p = g_new (PeerData, 1); 482 char name[64];483 488 484 489 /* TODO: make this configurable? */ … … 585 590 gtk_container_set_border_width (GTK_CONTAINER(vbox), GUI_PAD_BIG); 586 591 587 g_snprintf (name, sizeof(name), "<b>%s</b>", _("Availability")); 592 #ifdef SHOW_PIECES 588 593 l = gtk_label_new (NULL); 589 594 gtk_misc_set_alignment (GTK_MISC(l), 0.0f, 0.5f); 590 gtk_label_set_markup (GTK_LABEL(l), name);595 gtk_label_set_markup (GTK_LABEL(l), _( "<b>Availability</b>" ) ); 591 596 gtk_box_pack_start (GTK_BOX(vbox), l, FALSE, FALSE, 0); 592 597 … … 608 613 gtk_box_pack_start (GTK_BOX(vbox), w, FALSE, FALSE, 0); 609 614 610 g_snprintf (name, sizeof(name), "<b>%s</b>", _("Connected Peers"));611 615 l = gtk_label_new (NULL); 612 616 gtk_misc_set_alignment (GTK_MISC(l), 0.0f, 0.5f); 613 gtk_label_set_markup (GTK_LABEL(l), name);617 gtk_label_set_markup (GTK_LABEL(l), _( "<b>Connected Peers</b>" ) ); 614 618 gtk_box_pack_start (GTK_BOX(vbox), l, FALSE, FALSE, 0); 619 #endif 615 620 616 621 h = gtk_hbox_new (FALSE, GUI_PAD); 617 w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);618 gtk_widget_set_size_request (w, GUI_PAD_BIG, 0);619 gtk_box_pack_start (GTK_BOX(h), w, FALSE, FALSE, 0);620 622 gtk_box_pack_start_defaults (GTK_BOX(h), sw); 621 623 gtk_box_pack_start_defaults (GTK_BOX(vbox), h); 622 624 623 625 hbox = gtk_hbox_new (FALSE, GUI_PAD); 624 w = gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f);625 gtk_widget_set_size_request (w, GUI_PAD_BIG, 0);626 gtk_box_pack_start (GTK_BOX(hbox), w, FALSE, FALSE, 0);627 g_snprintf (name, sizeof(name), "<b>%s:</b>", _("Seeders"));628 626 l = gtk_label_new (NULL); 629 gtk_label_set_markup (GTK_LABEL(l), name);627 gtk_label_set_markup (GTK_LABEL(l), _( "<b>Seeders:</b>" ) ); 630 628 gtk_box_pack_start (GTK_BOX(hbox), l, FALSE, FALSE, 0); 631 629 l = p->seeders_lb = gtk_label_new (NULL); … … 633 631 gtk_box_pack_start_defaults (GTK_BOX(hbox), 634 632 gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f)); 635 g_snprintf (name, sizeof(name), "<b>%s:</b>", _("Leechers"));636 633 l = gtk_label_new (NULL); 637 gtk_label_set_markup (GTK_LABEL(l), name);634 gtk_label_set_markup (GTK_LABEL(l), _( "<b>Leechers:</b>" ) ); 638 635 gtk_box_pack_start (GTK_BOX(hbox), l, FALSE, FALSE, 0); 639 636 l = p->leechers_lb = gtk_label_new (NULL); … … 641 638 gtk_box_pack_start_defaults (GTK_BOX(hbox), 642 639 gtk_alignment_new (0.0f, 0.0f, 0.0f, 0.0f)); 643 g_snprintf (name, sizeof(name), "<b>%s:</b>", _("Completed"));644 640 l = gtk_label_new (NULL); 645 gtk_label_set_markup (GTK_LABEL(l), name);641 gtk_label_set_markup (GTK_LABEL(l), _( "<b>Completed:</b>" ) ); 646 642 gtk_box_pack_start (GTK_BOX(hbox), l, FALSE, FALSE, 0); 647 643 l = p->completed_lb = gtk_label_new (NULL); … … 670 666 char sizeStr[128]; 671 667 char buf[256]; 672 char name[128];673 const char * namefmt = "%s:";674 668 GtkTextBuffer * b; 675 669 const tr_info * info = tr_torrentInfo(tor); … … 677 671 hig_workarea_add_section_title (t, &row, _("Torrent Information")); 678 672 679 g_snprintf (name, sizeof(name), namefmt, _("Pieces"));680 673 tr_strlsize( sizeStr, info->pieceSize, sizeof(sizeStr) ); 681 674 g_snprintf( buf, sizeof( buf ), … … 686 679 info->pieceCount, sizeStr ); 687 680 l = gtk_label_new (buf); 688 hig_workarea_add_row (t, &row, name, l, NULL); 689 690 g_snprintf (name, sizeof(name), namefmt, _("Hash")); 681 hig_workarea_add_row (t, &row, _("Pieces:"), l, NULL); 682 691 683 l = gtk_label_new (info->hashString); 692 684 gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END ); 693 hig_workarea_add_row (t, &row, name, l, NULL); 694 695 g_snprintf (name, sizeof(name), namefmt, _("Privacy")); 685 hig_workarea_add_row (t, &row, _("Hash:"), l, NULL); 686 696 687 pch = (info->isPrivate ) 697 688 ? _("Private Torrent: PEX disabled") 698 689 : _("Public Torrent"); 699 690 l = gtk_label_new (pch); 700 hig_workarea_add_row (t, &row, name, l, NULL); 701 702 g_snprintf (name, sizeof(name), namefmt, _("Comment")); 691 hig_workarea_add_row (t, &row, _("Privacy:"), l, NULL); 692 703 693 b = gtk_text_buffer_new (NULL); 704 694 if( info->comment ) … … 711 701 gtk_frame_set_shadow_type (GTK_FRAME(fr), GTK_SHADOW_IN); 712 702 gtk_container_add (GTK_CONTAINER(fr), w); 713 w = hig_workarea_add_row (t, &row, name, fr, NULL);703 w = hig_workarea_add_row (t, &row, _("Comment:"), fr, NULL); 714 704 gtk_misc_set_alignment (GTK_MISC(w), 0.0f, 0.0f); 715 705 … … 717 707 hig_workarea_add_section_title (t, &row, _("Origins")); 718 708 719 g_snprintf (name, sizeof(name), namefmt, _("Creator"));720 709 l = gtk_label_new (*info->creator ? info->creator : _("Unknown")); 721 hig_workarea_add_row (t, &row, name, l, NULL); 722 723 g_snprintf (name, sizeof(name), namefmt, _("Date")); 710 hig_workarea_add_row (t, &row, _("Creator:"), l, NULL); 711 724 712 pch = rfc822date ((guint64)info->dateCreated * 1000u); 725 713 l = gtk_label_new (pch); 726 hig_workarea_add_row (t, &row, name, l, NULL);714 hig_workarea_add_row (t, &row, _("Date:"), l, NULL); 727 715 g_free (pch); 728 716 … … 730 718 hig_workarea_add_section_title (t, &row, _("Location")); 731 719 732 g_snprintf (name, sizeof(name), namefmt, _("Destination directory"));733 720 l = gtk_label_new (tr_torrentGetFolder (tor)); 734 721 gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END ); 735 hig_workarea_add_row (t, &row, name, l, NULL); 736 737 g_snprintf (name, sizeof(name), namefmt, _("Torrent file")); 722 hig_workarea_add_row (t, &row, _( "Destination folder" ), l, NULL); 723 738 724 l = gtk_label_new ( info->torrent ); 739 725 gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END ); 740 hig_workarea_add_row (t, &row, name, l, NULL);726 hig_workarea_add_row (t, &row, _( "Torrent file" ), l, NULL); 741 727 742 728 hig_workarea_finish (t, &row); … … 781 767 782 768 /* %1$.1f is percent of how much of what we want's been downloaded, 783 *%2$.1f is percent of how much of the whole torrent we've downloaded */769 %2$.1f is percent of how much of the whole torrent we've downloaded */ 784 770 pch = g_strdup_printf( _( "%1$.1f%% (%2$.1f%% selected)" ), stat->percentComplete*100.0, stat->percentDone*100.0 ); 785 771 gtk_label_set_text (GTK_LABEL(a->progress_lb), pch); … … 789 775 tr_strlsize( sizeStr2, stat->haveValid, sizeof(sizeStr2) ); 790 776 /* %1$s is total size of what we've saved to disk 791 *%2$s is how much of it's passed the checksum test */777 %2$s is how much of it's passed the checksum test */ 792 778 g_snprintf( buf, sizeof(buf), _("%1$s (%2$s verified)"), sizeStr, sizeStr2 ); 793 779 gtk_label_set_text( GTK_LABEL( a->have_lb ), buf ); … … 811 797 *stat->errorString ? stat->errorString : _("None")); 812 798 813 pch = stat->startDate ? rfc822date (stat->startDate)814 : g_strdup_printf ("?");799 pch = stat->startDate ? rfc822date( stat->startDate ) 800 : g_strdup_printf( _( "Unknown" ) ); 815 801 gtk_label_set_text (GTK_LABEL(a->date_added_lb), pch); 816 802 g_free (pch); 817 803 818 pch = stat->activityDate ? rfc822date (stat->activityDate)819 : g_strdup_printf ("?");804 pch = stat->activityDate ? rfc822date( stat->activityDate ) 805 : g_strdup_printf( _( "Unknown" ) ); 820 806 gtk_label_set_text (GTK_LABEL(a->last_activity_lb), pch); 821 807 g_free (pch); 822 808 809 #ifdef SHOW_PIECES 823 810 if (GDK_IS_DRAWABLE (a->availability_da->window)) 824 811 refresh_pieces (a->availability_da, NULL, a->gtor); 812 #endif 825 813 } 826 814 … … 832 820 int row = 0; 833 821 GtkWidget *t = hig_workarea_create (); 834 GtkWidget *l , *w;822 GtkWidget *l; 835 823 836 824 a->gtor = gtor; … … 867 855 hig_workarea_add_row (t, &row, _("Error:"), l, NULL); 868 856 857 #ifdef SHOW_PIECES 869 858 hig_workarea_add_section_divider (t, &row); 870 859 hig_workarea_add_section_title (t, &row, _("Completion")); … … 875 864 g_signal_connect (w, "expose-event", G_CALLBACK(refresh_pieces), gtor); 876 865 hig_workarea_add_wide_control( t, &row, w ); 866 #endif 877 867 878 868 hig_workarea_add_section_divider (t, &row); … … 1066 1056 struct tracker_page * page = g_new0( struct tracker_page, 1 ); 1067 1057 const tr_tracker_info * track; 1068 char name[128];1069 const char * namefmt = "%s:";1070 1058 const tr_info * info = tr_torrent_info (gtor); 1071 1059 … … 1093 1081 hig_workarea_add_section_title( t, &row, _( "Announce" ) ); 1094 1082 1095 g_snprintf (name, sizeof(name), namefmt, _("Tracker"));1096 1083 track = info->trackerList->list; 1097 1084 tmp = track->port==80 … … 1100 1087 l = gtk_label_new( tmp ); 1101 1088 gtk_label_set_ellipsize( GTK_LABEL( l ), PANGO_ELLIPSIZE_END ); 1102 hig_workarea_add_row (t, &row, name, l, NULL);1089 hig_workarea_add_row (t, &row, _( "Tracker:" ), l, NULL); 1103 1090 g_free( tmp ); 1104 1091 … … 1118 1105 hig_workarea_add_row( t, &row, s, l, NULL ); 1119 1106 1120 /* when tracker will honor user pressing1121 * the "ask for more peers" button */1107 /* how long until the tracker will honor user 1108 * pressing the "ask for more peers" button */ 1122 1109 s = _( "Manual announce allowed in:" ); 1123 1110 l = gtk_label_new( NULL ); -
trunk/gtk/dialogs.c
r5224 r5226 135 135 g_object_weak_ref( G_OBJECT( core ), promptdirnocore, stuff ); 136 136 137 wind = gtk_file_chooser_dialog_new( _("Destination directory"), parent,137 wind = gtk_file_chooser_dialog_new( _("Destination folder"), parent, 138 138 GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER, 139 139 GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, -
trunk/gtk/file-list.c
r5224 r5226 62 62 { 63 63 switch( priority ) { 64 /* Translators:this refers to priority */64 /* this refers to priority */ 65 65 case TR_PRI_HIGH: return _("High"); 66 /* Translators:this refers to priority */66 /* this refers to priority */ 67 67 case TR_PRI_NORMAL: return _("Normal"); 68 /* Translators:this refers to priority */68 /* this refers to priority */ 69 69 case TR_PRI_LOW: return _("Low"); 70 70 default: return "BUG!"; -
trunk/gtk/ipc.c
r5224 r5226 232 232 break; 233 233 case EINVAL: 234 g_message( _("IPC p rotocol parse error") );234 g_message( _("IPC parse error") ); 235 235 break; 236 236 default: 237 g_message( _("IPC pars ing failed: %s"), g_strerror( errno ) );237 g_message( _("IPC parse error: %s"), g_strerror( errno ) ); 238 238 break; 239 239 } -
trunk/gtk/main.c
r5224 r5226 930 930 #endif 931 931 "authors", authors, 932 /* Translators: translate "translator-credits" withyour name933 *to have it appear in the credits in the "About" dialog */932 /* Translators: translate "translator-credits" as your name 933 to have it appear in the credits in the "About" dialog */ 934 934 "translator-credits", _("translator-credits"), 935 935 NULL ); -
trunk/gtk/makemeta-ui.c
r5224 r5226 255 255 g_snprintf( name, sizeof(name), "%s:", _("File _Type")); 256 256 h = gtk_hbox_new( FALSE, GUI_PAD_SMALL ); 257 w = rb_dir = gtk_radio_button_new_with_mnemonic( NULL, _(" Directory"));257 w = rb_dir = gtk_radio_button_new_with_mnemonic( NULL, _("Folder")); 258 258 gtk_box_pack_start ( GTK_BOX(h), w, FALSE, FALSE, 0 ); 259 259 w = rb_file = gtk_radio_button_new_with_mnemonic_from_widget( GTK_RADIO_BUTTON(w), _("Single File") ); … … 290 290 hig_workarea_add_section_title (t, &row, _("Torrent")); 291 291 292 g_snprintf( name, sizeof(name), _("Private to this Tracker") );292 g_snprintf( name, sizeof(name), _("Private to this tracker") ); 293 293 w = ui->private_check = hig_workarea_add_wide_checkbutton( t, &row, name, FALSE ); 294 294 -
trunk/gtk/msgwin.c
r5222 r5226 295 295 gtk_toolbar_append_element(GTK_TOOLBAR(toolbar), 296 296 GTK_TOOLBAR_CHILD_WIDGET, levels, 297 NULL, _("Se lect the debug filter level."),297 NULL, _("Set the verbosity level"), 298 298 NULL, NULL, NULL, NULL); 299 299 -
trunk/gtk/open-dialog.c
r5221 r5226 196 196 ++row; 197 197 col = 0; 198 l = gtk_label_new_with_mnemonic( _( "Destination _ directory:" ) );198 l = gtk_label_new_with_mnemonic( _( "Destination _folder:" ) ); 199 199 gtk_misc_set_alignment( GTK_MISC( l ), 0.0f, 0.5f ); 200 200 gtk_table_attach( GTK_TABLE( t ), l, col, col+1, row, row+1, GTK_FILL, 0, 0, 0 ); -
trunk/gtk/stats.c
r5126 r5226 8 8 * the Transmission project. 9 9 * 10 * $Id :$10 * $Id$ 11 11 */ 12 12 … … 104 104 hig_workarea_add_row( t, &row, _("Duration:"), l, NULL ); 105 105 hig_workarea_add_section_divider( t, &row ); 106 hig_workarea_add_section_title( t, &row, _(" Cumulative") );106 hig_workarea_add_section_title( t, &row, _("Total") ); 107 107 l = ui->all_sessions_lb = gtk_label_new( _("Program started %d times") ); 108 108 hig_workarea_add_label_w( t, row++, l ); -
trunk/gtk/torrent-cell-renderer.c
r5224 r5226 49 49 str = g_strdup_printf( 50 50 /* %1$s is how much we've got, 51 *%2$s is how much we'll have when done,52 *%3$.2f%% is a percentage of the two */51 %2$s is how much we'll have when done, 52 %3$.2f%% is a percentage of the two */ 53 53 _("%1$s of %2$s (%3$.2f%%)"), 54 54 tr_strlsize( buf1, haveTotal, sizeof(buf1) ), … … 58 58 str = g_strdup_printf( 59 59 /* %1$s is how much we've got, 60 *%2$s is the torrent's total size,61 *%3$.2f%% is a percentage of the two,62 *%4$s is how much we've uploaded,63 *%5$s is our upload-to-download ratio */60 %2$s is the torrent's total size, 61 %3$.2f%% is a percentage of the two, 62 %4$s is how much we've uploaded, 63 %5$s is our upload-to-download ratio */ 64 64 _("%1$s of %2$s (%3$.2f%%), uploaded %4$s (Ratio: %5$s)"), 65 65 tr_strlsize( buf1, haveTotal, sizeof(buf1) ), … … 71 71 str = g_strdup_printf( 72 72 /* %1$s is the torrent's total size, 73 *%2$s is how much we've uploaded,74 *%3$s is our upload-to-download ratio */73 %2$s is how much we've uploaded, 74 %3$s is our upload-to-download ratio */ 75 75 _("%1$s, uploaded %2$s (Ratio: %3$s)"), 76 76 tr_strlsize( buf1, info->totalSize, sizeof(buf1) ), … … 89 89 char timestr[128]; 90 90 tr_strltime( timestr, eta, sizeof( timestr ) ); 91 /* time remaining */ 91 92 g_string_append_printf( gstr, _( "%s remaining" ), timestr ); 92 93 } … … 112 113 if( haveDown && haveUp ) 113 114 /* Translators: do not translate the "speed|" disambiguation prefix. 114 *%1$s is the download speed115 *%2$s is the upload speed */115 %1$s is the download speed 116 %2$s is the upload speed */ 116 117 g_snprintf( buf, buflen, Q_( "speed|Down: %1$s, Up: %2$s"), downStr, upStr ); 117 118 else if( haveDown ) 118 /* Translators: this refers todownload speed */119 /* download speed */ 119 120 g_snprintf( buf, buflen, _( "Down: %s" ), downStr ); 120 121 else if( haveUp ) 121 /* Translators: this refers toupload speed */122 /* upload speed */ 122 123 g_snprintf( buf, buflen, _( "Up: %s" ), upStr ); 123 124 else 124 /* Translators:the torrent isn't uploading or downloading */125 /* the torrent isn't uploading or downloading */ 125 126 g_strlcpy( buf, _( "Idle" ), buflen ); 126 127 -
trunk/gtk/tr-icon.c
r5224 r5226 77 77 g_snprintf( tip, sizeof( tip ), 78 78 /* %1$d is the number of torrents we're seeding, 79 *%2$d is the number of torrents we're downloading,80 *%3$s is our download speed,81 *%4$s is our upload speed */79 %2$d is the number of torrents we're downloading, 80 %3$s is our download speed, 81 %4$s is our upload speed */ 82 82 _( "%1$d Seeding, %2$d Downloading\nDown: %3$s, Up: %4$s" ), 83 83 stats->seedingCount, -
trunk/gtk/tr-prefs.c
r5224 r5226 218 218 219 219 w = new_path_chooser_button( PREF_KEY_DIR_DEFAULT, core ); 220 hig_workarea_add_row( t, &row, _( "Default d ownload _location:" ), w, NULL );220 hig_workarea_add_row( t, &row, _( "Default destination _folder:" ), w, NULL ); 221 221 222 222 s = _( "Show _options dialog" ); -
trunk/gtk/tr-torrent.c
r5224 r5226 216 216 { 217 217 case TR_EINVALID: 218 *err = g_strdup_printf( _( "File \"%s\" is not a valid torrent" ), filename );218 *err = g_strdup_printf( _( "File \"%s\" isn't a valid torrent" ), filename ); 219 219 break; 220 220 case TR_EDUPLICATE: … … 283 283 tr_strltime( timestr, eta, sizeof( timestr ) ); 284 284 /* %1$s is # of minutes 285 *%2$.1f is a percentage of how much of the torrent is done */285 %2$.1f is a percentage of how much of the torrent is done */ 286 286 top = g_strdup_printf( _("%1$s remaining (%2$.1f%%)"), timestr, prog ); 287 287 } -
trunk/gtk/tr-window.c
r5224 r5226 638 638 tr_strlsize( down, stats.downloadedBytes, sizeof( down ) ); 639 639 /* Translators: do not translate the "size|" disambiguation prefix. 640 *%1$s is the size of the data we've downloaded641 *%2$s is the size of the data we've uploaded */640 %1$s is the size of the data we've downloaded 641 %2$s is the size of the data we've uploaded */ 642 642 g_snprintf( buf, sizeof( buf ), Q_( "size|Down: %1$s, Up: %2$s" ), down, up ); 643 643 } else if( !strcmp( pch, "total-transfer" ) ) { … … 646 646 tr_strlsize( down, stats.downloadedBytes, sizeof( down ) ); 647 647 /* Translators: do not translate the "size|" disambiguation prefix. 648 *%1$s is the size of the data we've downloaded649 *%2$s is the size of the data we've uploaded */648 %1$s is the size of the data we've downloaded 649 %2$s is the size of the data we've uploaded */ 650 650 g_snprintf( buf, sizeof( buf ), Q_( "size|Down: %1$s, Up: %2$s" ), down, up ); 651 651 } else { /* default is total-ratio */ -
trunk/libtransmission/shared.c
r5225 r5226 120 120 listen( s->bindSocket, 5 ); 121 121 } else { 122 tr_err( _( "%s: Unable toopen port %d to listen for incoming peer connections (errno %d - %s)" ),122 tr_err( _( "%s: Couldn't open port %d to listen for incoming peer connections (errno %d - %s)" ), 123 123 getKey(), s->publicPort, errno, tr_strerror(errno) ); 124 124 s->bindPort = -1; -
trunk/libtransmission/transmission.c
r5224 r5226 172 172 h->isPortSet = publicPort >= 0; 173 173 174 /* Translators: 175 * first %s is the application name 176 * second %s is the version number */ 174 /* first %s is the application name 175 second %s is the version number */ 177 176 snprintf( buf, sizeof( buf ), _( "%s %s started" ), 178 177 TR_NAME, LONG_VERSION_STRING ); -
trunk/libtransmission/upnp.c
r5224 r5226 89 89 devlist = upnpDiscover( 2000, NULL, NULL ); 90 90 if( devlist == NULL ) { 91 tr_err( _( "%s: upnpDiscover returned NULL(errno %d - %s)" ), getKey(), errno, tr_strerror(errno) );91 tr_err( _( "%s: upnpDiscover failed (errno %d - %s)" ), getKey(), errno, tr_strerror(errno) ); 92 92 } 93 93 errno = 0; 94 94 if( UPNP_GetValidIGD( devlist, &handle->urls, &handle->data, handle->lanaddr, sizeof(handle->lanaddr))) { 95 tr_inf( _( "%s: Found Internet Gateway Device '%s'" ), getKey(), handle->urls.controlURL );96 tr_inf( _( "%s: Local Address is '%s'" ), getKey(), handle->lanaddr );95 tr_inf( _( "%s: Found Internet Gateway Device \"%s\"" ), getKey(), handle->urls.controlURL ); 96 tr_inf( _( "%s: Local Address is \"%s\"" ), getKey(), handle->lanaddr ); 97 97 handle->state = TR_UPNP_IDLE; 98 98 handle->hasDiscovered = 1; … … 118 118 handle->data.servicetype, 119 119 portStr, "TCP" ); 120 tr_dbg( _( "%s: Stopping port forwarding of '%s', service '%s'" ),120 tr_dbg( _( "%s: Stopping port forwarding of \"%s\", service \"%s\"" ), 121 121 getKey(), handle->urls.controlURL, handle->data.servicetype ); 122 122 handle->isMapped = 0; … … 147 147 handle->isMapped = !err; 148 148 } 149 tr_inf( _( "%s: Port forwarding via '%s', service '%s'. (local address: %s:%d)" ),149 tr_inf( _( "%s: Port forwarding via \"%s\", service \"%s\". (local address: %s:%d)" ), 150 150 getKey(), handle->urls.controlURL, handle->data.servicetype, handle->lanaddr, port ); 151 151 if( handle->isMapped ) { -
trunk/libtransmission/utils.c
r5224 r5226 530 530 531 531 case TR_ERROR_IO_PARENT: 532 return _( "D ownload directorydoesn't exist" );532 return _( "Destination folder doesn't exist" ); 533 533 case TR_ERROR_IO_PERMISSIONS: 534 534 return tr_strerror( EACCES ); … … 540 540 return tr_strerror( EMFILE ); 541 541 case TR_ERROR_IO_DUP_DOWNLOAD: 542 return _( "A torrent with this name and destination directoryalready exists." );542 return _( "A torrent with this name and destination folder already exists." ); 543 543 case TR_ERROR_IO_OTHER: 544 544 return _( "Generic I/O error" );
Note: See TracChangeset
for help on using the changeset viewer.