Do it right!
This commit is contained in:
+6
-5
@@ -380,11 +380,12 @@ class NWProject():
|
|||||||
|
|
||||||
elif fileVersion != "1.1" and fileVersion != "1.2":
|
elif fileVersion != "1.1" and fileVersion != "1.2":
|
||||||
self.makeAlert((
|
self.makeAlert((
|
||||||
"Unknown or unsupported %s project file format. "
|
"Unknown or unsupported {nw:s} project file format. "
|
||||||
"The project cannot be opened by this version of %s. "
|
"The project cannot be opened by this version of {nw:s}. "
|
||||||
"The file was saved with novelWriter version %s."
|
"The file was saved with {nw:s} version {vers:s}."
|
||||||
) % (
|
).format(
|
||||||
nw.__package__, nw.__package__, appVersion
|
nw = nw.__package__,
|
||||||
|
vers = appVersion,
|
||||||
), nwAlert.ERROR)
|
), nwAlert.ERROR)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user