Apply suggested changes to alert strings

Co-authored-by: Scott Feeney <scott@oceanbase.org>
Co-authored-by: Lim Chee Aun <cheeaun@gmail.com>
This commit is contained in:
Stefano Pigozzi 2024-09-05 10:41:09 +02:00
parent 78036d08a5
commit 8df2f55f5b
No known key found for this signature in database
GPG key ID: 5ADA3868646C3FC0

View file

@ -605,11 +605,11 @@ function Compose({
if (item.kind === 'file') {
const file = item.getAsFile();
if (!file) {
alert(`Could not access the given attachment.`);
alert(t`Unable to attach file.`);
return;
}
else if (supportedMimeTypes !== undefined && !supportedMimeTypes.includes(file.type)) {
alert(`Your instance does not allow attachments of type "${file.type}".`);
alert(t`File "${file.name}" is not supported by your instance.`);
return;
}
else {