Fix a bug in Build and Constants, and clean up some more nested translates
This commit is contained in:
@@ -292,8 +292,8 @@ class Tokenizer():
|
||||
|
||||
docSize = len(self.theText)
|
||||
if docSize > nwConst.MAX_DOCSIZE:
|
||||
errVal = self.tr("Document '{0}' is too big ({1}). Skipping.").format(
|
||||
self.theItem.itemName, f"{docSize/1.0e6:.2f} MB"
|
||||
errVal = self.tr("Document '{0}' is too big ({1} MB). Skipping.").format(
|
||||
self.theItem.itemName, f"{docSize/1.0e6:.2f}"
|
||||
)
|
||||
self.theText = "# %s\n\n%s\n\n" % (self.tr("ERROR"), errVal)
|
||||
self.errData.append(errVal)
|
||||
|
||||
Reference in New Issue
Block a user