i15r 项目教程
i15rReplaces plain text strings in your views and replaces them with I18n message strings so you only have to provide the translations (i15r = internationalizer)项目地址:https://gitcode.com/gh_mirrors/i1/i15r
1. 项目的目录结构及介绍
i15r 项目的目录结构如下:
i15r/
├── bin/
│ └── i15r
├── lib/
│ ├── i15r/
│ │ ├── converter.rb
│ │ ├── file_finder.rb
│ │ ├── message_generator.rb
│ │ └── version.rb
│ └── i15r.rb
├── spec/
│ ├── converter_spec.rb
│ ├── file_finder_spec.rb
│ ├── message_generator_spec.rb
│ └── spec_helper.rb
├── tasks/
│ └── i15r.rake
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── CONTRIBUTING.md
├── Gemfile
├── Gemfile.lock
├── Guardfile
├── MIT-LICENSE
├── Manifest
├── README.md
├── Rakefile
├── i15r.gemspec
├── init.rb
└── todos.markdown
目录结构介绍
bin/: 包含可执行文件i15r。lib/: 包含项目的核心代码,如converter.rb,file_finder.rb,message_generator.rb等。spec/: 包含项目的测试文件。tasks/: 包含 Rake 任务文件。.gitignore: Git 忽略文件配置。.travis.yml: Travis CI 配置文件。CHANGELOG.md: 项目变更日志。CONTRIBUTING.md: 贡献指南。Gemfile: 依赖管理文件。Gemfile.lock: 依赖锁定文件。Guardfile: Guard 配置文件。MIT-LICENSE: 项目许可证。Manifest: 项目清单文件。README.md: 项目说明文档。Rakefile: Rake 任务定义文件。i15r.gemspec: 项目 gemspec 文件。init.rb: 初始化文件。todos.markdown: 待办事项列表。
2. 项目的启动文件介绍
项目的启动文件是 bin/i15r。这个文件是一个可执行脚本,用于启动 i15r 工具。它主要负责解析命令行参数并调用 lib/i15r.rb 中的逻辑来执行具体的国际化替换操作。
3. 项目的配置文件介绍
i15r 项目的主要配置文件包括:
Gemfile: 定义了项目的依赖库。i15r.gemspec: 包含了项目的详细信息和依赖配置。Guardfile: 用于配置 Guard 工具,实现自动化测试和文件监控。.travis.yml: 配置 Travis CI 持续集成服务。
这些配置文件共同确保了项目的正常运行和持续集成。
i15rReplaces plain text strings in your views and replaces them with I18n message strings so you only have to provide the translations (i15r = internationalizer)项目地址:https://gitcode.com/gh_mirrors/i1/i15r
1