承接 modeltech/yml-gettext-extractor 相关项目开发

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

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

modeltech/yml-gettext-extractor

Composer 安装命令:

composer require modeltech/yml-gettext-extractor

包简介

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YML config.

README 文档

README

The YAML Gettext Extractor is Poedit friendly tool which extracts translations from YAML file.

Installation

Manual

Local

Download the yml-gettext-extractor.phar file and store it somewhere on your computer.

Global

You can run these commands to easily access yml-gettext-extractor from anywhere on your system:

$ sudo wget https://github.com/ModelTech/YAML-Gettext-Extractor/releases/download/1.0.0/yml-gettext-extractor.phar -O /usr/local/bin/yml-gettext-extractor
$ sudo chmod a+x /usr/local/bin/yml-gettext-extractor

Then, just run yml-gettext-extractor.

Composer

Local

$ composer require ModelTech/yml-gettext-extractor

Global

$ composer global require ModelTech/yml-gettext-extractor

Make sure you have ~/.composer/vendor/bin in your PATH and you're good to go:

$ export PATH="$PATH:$HOME/.composer/vendor/bin"

Don't forget to add this line in your .bashrc file if you want to keep this change after reboot.

Setup

By default, Poedit does not have the ability to parse YML files. This can be resolved by adding an additional parser (Edit > Preferences > Parsers) with the following options:

  • Language: YAML
  • List of extensions: *.yml
  • Invocation:
    • Parser command: <project>/vendor/bin/yml-gettext-extractor --out %o --keys %K --files %F (replace <project> with absolute path to your project)
    • An item in keyword list: -k%k
    • An item in input file list: %f

Now you can update your catalog and Poedit will synchronize it with your yml config files.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-09-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固