承接 cphcloud/silverstripe-dynamictranslations 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

cphcloud/silverstripe-dynamictranslations

最新稳定版本:0.0.2

Composer 安装命令:

composer require cphcloud/silverstripe-dynamictranslations

包简介

Dynamic translations for SilverStripe

README 文档

README

Dynamic Translations module for SilverStripe.

How it works

Replace the strings you want to translate with the following syntax:

$dt('SearchBar.Submit', 'Submit search')

The next time the template is loaded, the module will search for an entity in the database named SearchBar.Submit. If it can’t find one, it will create it (with the second argument as the default string) and save it. It will then store this data in a cache ready for the next request that uses this translation.

Translations can be added and edited in the CMS, as well as grouped into categories for easier management by CMS users. The list of categories can be managed in the CMS, and default categories can be created on dev/build by adding categories to your YAML configuration:, e.g.:

DynamicTranslationCategory:
  default_categories:
    - Header
    - Footer
    - Search

Note that the default categories will only be created if no categories already exist in the database.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 15
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固