Last pass of fixes and tweaks

This commit is contained in:
Veronica K. B. Olsen
2021-02-15 17:52:04 +01:00
parent 6d56bc7c0c
commit 31b665d344
6 changed files with 21 additions and 29 deletions
+3 -1
View File
@@ -175,7 +175,9 @@ class GuiMainStatus(QStatusBar):
def setStats(self, pWC, sWC):
"""Set the current project statistics.
"""
self.statsText.setText("%s: %s (%s)" % (self.tr("Words"), f"{pWC:n}", f"{sWC:+n}"))
self.statsText.setText(self.tr("{0}: {1} ({2})").format(
self.tr("Words"), f"{pWC:n}", f"{sWC:+n}")
)
self.statsText.setToolTip(self.tr("Project word count (session change)"))
return