revolta77/laravel-translation-manager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

revolta77/laravel-translation-manager

Composer 安装命令:

composer require revolta77/laravel-translation-manager

包简介

Enhanced Laravel Translation Manager

README 文档

README

GitQ

This package is used to comfortably manage, view, edit and translate Laravel language files with translation assistance through the Yandex Translation API. It augments the Laravel Translator system with a ton of practical functionality. Features

⚠️ Only MySQL and PostgreSQL Database connections are supported. Adding another database only requires additional repository interface implementations following the examples of MysqlTranslatorRepository.php or PostgresTranslatorRepository.php.

⚠️ Version 2.6.10 has a new migration

When upgrading from earlier versions run:

$ php artisan vendor:publish --provider="Vsch\TranslationManager\ManagerServiceProvider" --tag=public --force
$ php artisan vendor:publish --provider="Vsch\TranslationManager\ManagerServiceProvider" --tag=migrations
$ php artisan migrate

Supported Laravel Versions

  • For Laravel 6.0 require: "vsch/laravel-translation-manager": "~6.0"

  • For Laravel 5.6 require: "vsch/laravel-translation-manager": "~2.6"

  • For Laravel 5.5 require: "vsch/laravel-translation-manager": "~2.5"

  • For Laravel 5.4 require: "vsch/laravel-translation-manager": "~2.4"

  • For Laravel 5.3 require: "vsch/laravel-translation-manager": "~2.3"

    Upgrading from LTM 2.0 or 2.1 to 2.3

  • For Laravel 5.2 require: "vsch/laravel-translation-manager": "~2.1"

Laravel version 4.2 is no longer supported.

You can still get access to the last updated version. Use the laravel4 branch, or require: "vsch/laravel-translation-manager": "~1.0"

Initial Localizations Added

❗ If you have made correction to the auto-translated localization and would like to share them with others please do so. It will be greatly appreciated.

Detailed information is now in the wiki.

Installation
Configuration
Version Notes

2.6.16 Adds React App UI as an alternative to WebUI

React_UI

Version 2.6.10 released

React UI added as an option to WebUI.

Code updated for Laravel 5.6 compatibility

Support for JSON translation files added. Versioninfo.md

Version 2.5.6 released

Support for JSON translation files added. Versioninfo.md

Code updated for Laravel 5.5 compatibility

Version 2.4.36 released

Support for JSON translation files added. Versioninfo.md

Important LTM Translator method changes to restore compatibility with Laravel 5.4 API. These changes affect the order of arguments to the LTM Translator implementation. If you were using these methods based on previous LTM implementation then you will need to make changes in your code:

From transChoice($id, $number, array $parameters = array(), $domain = 'messages', $locale = null, $useDB = null) to transChoice($id, $number, array $parameters = array(), $locale = null, $domain = 'messages', $useDB = null)

From trans($id, array $parameters = array(), $domain = 'messages', $locale = null, $useDB = null) to trans($id, array $parameters = array(), $locale = null, $domain = 'messages', $useDB = null)

From get($key, array $replace = array(), $locale = null, $useDB = null) to get($key, array $replace = array(), $locale = null, $fallback = true, $useDB = null)

Version 2.4.0 released

Laravel 5.4 compatible release. No API changes only internal implementation changes.

Version 2.3.3 released

Laravel 5.3 compatible release. For upgrade instructions see Upgrading 2.0, 2.1 to 2.3

Now using Laravel 5 authorization API to handle all LTM related authorizations.

Find Translations now update source references for translation keys and add new keys with cleanup of dynamic keys. Need to publish and run migrations for this update Installation: Publishing And Running Migrations

Now you can view source file and line number references for translations. See Web Interface: Source References

Screen Shot Show Source Refs

If you are upgrading from version 2.0.x of LTM you need to:

  1. Remove the dependency to UserPrivilegeMapper from your application: Removing dependency on UserPrivilegeMapper from service providers array and Removing dependency on UserPrivilegeMapper from facade alias array
  2. Define the abilities used by LTM: Setting up user authorization

Per Locale User Access Control

Implementation changed from the last release since using a closure in config file is not supported by the framework. Now using abilities to do the same. See Enabling per locale user access control

By default this option is turned off and any user who does not have ltm-admin-translations ability can modify any locale. With user_locales_enabled option enabled you can control which locales a user is allowed to modify. Default for all users is all locales, unless you specifically change that through the web UI, see User Admin or by populating the ltm_user_locales table appropriately.

Screen Shot

Translation Manager Screenshot

* This package was originally based on Barry vd. Heuvel's excellent barryvdh package.

revolta77/laravel-translation-manager 适用场景与选型建议

revolta77/laravel-translation-manager 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 11 月 10 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「translations」 「translator」 「laravel」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 revolta77/laravel-translation-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 revolta77/laravel-translation-manager 我们能提供哪些服务?
定制开发 / 二次开发

基于 revolta77/laravel-translation-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 85
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-11-10