boboldehampsink/translate 问题修复 & 功能扩展

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

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

boboldehampsink/translate

最新稳定版本:0.4.2

Composer 安装命令:

composer require boboldehampsink/translate

包简介

Translate Plugin for Craft CMS

README 文档

README

Plugin that allows you to translate your website.

Features:

  • Reads Craft::t(), Craft.t() and ""|t()
  • Saves translations in own plugin translations folder
  • Friendly UI (Select locale, search, select location, filter files, browse paths)
  • Register your own translation sources with hook "registerTranslateSources"

Todo:

  • Better UI (Show filepath, more locations)
  • Google Translate support

Important: The plugin's folder should be named "translate"

Deprecated

With the release of Craft 3 on 4-4-2018, this plugin has been deprecated. You can still use this with Craft 2 but you are encouraged to use (and develop) a Craft 3 version. At this moment, I have no plans to do so.

Development

Run this from your Craft installation to test your changes to this plugin before submitting a Pull Request

phpunit --bootstrap craft/app/tests/bootstrap.php --configuration craft/plugins/translate/phpunit.xml.dist --coverage-text craft/plugins/translate/tests

Changelog

0.4.2

  • Add node_modules to excluded vendor folders (thanks to @tcsehv)

0.4.1

  • All service code is now fully covered by unit tests

0.4.0

  • Added Craft 2.5 compatibility

0.3.4

  • Added support for finding translatable strings in object notation
  • Added a MIT license

0.3.3

  • Only init with local stored locale when there is any, else init with default instead of empty - this prevented saving in some occasions

0.3.2

  • Added the ability to read the translate tag when setting variables in twig

0.3.1

  • Verify matched translatable files as valid source

0.3.0

  • Added support for nested plugin and template sources
  • Added JSON, Atom and RSS support

0.2.9

  • Added getCsrfInput function to forms

0.2.8

Warning! This version is updated for Craft 2.3 and does NOT work on Craft 2.2

0.2.7

  • Fixed a bug where opening twig files would not match any expression

0.2.6

  • Added support for opening .twig files

0.2.5

  • Don't encode table attribute html, closing issue #2

0.2.4

  • Merge translations so we don't lose translations, fixing issue #1

0.2.3

  • Added a "registerTranslateSources" hook to add translate sources

0.2.2

  • Allow more filters after |translate

0.2.1

  • Enforce UTF-8 encoding on CSV download

0.2

  • Added ability to easily select a locale
  • Added ability to search for words/translations
  • Added ability to look in a specific location
  • Added ability to upload updated translations (csv)
  • Added ability to download translations (csv)

0.1

  • Initial push to GitHub

boboldehampsink/translate 适用场景与选型建议

boboldehampsink/translate 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20.99k 次下载、GitHub Stars 达 44, 最近一次更新时间为 2014 年 11 月 18 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 boboldehampsink/translate 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 20.99k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 44
  • 点击次数: 16
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 44
  • Watchers: 4
  • Forks: 12
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-11-18