Add the missing phrases file validation errors
authorAlexander Ebert <ebert@woltlab.com>
Tue, 7 Jan 2025 15:29:39 +0000 (16:29 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 7 Jan 2025 15:29:39 +0000 (16:29 +0100)
See https://www.woltlab.com/community/thread/310398-file-processor-sprachvariablen-f%C3%BCr-validierungsfehler-beim-upload/

wcfsetup/install/files/lib/system/event/listener/PreloadPhrasesCollectingListener.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 13c7e60ae605302733b0a0ba2ddec53f8dfc9ad3..0da53dc534ff82d0b0cff1bb228e5e78a76f54bb 100644 (file)
@@ -156,6 +156,8 @@ final class PreloadPhrasesCollectingListener
         $event->preload('wcf.upload.error.maximumCountReached');
         $event->preload('wcf.upload.error.delete.permissionDenied');
         $event->preload('wcf.upload.error.delete.unknownError');
+        $event->preload('wcf.upload.validation.error.noImage');
+        $event->preload('wcf.upload.validation.error.tooSmall');
 
         $event->preload('wcf.user.activityPoint');
         $event->preload('wcf.user.language');
index 710a8b76ef949cdcfc658922032f6ba967ec6181..0e1770a68b3e9c91b61645fa625f6b27004ddd8b 100644 (file)
@@ -5569,6 +5569,8 @@ Benachrichtigungen auf <a href="{link isHtmlEmail=true}{/link}">{PAGE_TITLE|phra
                <item name="wcf.upload.error.adopt"><![CDATA[Die Datei „{$filename}“ kann nicht zugewiesen werden.]]></item>
                <item name="wcf.upload.error.delete.unknownError"><![CDATA[Beim Löschen der Datei ist ein unbekannter Fehler aufgetreten.]]></item>
                <item name="wcf.upload.error.delete.permissionDenied"><![CDATA[Die Datei kann nicht gelöscht werden, {if LANGUAGE_USE_INFORMAL_VARIANT}verwende{else}verwenden Sie{/if} stattdessen <strong>Ersetzen</strong>, um die Datei zu ersetzen.]]></item>
+               <item name="wcf.upload.validation.error.noImage"><![CDATA[Die Datei ist kein Bild.]]></item>
+               <item name="wcf.upload.validation.error.tooSmall"><![CDATA[Die Datei ist zu klein.]]></item>
        </category>
 </import>
 <delete>
index cfdcb026b50e22f8841b5c89e6ec11d1e25d40e7..c558c4a0403ac560aac8ff9f26fc22681d4d4a5c 100644 (file)
@@ -5560,7 +5560,7 @@ your notifications on <a href="{link isHtmlEmail=true}{/link}">{PAGE_TITLE|phras
        </category>
        <category name="wcf.smiley"/>
        <category name="wcf.upload">
-               <item name="wcf.upload.error.noImage"><![CDATA[The uploaded file is no image.]]></item>
+               <item name="wcf.upload.error.noImage"><![CDATA[The uploaded file is not an image.]]></item>
                <item name="wcf.upload.error.reachedRemainingLimit"><![CDATA[You have selected too many files. You can only upload {#$maxFiles} more file{if $maxFiles != 1}s{/if}.]]></item>
                <item name="wcf.upload.error.uploadFailed"><![CDATA[An unknown error occurred during the upload.]]></item>
 
@@ -5571,6 +5571,8 @@ your notifications on <a href="{link isHtmlEmail=true}{/link}">{PAGE_TITLE|phras
                <item name="wcf.upload.error.adopt"><![CDATA[The file “{$filename}” cannot be assigned.]]></item>
                <item name="wcf.upload.error.delete.unknownError"><![CDATA[An unknown error occurred while deleting the file.]]></item>
                <item name="wcf.upload.error.delete.permissionDenied"><![CDATA[The file cannot be deleted, use <strong>Replace</strong> instead to swap out the file.]]></item>
+               <item name="wcf.upload.validation.error.noImage"><![CDATA[The file is not an image.]]></item>
+               <item name="wcf.upload.validation.error.tooSmall"><![CDATA[The file is too small.]]></item>
        </category>
 </import>
 <delete>