lidaa/trans-bundle

LidaaTransBundle

安装次数: 6

依赖: 0

建议者: 0

安全: 0

星标: 1

关注者: 3

分支: 0

公开问题: 0

类型:symfony-bundle

dev-master 2012-10-10 07:48 UTC

This package is not auto-updated.

Last update: 2024-09-22 02:52:09 UTC


README

Build Status

提供Web界面以管理不同项目包的翻译

要求

  • Symfony版本2.0.9或更高版本(2.0.x)

安装

1- 在您的deps文件中添加以下行

[LidaaTransBundle]
	 git=git://github.com/lidaa/LidaaTransBundle.git
	 target=/bundles/Lidaa/TransBundle

2- 现在,运行 vendors 脚本来下载该包

$ php bin/vendors install

3- 将 LidaaTransBundle 添加到您的应用程序内核

// app/AppKernel.php
public function registerBundles()
{
	 return array(
	     // ...
	     new Lidaa\TransBundle\LidaaTransBundle(),
	     // ...
	 );
}

4- 将 'Lidaa' 命名空间添加到您的自动加载器

// app/autoload.php
$loader->registerNamespaces(array(
	 //...
	 'Lidaa' => __DIR__.'/../vendor/bundles',
	 //...
));

使用方法

在浏览器中加载编辑器

app_dev.php/_translator/index

待办事项

  • 添加对基于xml或php的翻译文件的支持

祝您玩得开心 :)