Form files: the visitor is told when the problem is the file — why and what to do; UTF-8 file names

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-13 16:51:05 +01:00
co-authored by Claude Fable 5.2
parent b6f9f34705
commit 97202ee03e
18 changed files with 335 additions and 128 deletions
+10 -1
View File
@@ -69,11 +69,20 @@ export const notificationsFields: Field[] = [
formText('fileType', { en: 'Wrong file type', pl: 'Niedozwolony typ pliku' }, {
description: { en: 'Use {file} for the file name and {types} for the accepted types.', pl: 'Użyj {file}, aby wstawić nazwę pliku, i {types} — dozwolone typy.' },
}),
formText('fileRefused', { en: 'File refused', pl: 'Plik odrzucony' }, {
description: {
en: 'For a program, an archive, macros or content that does not match; use {file} and {types}.',
pl: 'Dla programu, archiwum, makr lub niezgodnej zawartości; użyj {file} i {types}.',
},
}),
formText('fileCount', { en: 'Too many files', pl: 'Za dużo plików' }, {
description: { en: 'Use {field} for the field label and {max} for the limit.', pl: 'Użyj {field}, aby wstawić etykietę pola, i {max} — limit.' },
}),
formText('fileNotSent', { en: 'File not sent', pl: 'Plik niewysłany' }, {
description: { en: 'Shown when the file could not be sent by e-mail.', pl: 'Widoczny, gdy pliku nie udało się wysłać e-mailem.' },
description: { en: 'Shown when the file could not be sent by e-mail; use {file} for the file name.', pl: 'Widoczny, gdy pliku nie udało się wysłać e-mailem; użyj {file}, aby wstawić nazwę pliku.' },
}),
formText('fileOptional', { en: 'Optional file hint', pl: 'Wskazówka: plik opcjonalny' }, {
description: { en: 'Added to a file message when the file field is not required.', pl: 'Dodawana do komunikatu o pliku, gdy pole pliku nie jest wymagane.' },
}),
formText('fileRemove', { en: 'Remove file button', pl: 'Przycisk usuwania pliku' }, {
description: { en: 'Use {file} for the file name.', pl: 'Użyj {file}, aby wstawić nazwę pliku.' },