wisembly/xgettext 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wisembly/xgettext

最新稳定版本:0.8.0

Composer 安装命令:

composer require wisembly/xgettext

包简介

Javascript poEdit parser written in PHP

README 文档

README

Build Status

xgettext PHP implementation. Curently provides 2 parsers:

  • Javascript parser
  • Handlebars parser

Install

The recommended way to install Xgettext is through Composer:

{
    "require": {
        "wisembly/xgettext-php": "@stable"
    }
}

Usage

Parser

Javascript parser

Simply create a new parser in Poedit (name it for example Javascript)`. Then, set up xgettext like this:

configure xgettext parser

WARNING: Javascript parser currently parse only 1rst and 2nd arguments. It also do not parse strings with non matching parenthesis. (avoid smileys..)

Handlebars parser

Same like above, just add -l "handlebars" in yout xgettext call to stipulate you want to use handlebars parser with xgettext-php.

configure xgettext parser

JSON Dumper

$ bin/dumper -i input.po -o output.json

Requirements

PHP >= 5.3

Licence

Xgettext is released under the MIT License. See the bundled LICENSE file for details.

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 5
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-22