Add images to tasks
Everyone who may comment on a task sends images to it, e.g. photos taken with a phone. The server stores an upright, at most 2560 px JPEG without EXIF data (no location) and a 400 px thumbnail on the private disk, served only to those who see the job. Uploaders change captions (also the alt text) and remove their own images; admin and management may remove anyone's (jobs.remove-any-task-image). Removing a task also removes its image files. Livewire's temporary upload limit is raised to PHP's 40 MB so that the page's own 12 MB limit gives a translated message. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
This commit is contained in:
@@ -147,6 +147,42 @@ return [
|
||||
'not_author' => 'You can edit and remove only your own comments.',
|
||||
],
|
||||
],
|
||||
'images' => [
|
||||
'title' => 'Images',
|
||||
'list_of' => 'Images: :title',
|
||||
'empty' => 'No images.',
|
||||
'new' => 'Send an image',
|
||||
'hint' => 'JPEG, PNG, WebP or GIF, at most :size MB. On a phone you can take a photo with the camera.',
|
||||
'caption' => 'Caption',
|
||||
'caption_optional' => 'Caption (optional)',
|
||||
'add' => 'Send image',
|
||||
'add_named' => 'Send image to task :title',
|
||||
'uploading' => 'Uploading the image…',
|
||||
'saving' => 'Saving the image…',
|
||||
'alt' => 'Image :number, sent by :uploader :at',
|
||||
'opens_in_new_tab' => '(opens in a new tab)',
|
||||
'download' => 'Download',
|
||||
'download_named' => 'Download image: :image',
|
||||
'edit_caption' => 'Edit caption',
|
||||
'edit_caption_named' => 'Edit caption: :image',
|
||||
'save' => 'Save',
|
||||
'cancel' => 'Cancel',
|
||||
'remove' => 'Remove',
|
||||
'remove_named' => 'Remove image: :image',
|
||||
'remove_title' => 'Remove the image?',
|
||||
'remove_question' => 'The image will be removed permanently.',
|
||||
'added' => 'Image sent.',
|
||||
'caption_saved' => 'Caption saved.',
|
||||
'removed' => 'Image removed.',
|
||||
'not_found' => 'The image was not found. Refresh the page.',
|
||||
'errors' => [
|
||||
'photo_required' => 'Choose an image.',
|
||||
'not_image' => 'The file is not an image. Choose a JPEG, PNG, WebP or GIF image.',
|
||||
'too_large' => 'An image may be at most :size MB.',
|
||||
'invalid_caption' => 'A caption may be at most 255 characters.',
|
||||
'not_uploader' => 'You can edit and remove only images you sent.',
|
||||
],
|
||||
],
|
||||
'errors' => [
|
||||
'title_required' => 'Enter the task name.',
|
||||
'invalid_title' => 'The name may be at most 255 characters.',
|
||||
|
||||
@@ -147,6 +147,42 @@ return [
|
||||
'not_author' => 'Voit muokata ja poistaa vain omia kommenttejasi.',
|
||||
],
|
||||
],
|
||||
'images' => [
|
||||
'title' => 'Kuvat',
|
||||
'list_of' => 'Kuvat: :title',
|
||||
'empty' => 'Ei kuvia.',
|
||||
'new' => 'Lähetä kuva',
|
||||
'hint' => 'JPEG, PNG, WebP tai GIF, enintään :size Mt. Puhelimessa voit ottaa kuvan kameralla.',
|
||||
'caption' => 'Kuvateksti',
|
||||
'caption_optional' => 'Kuvateksti (vapaaehtoinen)',
|
||||
'add' => 'Lähetä kuva',
|
||||
'add_named' => 'Lähetä kuva tehtävälle :title',
|
||||
'uploading' => 'Ladataan kuvaa…',
|
||||
'saving' => 'Tallennetaan kuvaa…',
|
||||
'alt' => 'Kuva :number, lähettänyt :uploader :at',
|
||||
'opens_in_new_tab' => '(avautuu uuteen välilehteen)',
|
||||
'download' => 'Lataa',
|
||||
'download_named' => 'Lataa kuva: :image',
|
||||
'edit_caption' => 'Muokkaa kuvatekstiä',
|
||||
'edit_caption_named' => 'Muokkaa kuvatekstiä: :image',
|
||||
'save' => 'Tallenna',
|
||||
'cancel' => 'Peruuta',
|
||||
'remove' => 'Poista',
|
||||
'remove_named' => 'Poista kuva: :image',
|
||||
'remove_title' => 'Poistetaanko kuva?',
|
||||
'remove_question' => 'Kuva poistetaan pysyvästi.',
|
||||
'added' => 'Kuva lähetetty.',
|
||||
'caption_saved' => 'Kuvateksti tallennettu.',
|
||||
'removed' => 'Kuva poistettu.',
|
||||
'not_found' => 'Kuvaa ei löytynyt. Päivitä sivu.',
|
||||
'errors' => [
|
||||
'photo_required' => 'Valitse kuva.',
|
||||
'not_image' => 'Tiedosto ei ole kuva. Valitse JPEG-, PNG-, WebP- tai GIF-kuva.',
|
||||
'too_large' => 'Kuva voi olla enintään :size Mt.',
|
||||
'invalid_caption' => 'Kuvateksti voi olla enintään 255 merkkiä.',
|
||||
'not_uploader' => 'Voit muokata ja poistaa vain itse lähettämiäsi kuvia.',
|
||||
],
|
||||
],
|
||||
'errors' => [
|
||||
'title_required' => 'Anna tehtävän nimi.',
|
||||
'invalid_title' => 'Nimen pituus voi olla enintään 255 merkkiä.',
|
||||
|
||||
Reference in New Issue
Block a user