backpack/langfilemanager
Composer 安装命令:
composer require backpack/langfilemanager
包简介
An interface to edit language files, for Laravel Backpack.
关键字:
README 文档
README
Deprecation note
Backpack team has just released a new package: Translation Manager. This new package uses Spatie Translation Loader and it works in a more predictable way using the database to store translations.
We highly recommend you to switch to Translation Manager.
A quick interface to edit language files, for Laravel Backpack.
Note: this interface allows the admin to directly edit the language files stored in resources/lang. Which might not be a great idea in production, if you have those files commited to git and/or use auto-deployment.
Security updates and breaking changes
Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.
Install in Backpack v6.x
Step 1. Install via Composer
composer require backpack/langfilemanager
Step 2. Run the migration, seed and file publishing
php artisan vendor:publish --provider="Backpack\LangFileManager\LangFileManagerServiceProvider" --tag="migrations" #publish the migration file php artisan migrate php artisan db:seed --class="Backpack\LangFileManager\database\seeds\LanguageTableSeeder" php artisan vendor:publish --provider="Backpack\LangFileManager\LangFileManagerServiceProvider" --tag="config" #publish the config file php artisan vendor:publish --provider="Backpack\LangFileManager\LangFileManagerServiceProvider" --tag="lang" #publish the lang files
Step 3. Add menu items for it
Add a menu item for it in resources/views/vendor/backpack/ui/inc/menu_items.blade.php:
<x-backpack::menu-dropdown title="Translations" icon="la la-globe"> <x-backpack::menu-dropdown-item title="Languages" icon="la la-flag-checkered" :link="backpack_url('language')" /> <x-backpack::menu-dropdown-item title="Site texts" icon="la la-language" :link="backpack_url('language/texts')" /> </x-backpack::menu-dropdown>
Upgrading from 4.x to 5.x
You should have no problems upgrading, there have been no breaking changes. Just require the new version.
Upgrading from 3.x to 4.x
- Flags are no longer supported on the Language CRUD, until version 3 admins could browse an image for the language flag, we now recommend developers to setup those images in advance, having them in a public folder like
public\flags\en.svgpublic\flags\ro.svg.
Usage
Tell LangFileManager what langfiles NOT to show, in config/backpack/langfilemanager.php:
// Language files to NOT show in the LangFileManager // 'language_ignore' => ['admin', 'pagination', 'reminders', 'validation', 'log', 'crud'],
Or just try at your-project-domain/admin/language/texts
Screenshots
See https://backpackforlaravel.com/
Change log
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email tabacitu@backpackforlaravel.com instead of using the issue tracker.
Please subscribe to the Backpack Newsletter so you can find out about any security updates, breaking changes or major features. We send an email every 1-2 months.
Credits
- Alin Ghitu - author
- Cristian Tabacitu - contributor
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Hire us
We've spend more than 10.000 hours creating, polishing and maintaining administration panels on Laravel. We've developed e-Commerce, e-Learning, ERPs, social networks, payment gateways and much more. We've worked on admin panels so much, that we've created one of the most popular software in its niche - just from making public what was repetitive in our projects.
If you are looking for a developer/team to help you build an admin panel on Laravel, look no further. You'll have a difficult time finding someone with more experience & enthusiasm for this. This is what we do. Contact us - let's see if we can work together.
backpack/langfilemanager 适用场景与选型建议
backpack/langfilemanager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 234.75k 次下载、GitHub Stars 达 90, 最近一次更新时间为 2016 年 03 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「language」 「laravel」 「admin panel」 「tabacitu」 「translationmanager」 「backpack」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 backpack/langfilemanager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 backpack/langfilemanager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 backpack/langfilemanager 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Texy converts plain text in easy to read Texy syntax into structurally valid (X)HTML. It supports adding of images, links, nested lists, tables and has full support for CSS. Texy supports hyphenation of long words (which reflects language rules), clickable emails and URL (emails are obfuscated again
Easy to use i18n translation PHP class for multi-language websites
Package for convenient work with Laravel's localization features
Store your language lines in the database, yaml or other sources
2lenet/EasyAdminPlusBundle
Set Links with a specific language parameter
统计信息
- 总下载量: 234.75k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 92
- 点击次数: 33
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-12