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

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固