承接 languara/symfony 相关项目开发

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

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

languara/symfony

最新稳定版本:1.0.1

Composer 安装命令:

composer require languara/symfony

包简介

Languara localization plugin for Symfony 2.x. Easily upload, translate, and synchronize your language content using Languara's Cloud Based Translation Management Platform.

README 文档

README

Install

Add Languara plugin information to your composer.json file:


"require": {
    "languara/symfony": "1.0.*@dev"
}

Use composer to install this package.


$ composer update

Register the package

Add the package to the autoload array in app/AppKernel.php:


public function registerBundles()
{
    $bundles = array(
        // .....
        new Languara\SymfonyBundle\LanguaraSymfonyBundle(),
    )
}

Configure the Package

.....

Usage

Execute this command to see a list of available commands in your commandline:


$ php app/console

Or you can check the commands and their usage here:


$ php app/console languara:translate [options]

to translate the texts you already have in your lang directory. You can also select the type of translation you want to perform, Machine or Human. It's set to machine by default.


$ php app/console languara:pull

to download your content from Languara to your app.


$ php app/console languara:push

to upload your content from your app to Languara.


$ php app/console languara:register

to register a new user on languara.com

Troubleshooting

Some version of the Symfony framework come with the "platform" field set to php version 5.3.9. This plugin requires php version >=5.5, so in your composer.json file find this code:


"config": {
    "bin-dir": "bin",
    "platform": {
        "php": "5.3.9"
    }
},

and just remove the "platform" property and it's value from the composer.json

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-03-25