Skip to content

Commit

Permalink
publishing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
acoustep committed Aug 15, 2015
1 parent 01a9acf commit 95602b5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,17 @@ protected $listen = [
];
```

### Editing Translations

Run the publish translation command

```
php artisan vendor:publish --tag="translations"
```

Translations are then published to ```resources/lang/vendor/entrust-gui```.


## To do

* Testing
Expand Down
10 changes: 8 additions & 2 deletions src/EntrustGuiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,23 @@ public function boot()
$this->loadTranslationsFrom(realpath(__DIR__.'/../translations'), 'entrust-gui');


// this is for conig
// This is for conig
$this->publishes(
[__DIR__.'/../config/entrust-gui.php' => config_path('entrust-gui.php')],
'config'
);

// this is for views
// This is for views
$this->publishes(
[__DIR__.'/../views' => base_path('resources/views/vendor/entrust-gui')],
'views'
);

// This is for translations
$this->publishes(
[__DIR__.'/../translations' => base_path('resources/lang/vendor/entrust-gui')],
'translations'
);
}

/**
Expand Down

0 comments on commit 95602b5

Please sign in to comment.