Sha256: 631c141178299d7d0390206711b53c4877159de4182e2440ff6428239e566380
Contents?: true
Size: 1.96 KB
Versions: 6
Compression:
Stored size: 1.96 KB
Contents
# About Lolita I18n is [Lolita](https://github.com/ithouse/lolita) plugin, that enables .yml file translation from WEB interface. ## Usage * setup rails 3.2+ project with ["Lolita"](https://github.com/ithouse/lolita) * setup [Redis DB](http://redis.io) on your server * add `gem 'lolita-i18n'` into Gemfile * in your lolita setup block add `config.i18n.store = {:db => REDIS_DB}` or `config.i18n.store = Redis.new` * add `REDIS_DB = your db number` in your environment files. * open `/lolita/i18n` and start translating ### with Phusion Passenger Add this to `environment.rb` PhusionPassenger.on_event(:starting_worker_process) do |forked| if forked Lolita.i18n.reconnect end end ### with Unicorn Add this to `unicorn.rb` after_fork do |server, worker| Lolita.i18n.reconnect end ## Contributing to lolita-i18n * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it * Fork the project * Start a feature/bugfix branch * Commit and push until you are happy with your contribution * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally. * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it. ## Registering URL's to understand from where translation comes In your conifg/evironments/xxx.rb add this: MyCool::Application.configure do config.middleware.use Lolita::I18n::Recorder end After adding go manualy trough the whole site /urls. All translations will be registerd with linked url. ## Export Redis DB to YAML file rake lolita_i18n:export_redis -- --redisdb=1 --locale=lv --outfile=../lv.yml --- Copyright (c) 2014 ITHouse (Latvia). See LICENSE.txt for further details.
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
lolita-i18n-0.5.9 | README.md |
lolita-i18n-0.6.0 | README.md |
lolita-i18n-0.5.8 | README.md |
lolita-i18n-0.5.7 | README.md |
lolita-i18n-0.5.6 | README.md |
lolita-i18n-0.5.5 | README.md |