Skip to content

Commit

Permalink
Merge pull request #42 from InfinetyEs/revert-39-add-translation-files
Browse files Browse the repository at this point in the history
Revert "Add translation files"
  • Loading branch information
Krato authored Mar 19, 2019
2 parents c67272a + b232f8d commit ba3168e
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 60 deletions.
59 changes: 57 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@ You can install the package in any Laravel app that uses [Nova](https://nova.lar
composer require infinety-es/nova-filemanager
```

Next, publish config and translation files:
Next, publish config file:

```bash
php artisan vendor:publish --tag=filemanager-config
php artisan vendor:publish --tag=filemanager-lang
```

Also, you must register the tool with Nova. This is typically done in the `tools` method of the `NovaServiceProvider`.
Expand Down Expand Up @@ -173,6 +172,62 @@ return [

```



### Localization

Set your translations in the corresponding xx.json file located in /resources/lang/vendor/nova

```json
...

"Filemanager": "Gestor de archivos",
"Create folder": "Crear carpeta",
"Write a folder name": "Escribe el nombre de la carpeta",
"Create": "Crear",
"Creating": "Creando",
"Cancel": "Cancelar",
"The folder name is required": "El nombre de la carpeta es requerido",
"Folder created successfully": "Carpeta creada correctamente",
"Error creating the folder": "Error al crear la carpeta",
"Preview of": "Vista previa de",
"Name": "Nombre",
"Mime Type": "Tipo de archivo",
"Last Modification": "Última modificación",
"Size": "Tamaño",
"Dimensions": "Dimensiones",
"Url": "Enlace",
"Copy": "Copiar",
"Select file": "Seleccionar archivo",
"Remove File": "Eliminar archivo",
"Are you sure?": "¿Estás seguro?",
"Removing...": "Eliminando...",
"Text copied to clipboard": "Texto copiado al portapapeles",
"File removed successfully": "Archivo eliminado correctamente",
"Error removing the file. Please check permissions": "Error al eliminar el archivo. Por favor, comprueba los permisos",
"Home": "Inicio",
"You don\\'t have permissions to view this folder": "No tienes permisos para ver esta carpeta",
"No files or folders in current directory": "Esta carpeta esta vacía",
"Remove directory": "Eliminar carpeta",
"Folder removed successfully": "Carpeta eliminada correctamente",
"Error removing the folder. Please check permissions": "Error al eliminar la carpeta. Por favor, comprueba los permisos",
"Upload": "Subir",
"Error on upload": "Error al subir",
"Success": "Éxito",
"Error uploading the file. Check your MaxFilesize or permissions": "Error al subir el archivo. Comprueba la directiva MaxFilesize o los permisos",
"Select a file": "Selecciona un archivo",
"Open FileManager": "Abrir Gestor de archivos",
"This image": "Esta imagen",
"could not be found.": "no se encuentra.",
"Delete": "Eliminar",
"Deselect File": "Deseleccionar archivo",
"Are you sure you want to deselect this file?": "¿Estas seguro de querer deseleccionar este archivo?",
"Remember: The file will not be delete from your storage": "Recuerda: El archivo no será eliminado de tu disco",
"Deselect": "Deseleccionar",
"Only files below 350 Kb will be shown": "Solo se mostraran archivos con un peso menor a 350 Kb"
"Filter by ...": "Filtrar por ..."
```

### Testing

``` bash
Expand Down
53 changes: 0 additions & 53 deletions resources/lang/en.json

This file was deleted.

5 changes: 0 additions & 5 deletions src/FilemanagerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,7 @@ public function boot()
__DIR__.'/../config/config.php' => config_path('filemanager.php'),
], 'filemanager-config');

$this->publishes([
__DIR__.'/../resources/lang' => resource_path('lang/vendor/nova-filemanager'),
], 'filemanager-lang');

$this->loadViewsFrom(__DIR__.'/../resources/views', 'nova-filemanager');
$this->loadJsonTranslationsFrom(resource_path('lang/vendor/nova-filemanager'));

$this->app->booted(function () {
$this->routes();
Expand Down

0 comments on commit ba3168e

Please sign in to comment.