ava007/wnk_translation
最新稳定版本:v0.3.3
Composer 安装命令:
composer require ava007/wnk_translation
包简介
Translation plugin for CakePHP
README 文档
README
It provides translation services for pot files:
- import strings to be translated from pot files
- translations
- manual translations
- translations by google translation services
- community translations - self service (planned)
- export translated strings to pot files
Installation
composer require ava007/wnk_translation
Config/bootstrap.php
Plugin::load('WnkTranslation', ['routes' => true, 'autoload' => true, 'bootstrap' => false]);
Configure::write('WnkTranslation', [
'default_lang' => 'en', // Language in which the application has been developed
'trans_lang' => ['de','fr','it'], // Languages in which the application should be translated to
'tablePrefix' => '', // optional prefix for database tables
]);
src/Application.php
class Application //extends BaseApplication {
public function bootstrap() {
parent::bootstrap();
$this->addPlugin('WnkTranslation');
}
}
Database
run one of the appropriate sql-ddl-script:
- postgresql: ddl-postgresql.sql
- mysql: ddl-mysql.sql
URL
After installation the plugins is called used the following url:
http://....domainname/wnk-translation/translations/cockpit
References
visit https://www.locavores.co/wnk-translation/translations/index to see this plugin in action
统计信息
- 总下载量: 281
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-10-18