承接 jelix/locales-tools 相关项目开发

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

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

jelix/locales-tools

Composer 安装命令:

composer require jelix/locales-tools

包简介

Command line tools to manage or convert locales of a Jelix application.

README 文档

README

Command line tools to manage locales of a Jelix application.

  • convertion from properties format to PO or POT format
  • convertion from PO format to properties format

installation

You can install it from Composer. In your project:

composer require "jelix/locales-tools"

configuration

In your projects that contains modules for Jelix, with some locales, you should put a .jelixlocales.ini file.

Here is its content:

; the path of a jelix application or '.4 if you have only modules into your project 
applicationPath=.

; a project id : can be a name with the version of your project
projectId=jelix 1.8.22

; header to add into each generated properties files
propertiesFileHeader="Please don't modify this file."

; default value for all modules. You can specify specifics values in sections
; of modules
[default]
; main locale used to translate from
mainLocale=en_US

; where translations should be stored. See below.
translationLocation=@module

; a section for each modules, having this name : "module:<name of the module>".
[module:jelix]
; path to the module, relative to the applicationPath path
path=jelix/core-modules/jelix/

; list of properties files to not translate.
excludePropertiesFiles=format.UTF-8.properties
;translationLocation=@module
;mainLocale=en_US

translationLocation should be a path, relative to the path of .jelixlocales.ini, or an absolute path (not recommended). It can contain keywords :locale and :module, they will be replaced respectively by the locale and the module name. If you want a path relative to the application path, prepend the path with @app:.

Example:

translationLocation=somewhere/:locale/:module/
; or
translationLocation=@app:var/locales/:locale/:module/

Most of time, you may want to store translations in locations recognized by Jelix. You can use some specific keywords that will be replace by the real path:

  • @module, equivalent to <module path>/locales/:locale/
  • @app-overloads, equivalent to <application path>/app/overloads/:module/locales/:locale/
  • @app-locales, equivalent to <application path>/locales/:locale/:module/
  • @var-overloads, equivalent to <application path>/var/overloads/:module/locales/:locale/
  • @var-locales, equivalent to <application path>/var/locales/:locale/:module/

commands

Run vendor/bin/jelixlocales to have helo and the list of possible commands.

jelix/locales-tools 适用场景与选型建议

jelix/locales-tools 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 499 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 03 月 01 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 jelix/locales-tools 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 jelix/locales-tools 我们能提供哪些服务?
定制开发 / 二次开发

基于 jelix/locales-tools 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-01