0.01
No release in over 3 years
Low commit activity in last 3 years
There's a lot of open issues
Lolita plugin, that enables .yml files management from administrative interface. Also faster access to translations, that DB store
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.0.1
~> 0.4
~> 0.7.0
>= 4.2
~> 3.0
~> 1.1
 Project Readme

About

Lolita I18n is Lolita plugin, that enables .yml file translation from WEB interface.

Usage

  • setup rails 3.2+ project with "Lolita"
  • setup Redis DB 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.