Skip to content

Commit

Permalink
Added Italian translation, fixed delete action color and modal icon (#82
Browse files Browse the repository at this point in the history
)

* Added Italian translation

* Fixed delete action color and modal icon

Fixed delete action color and modal icon

* Update README.md
  • Loading branch information
marcogermani87 authored Oct 20, 2024
1 parent f18521a commit 475b674
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Filament Spatie Laravel Backup

[![PHP Version Require](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/require/php)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
[![PHP Version Require](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/require/php)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
<a href="https://github.com/shuvroroy/filament-spatie-laravel-backup/actions"><img src="https://github.com/shuvroroy/filament-spatie-laravel-backup/workflows/run-tests/badge.svg" alt="Build Status"></a>
[![Latest Stable Version](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/v)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
[![Total Downloads](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/downloads)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
[![License](http://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/license)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
[![Latest Stable Version](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/v)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
[![Total Downloads](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/downloads)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)
[![License](https://poser.pugx.org/shuvroroy/filament-spatie-laravel-backup/license)](https://packagist.org/packages/shuvroroy/filament-spatie-laravel-backup)

This package provides a Filament page that you can create backup of your application. You'll find installation instructions and full documentation on [spatie/laravel-backup](https://spatie.be/docs/laravel-backup/v7/introduction).

Expand Down
70 changes: 70 additions & 0 deletions resources/lang/it/backup.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php

return [

'components' => [
'backup_destination_list' => [
'table' => [
'actions' => [
'download' => 'Download',
'delete' => 'Cancella',
],

'fields' => [
'path' => 'Percorso',
'disk' => 'Disco',
'date' => 'Data',
'size' => 'Dimensione',
],

'filters' => [
'disk' => 'Disco',
],
],
],

'backup_destination_status_list' => [
'table' => [
'fields' => [
'name' => 'Nome',
'disk' => 'Disco',
'healthy' => 'Salute',
'amount' => 'Quantità',
'newest' => 'Più recente',
'used_storage' => 'Storage Utilizzato',
],
],
],
],

'pages' => [
'backups' => [
'actions' => [
'create_backup' => 'Crea Backup',
],

'heading' => 'Backup',

'messages' => [
'backup_success' => 'Creazione di un nuovo backup in background.',
'backup_delete_success' => 'Eliminazione di questo backup in background.',
],

'modal' => [
'buttons' => [
'only_db' => 'Solo DB',
'only_files' => 'Solo File',
'db_and_files' => 'DB & File',
],

'label' => "Scegli un'opzione",
],

'navigation' => [
'group' => 'Impostazioni',
'label' => 'Backup',
],
],
],

];
2 changes: 2 additions & 0 deletions src/Components/BackupDestinationListRecords.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function table(Table $table): Table
->icon('heroicon-o-trash')
->visible(auth()->user()->can('delete-backup'))
->requiresConfirmation()
->color('danger')
->modalIcon('heroicon-o-trash')
->action(function (BackupDestination $record) {
SpatieBackupDestination::create($record->disk, config('backup.backup.name'))
->backups()
Expand Down

0 comments on commit 475b674

Please sign in to comment.