mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-02 11:40:58 +00:00
Translation fixes (#4621)
* Remove HTML tags from translateable string * Improve another string * Improve strings for plugin version check * Cleanup duplicate serials msg * JS translations * fmt
This commit is contained in:
@ -59,7 +59,8 @@ class FileManager:
|
||||
# Reset stream position to beginning of file
|
||||
file.seek(0)
|
||||
else:
|
||||
raise ValidationError(_(f'Unsupported file format: {ext.upper()}'))
|
||||
fmt = ext.upper()
|
||||
raise ValidationError(_(f'Unsupported file format: {fmt}'))
|
||||
except UnicodeEncodeError:
|
||||
raise ValidationError(_('Error reading file (invalid encoding)'))
|
||||
|
||||
|
Reference in New Issue
Block a user