Skip to content

Commit

Permalink
Merge branch 'i18n' of https://github.com/bkmeneguello/novelWriter in…
Browse files Browse the repository at this point in the history
…to i18n
  • Loading branch information
bkmeneguello committed Feb 15, 2021
2 parents cf79fef + 2f57a4f commit ebf9c6d
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions nw/guimain.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,16 +466,13 @@ def openProject(self, projFile):
lockDetails = (
"<br>%s" % self.tr(
"The project was locked by the computer "
"'{computerName}' ({osName} {osVersion}), "
"last active on {activeTime}"
"'{0}' ({1} {2}), last active on {3}."
)
).format(
computerName = self.theProject.lockedBy[0],
osName = self.theProject.lockedBy[1],
osVersion = self.theProject.lockedBy[2],
activeTime = datetime.fromtimestamp(
int(self.theProject.lockedBy[3])
).strftime("%x %X")
self.theProject.lockedBy[0],
self.theProject.lockedBy[1],
self.theProject.lockedBy[2],
datetime.fromtimestamp(int(self.theProject.lockedBy[3])).strftime("%x %X")
)
except Exception:
lockDetails = ""
Expand Down

0 comments on commit ebf9c6d

Please sign in to comment.