承接 mdm/translator-checker-bundle 相关项目开发

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

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

mdm/translator-checker-bundle

Composer 安装命令:

composer require mdm/translator-checker-bundle

包简介

Help you to check all your twig strings was translated - and all your translation keys exists

README 文档

README

Is a tool to help you fix your translations files.

Versions

Please use 2.1 branch for Symfony 2.1.* applications :

composer require mdm/translator-checker-bundle 2.1@dev

Use master branch for Symfony 2.2.* applications :

composer require mdm/translator-checker-bundle dev-master

And use 2.6 branch for Symfony 2.6.* applications :

composer require mdm/translator-checker-bundle 2.6.*

Usages

Add the bundle to your AppKernel

...
new MDM\TranslatorCheckerBundle\MDMTranslatorCheckerBundle(),
...
```

### Detect duplicate of translation values

Sometimes your files can contains to keys with same values, used the next command to detect them :

php app/console translation:check-duplicates [culture]


### Detect missing tanslations

You can sometime forget to add `{% trans %}` token or `{{ "thing"|trans }}` filter. Can also make typos in your translations keys.

php app/console translation:check-missings [culture]


If you want to output in a Junit file use :

php app/console translation:check-missings en -n --junit myjunit.xml


Or for multiple cultures at the same time :

php app/console translation:check-missings fr,en -n --junit myjunit.xml


### Detect unused translation keys

If you want to detect keys not used in your twig :

php app/console translation:check-missings [culture] --show-unused


Of course can also be outputed in junit :

php app/console translation:check-missings fr,en -n --junit myjunit.xml --show-unused

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 11
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-03-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固