Changeset 117 for trunk/gtk


Ignore:
Timestamp:
Feb 10, 2006, 5:58:08 AM (16 years ago)
Author:
joshe
Message:

Display an unknown number of seeders or leechers as ? instead of -1.

Location:
trunk/gtk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/dialogs.c

    r96 r117  
    421421  INFOLINEF(table, ii, "%i", _("Pieces:"), sb[id].info.pieceCount);
    422422  INFOLINEA(table, ii, _("Total Size:"), readablesize(sb[id].info.totalSize, 1));
    423   INFOLINEF(table, ii, "%i", _("Seeders:"), sb[id].seeders);
    424   INFOLINEF(table, ii, "%i", _("Leechers:"), sb[id].leechers);
     423  if(0 > sb[id].seeders)
     424    INFOLINE(table, ii, _("Seeders:"), _("?"));
     425  else
     426    INFOLINEF(table, ii, "%i", _("Seeders:"), sb[id].seeders);
     427  if(0 > sb[id].leechers)
     428    INFOLINE(table, ii, _("Leechers:"), _("?"));
     429  else
     430    INFOLINEF(table, ii, "%i", _("Leechers:"), sb[id].leechers);
    425431
    426432  INFOSEP(table, ii);
  • trunk/gtk/po/infiles

    r86 r117  
    1 # xgettext --files-from=po/infiles --default-domain=transmission-gtk --output-dir=po --add-comments --keyword=_ --keyword=N_
     1# xgettext --files-from=po/infiles --default-domain=transmission-gtk --output-dir=po --from-code=UTF-8 --add-comments --keyword=_ --keyword=N_
    22conf.c
    33dialogs.c
  • trunk/gtk/po/transmission-gtk.pot

    r96 r117  
    99"Project-Id-Version: PACKAGE VERSION\n"
    1010"Report-Msgid-Bugs-To: \n"
    11 "POT-Creation-Date: 2006-02-07 12:08-0500\n"
     11"POT-Creation-Date: 2006-02-10 00:50-0500\n"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    4444msgstr ""
    4545
    46 #: conf.c:115 dialogs.c:191 main.c:1014
     46#: conf.c:115 dialogs.c:191 main.c:1065
    4747#, c-format
    4848msgid ""
     
    168168msgstr ""
    169169
    170 #: dialogs.c:423
     170#: dialogs.c:424 dialogs.c:426
    171171msgid "Seeders:"
    172172msgstr ""
    173173
    174 #: dialogs.c:424
     174#: dialogs.c:424 dialogs.c:428
     175msgid "?"
     176msgstr ""
     177
     178#: dialogs.c:428 dialogs.c:430
    175179msgid "Leechers:"
    176180msgstr ""
    177181
    178 #: dialogs.c:428
     182#: dialogs.c:434
    179183msgid "Directory:"
    180184msgstr ""
    181185
    182 #: dialogs.c:429
     186#: dialogs.c:435
    183187msgid "Downloaded:"
    184188msgstr ""
    185189
    186 #: dialogs.c:430
     190#: dialogs.c:436
    187191msgid "Uploaded:"
    188192msgstr ""
    189193
    190 #: main.c:154
     194#: main.c:155
    191195msgid "Add"
    192196msgstr ""
    193197
    194 #: main.c:155
     198#: main.c:156
    195199msgid "Add a new torrent"
    196200msgstr ""
    197201
    198 #: main.c:156
     202#: main.c:157
    199203msgid "Start"
    200204msgstr ""
    201205
    202 #: main.c:158
     206#: main.c:159
    203207msgid "Start a torrent that is not running"
    204208msgstr ""
    205209
    206 #: main.c:159
     210#: main.c:160
    207211msgid "Stop"
    208212msgstr ""
    209213
    210 #: main.c:161
     214#: main.c:162
    211215msgid "Stop a torrent that is running"
    212216msgstr ""
    213217
    214 #: main.c:162
     218#: main.c:163
    215219msgid "Remove"
    216220msgstr ""
    217221
    218 #: main.c:163
     222#: main.c:164
    219223msgid "Remove a torrent"
    220224msgstr ""
    221225
    222 #: main.c:164
     226#: main.c:165
    223227msgid "Properties"
    224228msgstr ""
    225229
    226 #: main.c:165
     230#: main.c:166
    227231msgid "Show additional information about a torrent"
    228232msgstr ""
    229233
    230 #: main.c:166
     234#: main.c:167
    231235msgid "Preferences"
    232236msgstr ""
    233237
    234 #: main.c:167
     238#: main.c:168
    235239msgid "Customize application behavior"
    236240msgstr ""
    237241
    238 #: main.c:185
     242#: main.c:186
    239243msgid "Transmission"
    240244msgstr ""
    241245
    242 #: main.c:315 main.c:1026
     246#: main.c:316 main.c:518 main.c:1077
    243247#, c-format
    244248msgid "Failed to load the torrent file %s"
     
    249253msgstr[1] ""
    250254
    251 #: main.c:556
     255#: main.c:606
    252256msgid "Name"
    253257msgstr ""
    254258
    255259#. this string is only used to determing the size of the progress bar
    256 #: main.c:563
     260#: main.c:613
    257261msgid "  fnord    fnord  "
    258262msgstr ""
    259263
    260 #: main.c:566
     264#: main.c:616
    261265msgid "Progress"
    262266msgstr ""
    263267
    264 #: main.c:641
     268#: main.c:691
    265269#, c-format
    266270msgid "Checking existing files (%.1f%%)"
    267271msgstr ""
    268272
    269 #: main.c:643
     273#: main.c:693
    270274#, c-format
    271275msgid "Finishing in %02i:%02i:%02i (%.1f%%)"
    272276msgstr ""
    273277
    274 #: main.c:646
     278#: main.c:696
    275279#, c-format
    276280msgid "Seeding, uploading to %d of %d peer"
     
    279283msgstr[1] ""
    280284
    281 #: main.c:650
     285#: main.c:700
    282286msgid "Stopping..."
    283287msgstr ""
    284288
    285 #: main.c:652
     289#: main.c:702
    286290#, c-format
    287291msgid "Stopped (%.1f%%)"
    288292msgstr ""
    289293
    290 #: main.c:660
     294#: main.c:710
    291295msgid "Error: "
    292296msgstr ""
    293297
    294 #: main.c:664
     298#: main.c:714
    295299#, c-format
    296300msgid "Downloading from %i of %i peer"
     
    299303msgstr[1] ""
    300304
    301 #: main.c:697
     305#: main.c:748
    302306#, c-format
    303307msgid ""
     
    306310msgstr ""
    307311
    308 #: main.c:700
     312#: main.c:751
    309313#, c-format
    310314msgid ""
     
    313317msgstr ""
    314318
    315 #: main.c:748
     319#: main.c:799
    316320#, c-format
    317321msgid "     Total DL: %s/s     Total UL: %s/s"
Note: See TracChangeset for help on using the changeset viewer.