fix(translate): French error messages and update mock users for quota checks
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m52s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m52s
This commit is contained in:
@@ -287,16 +287,16 @@ class FileValidator:
|
||||
if extension.lower() == ".pdf":
|
||||
if not content.startswith(self.PDF_MAGIC_BYTES):
|
||||
raise ValidationError(
|
||||
"File content does not match expected PDF format. "
|
||||
"The file may be corrupted.",
|
||||
"Le contenu du fichier ne correspond pas au format PDF attendu. "
|
||||
"Le fichier est peut-être corrompu.",
|
||||
code="invalid_file_content",
|
||||
)
|
||||
return
|
||||
# Office files are ZIP-based
|
||||
if not content.startswith(self.OFFICE_MAGIC_BYTES):
|
||||
raise ValidationError(
|
||||
"File content does not match expected Office format. "
|
||||
"The file may be corrupted or not a valid Office document.",
|
||||
"Le contenu du fichier ne correspond pas au format Office attendu. "
|
||||
"Le fichier est peut-être corrompu ou n'est pas un document Office valide.",
|
||||
code="invalid_file_content",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user