Changeset 3333


Ignore:
Timestamp:
Oct 8, 2007, 7:40:34 PM (15 years ago)
Author:
charles
Message:

i18n cleanup: (1) take strings that were very similar and make them identical, so there are fewer strings to translate. (2) unmark things that shouldn't've been marked for translation, such as the UTF-8 infinity symbol.

Location:
trunk/gtk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/dialogs.c

    r3206 r3333  
    257257    if( 0 > count )
    258258    {
    259         gtk_label_set_text( label, _("?") );
     259        gtk_label_set_text( label, "?" );
    260260    }
    261261    else
  • trunk/gtk/ipc.c

    r3206 r3333  
    195195      0 > ipc_addmsg( con->msgs, IPC_MSG_UPLIMIT,      smsg_int ) )
    196196  {
    197       errmsg( con->u.serv.wind, _("Failed to set up IPC:\n%s"),
     197      errmsg( con->u.serv.wind, _("Failed to set up IPC: %s"),
    198198              strerror( errno ) );
    199199      g_free( con );
     
    227227  if( NULL == con->msgs )
    228228  {
    229       fprintf( stderr, _("failed to set up IPC: %s\n"), strerror( errno ) );
     229      g_message( _("Failed to set up IPC: %s"), strerror( errno ) );
    230230      g_free( con );
    231231      return FALSE;
     
    307307
    308308 fail:
    309   errmsg(con->u.serv.wind, _("Failed to set up socket:\n%s"),
     309  errmsg(con->u.serv.wind, _("Failed to set up socket: %s"),
    310310         strerror(errno));
    311311  if(0 <= con->fd)
     
    330330
    331331  if(0 > (con->fd = socket(AF_UNIX, SOCK_STREAM, 0))) {
    332     fprintf(stderr, _("failed to create socket: %s\n"), strerror(errno));
     332    g_message( _("Failed to create socket: %s"), strerror(errno));
    333333    return FALSE;
    334334  }
     
    339339
    340340  if(0 > connect(con->fd, (struct sockaddr*)&addr, SUN_LEN(&addr))) {
    341     fprintf(stderr, _("failed to connect to %s: %s\n"), path, strerror(errno));
     341    g_message( _("Failed to connect to %s: %s"), path, strerror(errno));
    342342    return FALSE;
    343343  }
     
    429429        {
    430430            case EPERM:
    431                 errmsg( con->u.serv.wind, _("bad IPC protocol version") );
     431                errmsg( con->u.serv.wind, _("Bad IPC protocol version") );
    432432                break;
    433433            case EINVAL:
     
    465465        {
    466466            case EPERM:
    467                 fprintf( stderr, _("bad IPC protocol version\n") );
     467                g_message( _("Bad IPC protocol version") );
    468468                break;
    469469            case EINVAL:
    470                 fprintf( stderr, _("IPC protocol parse error\n") );
     470                g_message( _("IPC protocol parse error") );
    471471                break;
    472472            default:
    473                 fprintf( stderr, _("IPC parsing failed: %s\n"),
    474                          strerror( errno ) );
     473                g_message( _("IPC parsing failed: %s"), strerror( errno ) );
    475474                break;
    476475        }
  • trunk/gtk/makemeta-ui.c

    r3111 r3333  
    195195    g_snprintf( buf, sizeof(buf), "<i>%s; %d %s</i>",
    196196                pch, fileCount,
    197                 ngettext("file", "files", fileCount) );
     197                ngettext("File", "Files", fileCount) );
    198198    gtk_label_set_markup ( GTK_LABEL(ui->size_lb), buf );
    199199    g_free( pch );
     
    202202    g_snprintf( buf, sizeof(buf), "<i>%d %s @ %s</i>",
    203203                pieceCount,
    204                 ngettext("piece", "pieces", pieceCount),
     204                ngettext("Piece", "Pieces", pieceCount),
    205205                pch );
    206206    gtk_label_set_markup ( GTK_LABEL(ui->pieces_lb), buf );
  • trunk/gtk/torrent-inspector.c

    r3245 r3333  
    409409{
    410410  if( 0 > count ) {
    411     gtk_label_set_text( GTK_LABEL(l), _("?") );
     411    gtk_label_set_text( GTK_LABEL(l), "?" );
    412412  } else {
    413413    char str[16];
     
    837837
    838838  pch = stat->startDate ? rfc822date (stat->startDate)
    839                         : g_strdup_printf (_("?"));
     839                        : g_strdup_printf ("?");
    840840  gtk_label_set_text (GTK_LABEL(a->date_added_lb), pch);
    841841  g_free (pch);
    842842
    843843  pch = stat->activityDate ? rfc822date (stat->activityDate)
    844                            : g_strdup_printf (_("?"));
     844                           : g_strdup_printf ("?");
    845845  gtk_label_set_text (GTK_LABEL(a->last_activity_lb), pch);
    846846  g_free (pch);
     
    15021502  row = 0;
    15031503  t = hig_workarea_create ();
    1504   hig_workarea_add_section_title (t, &row, _("Transfer Bandwidth"));
     1504  hig_workarea_add_section_title (t, &row, _("Speed Limits") );
    15051505  hig_workarea_add_section_spacer (t, row, 2);
    15061506
  • trunk/gtk/util.c

    r3281 r3333  
    128128  if(0 == down)
    129129    /* this is a UTF-8 infinity symbol */
    130     return g_strdup(_("\xE2\x88\x9E"));
     130    return g_strdup("\xE2\x88\x9E");
    131131
    132132  ratio = (double)up / (double)down;
Note: See TracChangeset for help on using the changeset viewer.