Merge branch 'i18n' of https://github.com/bkmeneguello/novelWriter into i18n
This commit is contained in:
commit
ed356ba85d
3 files changed
+39
-42
No files matched your search
+5
-8
@@ -466,16 +466,13 @@ class GuiMain(QMainWindow):
|
||||
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 = ""
|
||||
|
||||
Reference in new issue
Block a user