421 .format(uinfo)) |
421 .format(uinfo)) |
422 if "remote" in infoDict: |
422 if "remote" in infoDict: |
423 if infoDict["remote"] == (0, 0, 0, 0): |
423 if infoDict["remote"] == (0, 0, 0, 0): |
424 rinfo = self.trUtf8("synched") |
424 rinfo = self.trUtf8("synched") |
425 else: |
425 else: |
426 l = [] |
426 li = [] |
427 if infoDict["remote"][0]: |
427 if infoDict["remote"][0]: |
428 l.append(self.trUtf8("1 or more incoming")) |
428 li.append(self.trUtf8("1 or more incoming")) |
429 if infoDict["remote"][1]: |
429 if infoDict["remote"][1]: |
430 l.append(self.trUtf8("{0} outgoing")\ |
430 li.append(self.trUtf8("{0} outgoing") |
431 .format(infoDict["remote"][1])) |
431 .format(infoDict["remote"][1])) |
432 if infoDict["remote"][2]: |
432 if infoDict["remote"][2]: |
433 l.append(self.trUtf8("%n incoming bookmark(s)", "", |
433 li.append(self.trUtf8("%n incoming bookmark(s)", "", |
434 infoDict["remote"][2])) |
434 infoDict["remote"][2])) |
435 if infoDict["remote"][3]: |
435 if infoDict["remote"][3]: |
436 l.append(self.trUtf8("%n outgoing bookmark(s)", "", |
436 li.append(self.trUtf8("%n outgoing bookmark(s)", "", |
437 infoDict["remote"][3])) |
437 infoDict["remote"][3])) |
438 rinfo = "<br/>".join(l) |
438 rinfo = "<br/>".join(li) |
439 info.append(self.trUtf8( |
439 info.append(self.trUtf8( |
440 "<tr><td><b>Remote Status</b></td><td>{0}</td></tr>") |
440 "<tr><td><b>Remote Status</b></td><td>{0}</td></tr>") |
441 .format(rinfo)) |
441 .format(rinfo)) |
442 if "mq" in infoDict: |
442 if "mq" in infoDict: |
443 if infoDict["mq"] == (0, 0): |
443 if infoDict["mq"] == (0, 0): |
444 qinfo = self.trUtf8("empty queue") |
444 qinfo = self.trUtf8("empty queue") |
445 else: |
445 else: |
446 l = [] |
446 li = [] |
447 if infoDict["mq"][0]: |
447 if infoDict["mq"][0]: |
448 l.append(self.trUtf8("{0} applied") |
448 li.append(self.trUtf8("{0} applied") |
449 .format(infoDict["mq"][0])) |
449 .format(infoDict["mq"][0])) |
450 if infoDict["mq"][1]: |
450 if infoDict["mq"][1]: |
451 l.append(self.trUtf8("{0} unapplied") |
451 li.append(self.trUtf8("{0} unapplied") |
452 .format(infoDict["mq"][1])) |
452 .format(infoDict["mq"][1])) |
453 qinfo = "<br/>".join(l) |
453 qinfo = "<br/>".join(li) |
454 info.append(self.trUtf8( |
454 info.append(self.trUtf8( |
455 "<tr><td><b>Queues Status</b></td><td>{0}</td></tr>") |
455 "<tr><td><b>Queues Status</b></td><td>{0}</td></tr>") |
456 .format(qinfo)) |
456 .format(qinfo)) |
457 info.append("</table>") |
457 info.append("</table>") |
458 else: |
458 else: |