Sha256: d9f218722d89bc8b30ac04819d5fcc2e79710b89529a90fdcc12a6f917dc0d29

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 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.

---

Copyright (c) 2011 ITHouse (Latvia). See LICENSE.txt for further details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lolita-i18n-0.5.2 README.md
lolita-i18n-0.5.1 README.md