i15r 项目教程

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 项目的目录结构如下:

  1. i15r/

  2. ├── bin/

  3. │ └── i15r

  4. ├── lib/

  5. │ ├── i15r/

  6. │ │ ├── converter.rb

  7. │ │ ├── file_finder.rb

  8. │ │ ├── message_generator.rb

  9. │ │ └── version.rb

  10. │ └── i15r.rb

  11. ├── spec/

  12. │ ├── converter_spec.rb

  13. │ ├── file_finder_spec.rb

  14. │ ├── message_generator_spec.rb

  15. │ └── spec_helper.rb

  16. ├── tasks/

  17. │ └── i15r.rake

  18. ├── .gitignore

  19. ├── .travis.yml

  20. ├── CHANGELOG.md

  21. ├── CONTRIBUTING.md

  22. ├── Gemfile

  23. ├── Gemfile.lock

  24. ├── Guardfile

  25. ├── MIT-LICENSE

  26. ├── Manifest

  27. ├── README.md

  28. ├── Rakefile

  29. ├── i15r.gemspec

  30. ├── init.rb

  31. └── 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

© 版权声明

相关文章

暂无评论

您必须登录才能参与评论!
立即登录
暂无评论...