Rename language variable to `wcf.upload.error.adopt`
authorOlaf Braun <info@braun-development.de>
Tue, 1 Oct 2024 13:03:45 +0000 (15:03 +0200)
committerOlaf Braun <info@braun-development.de>
Tue, 1 Oct 2024 13:03:45 +0000 (15:03 +0200)
wcfsetup/install/files/lib/system/form/builder/field/FileProcessorFormField.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index 2093900ac917120ffa1c22360dac4b6fc0bf7ab9..c1a229ad5697e45a4384e471e84e256cb2db232f 100644 (file)
@@ -208,7 +208,7 @@ final class FileProcessorFormField extends AbstractFormField
                 $this->addValidationError(
                     new FormFieldValidationError(
                         'adopt',
-                        'wcf.form.field.fileProcessor.error.adopt',
+                        'wcf.upload.error.adopt',
                         ['file' => $file]
                     )
                 );
index dc89e19e1a2d8c020ffa8dd2a8b023b07ae83e4b..461b3fff93e91f40099de8b2faf6a488d1a5f8c3 100644 (file)
@@ -4099,7 +4099,6 @@ Dateianhänge:
                <item name="wcf.form.field.upload.error.maximumImageHeight"><![CDATA[Die Datei „{$file->getFilename()}“ darf maximal {#$maximumImageHeight} Pixel hoch sein.]]></item>
                <item name="wcf.form.field.upload.error.minimum"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du musst{else}Sie müssen{/if} mindestens {if $minimum > 1}{#$minimum} Dateien{else}eine Datei{/if} hochladen.]]></item>
                <item name="wcf.form.field.upload.error.maximum"><![CDATA[{if LANGUAGE_USE_INFORMAL_VARIANT}Du darfst{else}Sie dürfen{/if} maximal {if $maximum > 1}{#$maximum} Dateien{else}eine Datei{/if} hochladen.]]></item>
-               <item name="wcf.form.field.fileProcessor.error.adopt"><![CDATA[Die Datei „{$file->filename}“ kann nicht zugewiesen werden.]]></item>
        </category>
        <category name="wcf.image">
                <item name="wcf.image.coverPhoto"><![CDATA[Titelbild]]></item>
@@ -5567,6 +5566,7 @@ Benachrichtigungen auf <a href="{link isHtmlEmail=true}{/link}">{PAGE_TITLE|phra
                <item name="wcf.upload.error.fileExtensionNotPermitted"><![CDATA[Der Dateityp von „{$filename}“ ist unzulässig.]]></item>
                <item name="wcf.upload.error.fileSizeTooLarge"><![CDATA[Die Datei ist zu groß.]]></item>
                <item name="wcf.upload.error.maximumCountReached"><![CDATA[Es {plural value=$maximumCount 1='darf nur eine Datei' other='dürfen nur # Dateien'} hochgeladen werden.]]></item>
+               <item name="wcf.upload.error.adopt"><![CDATA[Die Datei „{$file->filename}“ kann nicht zugewiesen werden.]]></item>
        </category>
 </import>
 <delete>
index da60a803d6d0e06772c09da699de54eefeac9bdf..c6877efa42ee885befee133ff0d7cd641a738a5e 100644 (file)
@@ -4045,7 +4045,6 @@ Attachments:
                <item name="wcf.form.field.upload.error.maximumImageHeight"><![CDATA[The file “{$file->getFilename()}” may have a maximum height of {#$maximumImageHeight} pixels.]]></item>
                <item name="wcf.form.field.upload.error.minimum"><![CDATA[You must upload at least {if $minimum > 1}{#$minimum} files{else}one file{/if}.]]></item>
                <item name="wcf.form.field.upload.error.maximum"><![CDATA[You can upload a maximum of {if $maximum > 1}{#$maximum} files{else}one file{/if}.]]></item>
-               <item name="wcf.form.field.fileProcessor.error.adopt"><![CDATA[The file „{$file->filename}“ cannot be assigned.]]></item>
        </category>
        <category name="wcf.image">
                <item name="wcf.image.coverPhoto"><![CDATA[Cover Photo]]></item>
@@ -5569,6 +5568,7 @@ your notifications on <a href="{link isHtmlEmail=true}{/link}">{PAGE_TITLE|phras
                <item name="wcf.upload.error.fileExtensionNotPermitted"><![CDATA[The file type of “{$filename}” is not permitted.]]></item>
                <item name="wcf.upload.error.fileSizeTooLarge"><![CDATA[The file is too large.]]></item>
                <item name="wcf.upload.error.maximumCountReached"><![CDATA[{plural value=$maximumCount 1='Only one file' other='Only up to # files'} may be uploaded.]]></item>
+               <item name="wcf.upload.error.adopt"><![CDATA[The file „{$file->filename}“ cannot be assigned.]]></item>
        </category>
 </import>
 <delete>