dick / translationmanager
An interface to edit Laravel language files, for Dick Admin.
Installs: 2 682
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 12
Open Issues: 5
Requires
- php: >=5.3.0
- illuminate/support: ~5.1
Requires (Dev)
- phpunit/phpunit: 4.*
- scrutinizer/ocular: ~1.1
This package is auto-updated.
Last update: 2019-02-20 19:26:38 UTC
README
A quick interface to edit Laravel language files, for Dick Admin.
THERE ARE BETTER THINGS THAN DICK The Dick project is no longer actively maintained. For important projects please use the new version: Laravel Backpack.
Install
Step 1. Install via Composer
$ composer require dick/translationmanager
Step 2. Add the service provider
In your config/app.php, add this to the providers array:
'Dick\TranslationManager\TranslationManagerServiceProvider',
Step 3. Run the migration and seed
$ php artisan migrate --path=vendor/dick/translationmanager/src/database/migrations
$ php artisan db:seed --class="Dick\TranslationManager\database\seeds\LanguageTableSeeder"
Usage
Tell TranslationManager what langfiles NOT to show, in config/admin.php, in the 'language_ignore' variable:
// Language files to NOT show in the Translation Manager // 'language_ignore' => ['admin', 'pagination', 'reminders', 'validation', 'log', 'crud'],
Then add the menu elements for it, in config/admin.php in the 'menu' variable:
[ 'label' => "Translations", 'route' => "", 'icon' => 'fa fa-globe', 'children' => [ [ 'label' => "Languages", 'route' => 'admin/language', 'icon' => 'fa fa-flag-checkered', ], [ 'label' => "Site texts", 'route' => 'admin/language/texts', 'icon' => 'fa fa-language', ], ] ],
Or just try at your-project-domain/admin/language/texts
Screenshots
Change log
Please see CHANGELOG for more information what has changed recently.
Testing
// TODO
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email alin@updivision.com or hello@tabacitu.ro instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.