csnemeth79/locasync

此包最新版本(v1.2)没有提供许可信息。

保持语言文件同步的简单而智能的工具。

v1.2 2014-04-15 19:40 UTC

This package is not auto-updated.

Last update: 2024-09-24 05:34:13 UTC


README

##保持语言文件同步的简单而智能的工具##

###REPO###

https://github.com/csnemeth79/locasync

###配置###

将 config.inc.php.sample 复制并粘贴到同一目录下的 config.inc.php。

####config 标签#### $main_directory - 语言目录 $prior_language - 主语言(只有一个) $additional_languages = 额外语言的数组 $auto_fix = true = 自动修复并记录,false = 仅记录

###使用方法###

  1. 打开 /bin 目录
  2. 运行:sync.bat
  3. 查看控制台并检查 logs\log.txt 日志文件

###需求###

  • 支持无限语言,但有一个主语言(源生成)

  • 语言文件区分大小写

  • 语言文件必须是有效的 PHP 文件

  • 语言文件必须仅由一个多维数组(二维数组)组成

  • 任何文件必须在一个数组的末尾只有一个闭合标签

  • 闭合标签 -> ');'

  • 示例文件为

    '成功文本', '错误' => '错误文本' ); ?>

    或者

    "The :attribute must be a date before :date.", "between" => array( "numeric" => "The :attribute must be between :min and :max.", "file" => "The :attribute must be between :min and :max kilobytes.", "string" => "The :attribute must be between :min and :max characters.", "array" => "The :attribute must have between :min and :max items.", ), ); ?>