https://github.com/baban/i18n_manylang_patch
This gem add translate language i18n gem
https://github.com/baban/i18n_manylang_patch
Last synced: about 1 month ago
JSON representation
This gem add translate language i18n gem
- Host: GitHub
- URL: https://github.com/baban/i18n_manylang_patch
- Owner: baban
- License: mit
- Created: 2013-03-02T16:41:21.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-03T13:40:44.000Z (over 13 years ago)
- Last Synced: 2026-02-24T05:41:27.081Z (3 months ago)
- Language: Ruby
- Size: 355 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.ja.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# I18nManylangPatch
翻訳ファイルのに抜けがあっても、英語版の翻訳ファイルを再度見に行くように
I18nのgemに修正をかけます
## Installation
Add this line to your application's Gemfile:
gem 'i18n_manylang_patch'
And then execute:
$ bundle
Or install it yourself as:
$ gem install i18n_manylang_patch
## Usage
通常のI18n gemでは、各言語の翻訳がすべて揃っていないと
翻訳に失敗した時にエラーメッセージが表示されます
これを防ぐために翻訳に失敗した場合は、英語の翻訳ファイルを見に行くロジックを追加しました
英語版の翻訳ファイルさえ揃っていれば、他の言語ファイルは抜けがあっても英語で代わりに表示されるので
エラーだけは防げます
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request