disjfa/translation-bundle
Composer 安装命令:
composer require disjfa/translation-bundle
包简介
TranslationBundle bundle
关键字:
README 文档
README
Hello, and welcome to my Translation Bundle. This is a bundle for symfony and it is using a doctrine layer to append on the existing translations in your system.
What does this bundle solve
This bundle saves changed translations on a deployed website to the database. This is to test labels or if users would like to "manage" their own.
The bundle extends the cache and updates the translations from a Symfony translation and updates them from the database.
Why do i not want to use this
If you are developing, and just want to fix and save translations. Use the Symfony translation or maybe extent this using the Php translations bundle here. Here you can set up all your translations as a base layer and configure them.
Wait! Why do i use this bundle then?
After a deplay poeple like to use and abuse the labels in the system. Just wanting something else. This is the sweet spot. Just install and go. Let's see where this goes. Just as an extension.
Cool! Lets go
Just install it using composer, to add this to your symfony project
composer req disjfa/translation-bundle
And set up the routes in config/routes/disjfa_translation.yaml in symfony4 or arr them to your routes:
disjfa_translation: resource: '@DisjfaTranslationBundle/Controller/' type: annotation
Installed
Now you can go to http://localhost/translation to edit the routes.
Also you can prefix the routes to move them to an admin route
disjfa_translation: resource: '@DisjfaTranslationBundle/Controller/' type: annotation prefix: /admin
Optional
Setup the knp paginator service and set up the bootstrap theme
knp_paginator: template: pagination: '@KnpPaginator/Pagination/twitter_bootstrap_v4_pagination.html.twig' # sliding pagination controls template
Enjoy
You are done. Now edit the translations as you like
disjfa/translation-bundle 适用场景与选型建议
disjfa/translation-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 172 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 07 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「translations」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 disjfa/translation-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 disjfa/translation-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 disjfa/translation-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Deepl Automated translations for Laravel lang files
Adds support for dynamic translations from Google Spreadsheets.
A Laravel package for multilingual models
Symfony 2 Bundle providing form data mappers to handle translations using doctrine entities
A simple and beautiful laravel log reader
Enhanced Laravel Translation Manager
统计信息
- 总下载量: 172
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-30