{if $submitResult.name == 'delete'}
{"File deleted."|i18n}
{else}
{if $submitResult.status == 4}
{"File \"%s\" added."|i18n:$submitResult.title}
{else}
{"File \"%s\" could not be added!"|i18n:$submitResult.title}
{if $submitResult.status == 3}
{"Could not save the uploaded file %s."|i18n:$submitResult.title}
{elseif $submitResult.status == 2}
{"Could not attach uploaded file!"|i18n}
{"System is configured to allow only %d B per file, and this file is %d in size."|i18n:$maxFileSize:$submitResult.filesize}
{elseif $submitResult.status == 1}
{"Could not get uploaded file: %s"|i18n:$submitResult.message}
{"Server configuration informations: upload_max_filesize = %s, post_max_size = %s"|i18n:$submitResult.upload_max_filesize:$submitResult.post_max_size}
{else}
{"There was an error uploading your file, most likely caused by a PHP INI setting limiting the size of file uploads. Please contact your webhost or system administrator."|i18n}
{/if}
{/if}
{/if}