dick/translationmanager

This package is abandoned and no longer maintained. The author suggests using the Backpack/LangFileManager package instead.

An interface to edit Laravel language files, for Dick Admin.

1.0.2 2015-09-10 13:38 UTC

This package is auto-updated.

Last update: 2019-02-20 19:26:38 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

See http://usedick.com

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.