首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > JavaScript > 一个用PHP编写的JavaScript解析器poedit

一个用PHP编写的JavaScript解析器poedit

资 源 简 介

Overview A PHP script which extracts strings from Javascript code and merges with an existing .po file. Then you can translate strings using Poedit. Includes a small script that converts .po files into JSON so you can include it as an external file in your web application and invoke a function that translates. The script is smart enough to extract strings excluding regular expressions and comments. Usage Open Poedit, go to preferences and add a new parser. The command must point to the script "jsgettext.php". Eg: php /home/www/projects/jsgettext/jsgettext.php -o %o -k "%K" %F Create a new catalog and set the base folder which contains the Javascript files you want to parse. Proceed to update from source, translate and save file. Exec the following command (check the command location and update path): /*Options:-i input file name-o output file name-k javascript global var name which

文 件 列 表

jsgettext
po2json.php
test.js
PoeditString.php
JSParser.php
PoeditParser.php
jsgettext.php

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • WYG 1天前 成为了本站会员

  • Shine 1天前 成为了本站会员

  • 柳贻 1天前 成为了本站会员

  • hallelujah_HL 1天前 成为了本站会员

  • 焦昱贺 1天前 成为了本站会员

  • Rubin 1天前 成为了本站会员

  • Li 2天前 成为了本站会员

  • bigfatcat1977 3天前 成为了本站会员

  • just4down 3天前 成为了本站会员

  • shallow 3天前 成为了本站会员

0.188516s