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