-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Laravel-Backpack/rename
Rename to Translation Manager
- Loading branch information
Showing
18 changed files
with
113 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# Language Manager | ||
# Translation Manager | ||
|
||
[![Total Downloads][ico-downloads]][link-downloads] | ||
[](https://github.com/the-whole-fruit/manifesto) | ||
|
||
Language Manager provides a simple user interface to help you deal with translations in your Backpack application. | ||
Translation Manager provides a simple user interface to help you deal with translations in your Backpack application. | ||
At a quick glance, some of the most relevant features are: | ||
|
||
- View a list of all translations present in your application's language files (including vendor translations). | ||
|
@@ -19,7 +19,7 @@ This package uses the battle tested [spatie/laravel-translation-loader](https:// | |
|
||
## Demo | ||
|
||
Try it right now, edit some translations in [our online demo](https://demo.backpackforlaravel.com/admin/language-manager). | ||
Try it right now, edit some translations in [our online demo](https://demo.backpackforlaravel.com/admin/translation-manager). | ||
|
||
## Installation | ||
|
||
|
@@ -28,7 +28,7 @@ In your Laravel + Backpack project: | |
**1) Install the package using Composer**: | ||
|
||
```bash | ||
composer require backpack/language-manager | ||
composer require backpack/translation-manager | ||
``` | ||
|
||
**2) Configure the application** | ||
|
@@ -53,14 +53,14 @@ php artisan migrate | |
3.1) Add a menu item to `menu_items.blade.php` for easy access: | ||
|
||
```bash | ||
php artisan backpack:add-menu-content "<x-backpack::menu-item title=\"Language Manager\" icon=\"la la-stream\" :link=\"backpack_url('language-manager')\" />" | ||
php artisan backpack:add-menu-content "<x-backpack::menu-item title=\"Translation Manager\" icon=\"la la-stream\" :link=\"backpack_url('translation-manager')\" />" | ||
``` | ||
|
||
3.2) Publish the config files: | ||
|
||
```bash | ||
php artisan vendor:publish --provider="Spatie\TranslationLoader\TranslationServiceProvider" --tag="config" | ||
php artisan vendor:publish --provider="Backpack\LanguageManager\AddonServiceProvider" --tag="config" | ||
php artisan vendor:publish --provider="Backpack\TranslationManager\AddonServiceProvider" --tag="config" | ||
``` | ||
|
||
**NOTE:** We highly recommend you to use this package alongside [Language Switcher](https://github.com/Laravel-Backpack/language-switcher) package, so that you can easily switch between languages in your panel. | ||
|
@@ -72,7 +72,7 @@ php artisan vendor:publish --provider="Backpack\LanguageManager\AddonServiceProv | |
|
||
 | ||
|
||
The list view displays a comprehensive list of all translations within your application. By default, all translations including vendor translations are displayed in the list view. If you don't want to see vendor translations, you can set the config option `load_all_registered_translation_paths` to `false` in `config/backpack/language-manager.php`. | ||
The list view displays a comprehensive list of all translations within your application. By default, all translations including vendor translations are displayed in the list view. If you don't want to see vendor translations, you can set the config option `load_all_registered_translation_paths` to `false` in `config/backpack/translation-manager.php`. | ||
|
||
Additionally, if you have [Backpack Pro](https://backpackforlaravel.com/products/pro-for-unlimited-projects) installed, your admin can also see and use the filters, to quickly narrow down translations. | ||
|
||
|
@@ -90,11 +90,9 @@ Once edited, the changes are saved to the database for persistence. All translat | |
|
||
If you have the [Editable Columns](https://backpackforlaravel.com/products/editable-columns) package installed, the admin can directly edit translations within the List View. This provides an excellent UX - because they can translate everything much much faster, without having to switch pages. | ||
|
||
If you don't want that behavior you can disable it in the `config/backpack/language-manager.php` file by setting `use_editable_columns => false`. | ||
If you don't want that behavior you can disable it in the `config/backpack/translation-manager.php` file by setting `use_editable_columns => false`. | ||
If you don't find that file, see above the optional steps to publish the config files. | ||
|
||
Once edited, the changes are saved to the database for persistence. All translations on the database have priority over the ones in the language files. This means that you can safely let your admin edit translations, in production. Your auto-deploys will continue working, because no files get edited, only DB entries. | ||
|
||
## Security | ||
|
||
If you discover any security related issues, please email [email protected] instead of using the issue tracker. | ||
|
@@ -108,11 +106,11 @@ If you discover any security related issues, please email cristian.tabacitu@back | |
|
||
## License | ||
|
||
This project was released under MIT License, so you can install it on top of any Backpack & Laravel project. Please see the [license file](https://backpackforlaravel.com/products/language-manager/license.md) for more information. | ||
This project was released under MIT License, so you can install it on top of any Backpack & Laravel project. Please see the [license file](https://backpackforlaravel.com/products/translation-manager/license.md) for more information. | ||
|
||
[ico-version]: https://img.shields.io/packagist/v/backpack/language-manager.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/backpack/language-manager.svg?style=flat-square | ||
[ico-version]: https://img.shields.io/packagist/v/backpack/translation-manager.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/backpack/translation-manager.svg?style=flat-square | ||
|
||
[link-author]: https://github.com/laravel-backpack | ||
[link-contributors]: ../../contributors | ||
[link-downloads]: https://packagist.org/packages/backpack/language-manager | ||
[link-downloads]: https://packagist.org/packages/backpack/translation-manager |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
@include('backpack.language-manager::columns.language-preview-table') | ||
@include('backpack.translation-manager::columns.translation-preview-table') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<?php | ||
|
||
use Backpack\LanguageManager\Http\Controllers\LanguageManagerCrudController; | ||
use Backpack\TranslationManager\Http\Controllers\TranslationManagerCrudController; | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Backpack\LanguageManager Routes | ||
| Backpack\TranslationManager Routes | ||
|-------------------------------------------------------------------------- | ||
| | ||
| This file is where you may define all of the routes that are | ||
| handled by the Backpack\LanguageManager package. | ||
| handled by the Backpack\TranslationManager package. | ||
| | ||
*/ | ||
Route::group([ | ||
'prefix' => config('backpack.base.route_prefix', 'admin'), | ||
'middleware' => ['web', config('backpack.base.middleware_key', 'admin')], | ||
], function () { | ||
Route::crud('language-manager', LanguageManagerCrudController::class); | ||
Route::crud('translation-manager', TranslationManagerCrudController::class); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<?php | ||
|
||
namespace Backpack\LanguageManager; | ||
namespace Backpack\TranslationManager; | ||
|
||
use Backpack\LanguageManager\AutomaticServiceProvider; | ||
use Backpack\TranslationManager\AutomaticServiceProvider; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class AddonServiceProvider extends ServiceProvider | ||
{ | ||
use AutomaticServiceProvider; | ||
|
||
protected $vendorName = 'backpack'; | ||
protected $packageName = 'language-manager'; | ||
protected $packageName = 'translation-manager'; | ||
protected $commands = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.