定制 eugenzor/potool 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

eugenzor/potool

Composer 安装命令:

composer require eugenzor/potool

包简介

Zend Framework 2 Module for edition and compiling gettext files

README 文档

README

Potool is a tool for web-based edition Gettext translation files. It is easy to integrate into ZF2 projects. Translator would be able to translate, edit phrases online and compile MO files for the application of results. Potool is designed using Bootstrap css framework.

Overview

You can work here with all internationalization files of a certain module. Languages interface If you have added some new translation keys into your module, you have to import the new translation keys into the PO files by pressing the "Upgrade" button. There is no need to add translation keys manually. Just put the translate('needed_key') into your View or Controller code and it will be imported.

When you translate new keys or edit translated ones, you have to recompile MO files by pressing the "Compile" button. After that, a new translation will be available in your application.

When you press the "Show" button you get to "Languages interface": Languages interface

There you can upgrade keys from your project and recompile them. Also, you can add a new language file and a new message key for all languages.

If you have to translate any of the PO files, you have to press the "Translate" button for a specific language. After that, you can see the "Translation interface":

Translation interface Here, you can edit translated phrases. Also, if you have any doubts, you can mark the translated phrase as "Fuzzy". Phrases marked as fuzzy do not appear in your application.

Installation

  • Add the following line into your "require" section of composer.json:

    "eugenzor/potool": "dev-master"
  • run:

    php composer.phar update
  • Activate the module in your 'application.config.php' by adding 'Potool' into the 'modules' section.

  • Open the user interface by oppening http[s]://{application_root}/potool in a browser

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-09-14