jlaso/tradukoj-po-mo-module 问题修复 & 功能扩展

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

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

jlaso/tradukoj-po-mo-module

Composer 安装命令:

composer require jlaso/tradukoj-po-mo-module

包简介

Gettext client API for https://www.tradukoj.com

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version License

tradukoj-po-mo-module

This is an alone program that allows to synchronize your po files with tradukoj remote server

First of all, you need

  • Clone this project whenever you want in your computer
  • launch composer install
  • Create an account in tradukoj.com and create a project
  • copy the file config.ini.dis as config.ini and copy the data of project into it

Version

1.0.2

Installation

git clone https://github.com/jlaso/tradukoj-po-mo-module tradukoj-po-mo-sync
cd tradukoj-po-mo-sync
composer install  # to install dependencies

You can also add the module by composer.json, adding in require clause:

{
    "jlaso/tradukoj-po-mo-module": "*"
}

This is the content of the standard config.ini.dis

[jlaso_translations_api_access]
project_id = ?
key = ?
secret = ?
url = 'https://www.tradukoj.com/api/'
managed_locales = ?

You need to copy this file as config.ini, and substitute the ? symbol by the ones provided by tradukoj.

Invoke the command

cd tradukoj-po-mo-sync
php sync.php --help / to obtain help
php sync.php --upload=yes --dir=path-to-your-locale-files

Tool to transform csv files to po files

php csv2po.php --input=sample.csv

Look inside sample.csv to know the correct format that the tools expects.

Example

In the folder structure there is a example with LOCALE files and a test program in order to check if gettext is installed in the system.

You can check the test program with this command:

php examples/php/test.php [locale]

The output of this command for en locale is:

en_GB
testing gettext
general.no_records_found: No records found.
general.one_record_found: Total one record found
general._d_records_found: Total 10 records found

License

MIT

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固