定制 imsamurai/cakephp-localization 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

imsamurai/cakephp-localization

Composer 安装命令:

composer require imsamurai/cakephp-localization

包简介

Plugin for handle localization of CakePHP application

README 文档

README

Check out Localization API Documentation

Abstract

Build Status Coverage Status Latest Stable Version Total Downloads Latest Unstable Version License

Coordinator for any checker scripts. With this plugin you can unify periodic checkers for some of your services/data/etc, get mail in case of failure, store checker logs in DB.

Installation

cd my_cake_app/app
git clone git://github.com/imsamurai/CakePHP-Localization-Plugin.git Plugin/Localization

or if you use git add as submodule:

cd my_cake_app
git submodule add "git://github.com/imsamurai/CakePHP-Localization-Plugin.git" "app/Plugin/Localization"

then add plugin loading in Config/bootstrap.php

CakePlugin::load('Localization', array('bootstrap' => true, 'routes' => true));

add tables from Config/Schema/localization.sql and configure datasource localization

Plugin requires squizlabs/php_codesniffer": "~1" for tokenize javascript

Configuration

Write global config if you need to change plugin config (see plugin bootstrap.php)

Usage

Use Localization model for manage localization variables in DB. Plugin works with __* style functions, also in javascript. Inline javascript are not supported (only *.js files). For php export from db will create/replace files in app/Locale/* and for js in webroot/js/Locale/* (you can change this in config, see bootstrap.php of the plugin). Just open example.com/localization for edit/translate/export to db

For import/update all messages that used with __* functions (in php and js) use:

Console/cake Localization.messages extract --output db <other params from i18n shell>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固