diff options
Diffstat (limited to 'core/modules/file/file.api.php')
-rw-r--r-- | core/modules/file/file.api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/file/file.api.php b/core/modules/file/file.api.php index 429dbd037814..fa86532f7c48 100644 --- a/core/modules/file/file.api.php +++ b/core/modules/file/file.api.php @@ -77,10 +77,10 @@ function hook_file_validate(\Drupal\file\FileInterface $file) { $errors = []; if (!$file->getFilename()) { - $errors[] = t("The file's name is empty. Please give a name to the file."); + $errors[] = t("The file's name is empty. Give a name to the file."); } if (strlen($file->getFilename()) > 255) { - $errors[] = t("The file's name exceeds the 255 characters limit. Please rename the file and try again."); + $errors[] = t("The file's name exceeds the 255 characters limit. Rename the file and try again."); } return $errors; |