Changeset 6020


Ignore:
Timestamp:
Jun 3, 2008, 8:13:22 PM (14 years ago)
Author:
charles
Message:

(gtk) #930: Patch to reorder format string args for translation

Location:
trunk/gtk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/details.c

    r5996 r6020  
    742742  char *pch;
    743743  char sizeStr[128];
     744  char countStr[128];
    744745  char buf[256];
    745746  GtkTextBuffer * b;
     
    748749  hig_workarea_add_section_title (t, &row, _("Details"));
    749750
     751    g_snprintf( countStr, sizeof( countStr ),
     752                ngettext( "%d Piece", "%d Pieces", info->pieceCount ),
     753                info->pieceCount );
    750754    tr_strlsize( sizeStr, info->pieceSize, sizeof(sizeStr) );
    751755    g_snprintf( buf, sizeof( buf ),
    752                 /* %1$'d is number of pieces
     756                /* %1$s is number of pieces;
    753757                   %2$s is how big each piece is */
    754                 ngettext( "%1$'d Piece @ %2$s",
    755                           "%1$'d Pieces @ %2$s",
    756                           info->pieceCount ),
    757                 info->pieceCount, sizeStr );
     758                _( "%1$s @ %2$s" ),
     759              countStr, sizeStr );
     760
    758761    l = gtk_label_new (buf);
    759762    hig_workarea_add_row (t, &row, _("Pieces:"), l, NULL);
     
    879882                      *stat->errorString ? stat->errorString : _("None"));
    880883
    881   refresh_time_lb( a->date_added_lb, stat->startDate );
     884  refresh_time_lb( a->date_added_lb, stat->addedDate );
    882885
    883886  refresh_time_lb( a->last_activity_lb, stat->activityDate );
  • trunk/gtk/makemeta-ui.c

    r6007 r6020  
    234234        *buf = '\0';
    235235    else {
     236        char countStr[512];
     237        g_snprintf( countStr, sizeof( countStr ),
     238                    ngettext( "%d Piece", "%d Pieces", builder->pieceCount ),
     239                    builder->pieceCount );
    236240        tr_strlsize( sizeStr, builder->pieceSize, sizeof(sizeStr) );
    237241        g_snprintf( buf, sizeof( buf ),
    238                     /* %1$'s is number of pieces;
     242                    /* %1$s is number of pieces;
    239243                       %2$s is how big each piece is */
    240                     ngettext( "<i>%1$'d Piece @ %2$s</i>",
    241                               "<i>%1$'d Pieces @ %2$s</i>",
    242                               builder->pieceCount ),
    243                     builder->pieceCount, sizeStr );
     244                    _( "%1$s @ %2$s" ),
     245                    countStr,
     246                    sizeStr );
    244247    }
    245248    gtk_label_set_markup ( GTK_LABEL(ui->pieces_lb), buf );
Note: See TracChangeset for help on using the changeset viewer.