motorefi-lit 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +170 -0
- data/Rakefile +38 -0
- data/app/assets/images/lit/famfamfam_flags/ad.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ae.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/af.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ag.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ai.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/al.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/am.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/an.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ao.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ar.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/as.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/at.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/au.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/aw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ax.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/az.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ba.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bb.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bd.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/be.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bh.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bi.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bj.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bo.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/br.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bs.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bv.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/by.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/bz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ca.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/catalonia.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cd.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ch.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ci.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ck.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cl.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/co.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cs.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cv.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cx.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cy.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/cz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/da.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/de.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/dj.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/dk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/dm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/do.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/dz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ec.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ee.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/eg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/eh.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/en.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/england.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/er.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/es.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/et.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/europeanunion.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fam.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fi.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fj.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fo.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/fr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ga.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gb.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gd.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ge.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gh.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gi.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gl.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gp.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gq.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gs.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/gy.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/hk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/hm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/hn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/hr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ht.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/hu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/id.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ie.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/il.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/in.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/io.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/iq.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ir.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/is.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/it.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ja.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/jm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/jo.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/jp.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ke.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kh.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ki.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/km.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kp.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ky.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/kz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/la.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lb.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/li.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ls.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/lv.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ly.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ma.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/md.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/me.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mh.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ml.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mo.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mp.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mq.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ms.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mv.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mx.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/my.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/mz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/na.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/nc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ne.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/nf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ng.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ni.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/nl.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/no.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/np.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/nr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/nu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/nz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/om.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pa.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pe.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ph.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pl.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ps.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/pw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/py.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/qa.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/re.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ro.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/rs.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ru.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/rw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sa.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sb.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/scotland.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sd.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/se.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sh.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/si.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sj.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sl.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/so.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/st.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sv.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sy.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/sz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/td.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/th.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tj.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tk.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tl.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/to.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tr.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tv.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tw.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/tz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ua.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ug.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/um.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/us.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/uy.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/uz.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/va.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/vc.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ve.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/vg.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/vi.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/vn.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/vu.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/wales.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/wf.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ws.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/ye.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/yt.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/za.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/zm.png +0 -0
- data/app/assets/images/lit/famfamfam_flags/zw.png +0 -0
- data/app/assets/images/lit/jquery-te.png +0 -0
- data/app/assets/javascripts/lit/application.js +19 -0
- data/app/assets/javascripts/lit/backend/bootstrap.js.coffee +4 -0
- data/app/assets/javascripts/lit/backend/dashboard.js +2 -0
- data/app/assets/javascripts/lit/backend/jquery-te-1.4.0.min.js +9 -0
- data/app/assets/javascripts/lit/backend/localizations.js.coffee +26 -0
- data/app/assets/javascripts/lit/backend/sources.js.coffee +24 -0
- data/app/assets/javascripts/lit/lit_frontend.js +103 -0
- data/app/assets/javascripts/lit/mousetrap.js +1044 -0
- data/app/assets/stylesheets/lit/application.css +59 -0
- data/app/assets/stylesheets/lit/backend/jquery-te-1.4.0.css.scss +457 -0
- data/app/assets/stylesheets/lit/lit_frontend.css +86 -0
- data/app/controllers/lit/api/v1/base_controller.rb +19 -0
- data/app/controllers/lit/api/v1/locales_controller.rb +14 -0
- data/app/controllers/lit/api/v1/localization_keys_controller.rb +15 -0
- data/app/controllers/lit/api/v1/localizations_controller.rb +18 -0
- data/app/controllers/lit/application_controller.rb +49 -0
- data/app/controllers/lit/concerns/request_info_store.rb +16 -0
- data/app/controllers/lit/concerns/request_keys_store.rb +16 -0
- data/app/controllers/lit/dashboard_controller.rb +9 -0
- data/app/controllers/lit/incomming_localizations_controller.rb +49 -0
- data/app/controllers/lit/locales_controller.rb +31 -0
- data/app/controllers/lit/localization_keys_controller.rb +117 -0
- data/app/controllers/lit/localizations_controller.rb +60 -0
- data/app/controllers/lit/sources_controller.rb +77 -0
- data/app/helpers/lit/application_helper.rb +4 -0
- data/app/helpers/lit/dashboard_helper.rb +4 -0
- data/app/helpers/lit/frontend_helper.rb +71 -0
- data/app/helpers/lit/localization_keys_helper.rb +5 -0
- data/app/helpers/lit/localizations_helper.rb +15 -0
- data/app/helpers/lit/sources_helper.rb +7 -0
- data/app/jobs/lit/synchronize_source_job.rb +11 -0
- data/app/models/lit/incomming_localization.rb +77 -0
- data/app/models/lit/locale.rb +48 -0
- data/app/models/lit/localization.rb +103 -0
- data/app/models/lit/localization_key.rb +107 -0
- data/app/models/lit/localization_version.rb +12 -0
- data/app/models/lit/source.rb +111 -0
- data/app/views/kaminari/lit/_first_page.html.erb +5 -0
- data/app/views/kaminari/lit/_gap.html.erb +3 -0
- data/app/views/kaminari/lit/_last_page.html.erb +6 -0
- data/app/views/kaminari/lit/_next_page.html.erb +5 -0
- data/app/views/kaminari/lit/_page.html.erb +3 -0
- data/app/views/kaminari/lit/_paginator.html.erb +17 -0
- data/app/views/kaminari/lit/_prev_page.html.erb +5 -0
- data/app/views/layouts/lit/_messages.html.erb +6 -0
- data/app/views/layouts/lit/_navigation.html.erb +23 -0
- data/app/views/layouts/lit/application.html.erb +46 -0
- data/app/views/lit/dashboard/index.html.erb +5 -0
- data/app/views/lit/incomming_localizations/accept.js.erb +2 -0
- data/app/views/lit/incomming_localizations/destroy.js.erb +1 -0
- data/app/views/lit/incomming_localizations/index.html.erb +52 -0
- data/app/views/lit/locales/_hide_link.html.erb +1 -0
- data/app/views/lit/locales/hide.js.erb +1 -0
- data/app/views/lit/locales/index.html.erb +20 -0
- data/app/views/lit/localization_keys/_localization_row.html.erb +14 -0
- data/app/views/lit/localization_keys/destroy.js.erb +1 -0
- data/app/views/lit/localization_keys/index.html.erb +127 -0
- data/app/views/lit/localization_keys/star.js.erb +1 -0
- data/app/views/lit/localizations/_form.html.erb +23 -0
- data/app/views/lit/localizations/_previous_versions_rows.html.erb +15 -0
- data/app/views/lit/localizations/edit.js.erb +7 -0
- data/app/views/lit/localizations/previous_versions.js.erb +3 -0
- data/app/views/lit/localizations/update.js.erb +4 -0
- data/app/views/lit/sources/_form.html.erb +35 -0
- data/app/views/lit/sources/edit.html.erb +6 -0
- data/app/views/lit/sources/index.html.erb +42 -0
- data/app/views/lit/sources/new.html.erb +5 -0
- data/app/views/lit/sources/show.html.erb +19 -0
- data/config/routes.rb +49 -0
- data/db/migrate/20180101010101_lit_create_lit_locales.rb +16 -0
- data/db/migrate/20180101010102_lit_create_lit_localization_keys.rb +18 -0
- data/db/migrate/20180101010103_lit_create_lit_localizations.rb +24 -0
- data/db/migrate/20180101010104_lit_add_is_completed_and_is_starred_to_localization_keys.rb +17 -0
- data/db/migrate/20180101010105_lit_add_is_hidden_to_locales.rb +12 -0
- data/db/migrate/20180101010106_lit_create_lit_localization_versions.rb +20 -0
- data/db/migrate/20180101010107_lit_create_lit_sources.rb +19 -0
- data/db/migrate/20180101010108_lit_create_lit_incomming_localizations.rb +34 -0
- data/db/migrate/20180101010109_lit_add_sync_complete_to_lit_sources.rb +12 -0
- data/lib/generators/lit/install/templates/initializer.rb +52 -0
- data/lib/generators/lit/install_generator.rb +66 -0
- data/lib/lit.rb +65 -0
- data/lib/lit/adapters/hash_storage.rb +12 -0
- data/lib/lit/adapters/redis_storage.rb +99 -0
- data/lib/lit/cache.rb +356 -0
- data/lib/lit/engine.rb +28 -0
- data/lib/lit/i18n_backend.rb +192 -0
- data/lib/lit/loader.rb +16 -0
- data/lib/lit/rails.rb +17 -0
- data/lib/lit/railtie.rb +12 -0
- data/lib/lit/version.rb +3 -0
- data/lib/tasks/lit_tasks.rake +29 -0
- metadata +478 -0
data/lib/lit/engine.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
module Lit
|
2
|
+
class Engine < ::Rails::Engine
|
3
|
+
require 'jquery-rails'
|
4
|
+
|
5
|
+
config.autoload_paths += %W[#{Lit::Engine.root}/app/controllers/lit/concerns]
|
6
|
+
|
7
|
+
isolate_namespace Lit
|
8
|
+
|
9
|
+
initializer 'lit.assets.precompile' do |app|
|
10
|
+
app.config.assets.precompile += %w[lit/application.css lit/application.js]
|
11
|
+
app.config.assets.precompile += %w[lit/lit_frontend.css lit/lit_frontend.js]
|
12
|
+
# add language flags to list of precompiled assets
|
13
|
+
if app.config.i18n.available_locales
|
14
|
+
app.config.i18n.available_locales.each do |l|
|
15
|
+
app.config.assets.precompile << "lit/famfamfam_flags/#{l.to_s[0,2]}.png"
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
initializer 'lit.migrations.append' do |app|
|
21
|
+
unless app.root.to_s.include?(root.to_s)
|
22
|
+
config.paths['db/migrate'].expanded.each do |expanded_path|
|
23
|
+
app.config.paths['db/migrate'] << expanded_path
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,192 @@
|
|
1
|
+
require 'i18n'
|
2
|
+
|
3
|
+
module Lit
|
4
|
+
class I18nBackend
|
5
|
+
include I18n::Backend::Simple::Implementation
|
6
|
+
|
7
|
+
attr_reader :cache
|
8
|
+
|
9
|
+
def initialize(cache)
|
10
|
+
@cache = cache
|
11
|
+
@available_locales_cache = nil
|
12
|
+
@translations = {}
|
13
|
+
reserved_keys = I18n.const_get :RESERVED_KEYS
|
14
|
+
reserved_keys << :lit_default_copy
|
15
|
+
I18n.send(:remove_const, :RESERVED_KEYS)
|
16
|
+
I18n.const_set(:RESERVED_KEYS, reserved_keys)
|
17
|
+
end
|
18
|
+
|
19
|
+
def translate(locale, key, options = {})
|
20
|
+
options[:lit_default_copy] = options[:default].dup if can_dup_default(options)
|
21
|
+
content = super(locale, key, options)
|
22
|
+
if Lit.all_translations_are_html_safe && content.respond_to?(:html_safe)
|
23
|
+
content.html_safe
|
24
|
+
else
|
25
|
+
content
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def available_locales
|
30
|
+
return @available_locales_cache unless @available_locales_cache.nil?
|
31
|
+
@locales ||= ::Rails.configuration.i18n.available_locales
|
32
|
+
if @locales && !@locales.empty?
|
33
|
+
@available_locales_cache = @locales.map(&:to_sym)
|
34
|
+
else
|
35
|
+
@available_locales_cache = Lit::Locale.ordered.visible.map { |l| l.locale.to_sym }
|
36
|
+
end
|
37
|
+
@available_locales_cache
|
38
|
+
end
|
39
|
+
|
40
|
+
def reset_available_locales_cache
|
41
|
+
@available_locales_cache = nil
|
42
|
+
end
|
43
|
+
|
44
|
+
# Stores the given translations.
|
45
|
+
#
|
46
|
+
# @param [String] locale the locale (ie "en") to store translations for
|
47
|
+
# @param [Hash] data nested key-value pairs to be added as blurbs
|
48
|
+
def store_translations(locale, data, options = {})
|
49
|
+
super
|
50
|
+
ActiveRecord::Base.transaction do
|
51
|
+
store_item(locale, data)
|
52
|
+
end if store_items? && valid_locale?(locale)
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def can_dup_default(options = {})
|
58
|
+
return false unless options.key?(:default)
|
59
|
+
return true if options[:default].is_a?(String)
|
60
|
+
return true if options[:default].is_a?(Array) && \
|
61
|
+
(options[:default].first.is_a?(String) || \
|
62
|
+
options[:default].first.is_a?(Symbol))
|
63
|
+
false
|
64
|
+
end
|
65
|
+
|
66
|
+
def lookup(locale, key, scope = [], options = {})
|
67
|
+
init_translations unless initialized?
|
68
|
+
|
69
|
+
parts = I18n.normalize_keys(locale, key, scope, options[:separator])
|
70
|
+
key_with_locale = parts.join('.')
|
71
|
+
|
72
|
+
## check in cache or in simple backend
|
73
|
+
content = @cache[key_with_locale] || super
|
74
|
+
return content if parts.size <= 1
|
75
|
+
|
76
|
+
if content.nil? && should_cache?(key_with_locale)
|
77
|
+
new_content = @cache.init_key_with_value(key_with_locale, content)
|
78
|
+
content = new_content if content.nil? # Content can change when Lit.humanize is true for example
|
79
|
+
# so there is no content in cache - it might not be if ie. we're doing
|
80
|
+
# fallback to already existing language
|
81
|
+
if content.nil?
|
82
|
+
# check if default was provided
|
83
|
+
if options[:lit_default_copy].present?
|
84
|
+
# default most likely will be an array
|
85
|
+
if options[:lit_default_copy].is_a?(Array)
|
86
|
+
default = options[:lit_default_copy].map do |key_or_value|
|
87
|
+
if key_or_value.is_a?(Symbol)
|
88
|
+
I18n.normalize_keys(nil, key_or_value.to_s, options[:scope], options[:separator]).join('.').to_sym
|
89
|
+
else
|
90
|
+
key_or_value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
default = default.first if default.is_a?(Array)
|
94
|
+
else
|
95
|
+
default = options[:lit_default_copy]
|
96
|
+
end
|
97
|
+
content = default
|
98
|
+
end
|
99
|
+
# if we have content now, let's store it in cache
|
100
|
+
if content.present?
|
101
|
+
@cache[key_with_locale] = content
|
102
|
+
content = @cache[key_with_locale]
|
103
|
+
end
|
104
|
+
# content might be nil - default value passed to cache was in fact
|
105
|
+
# useless.
|
106
|
+
# if content is still nil, we may try to humanize it. Rails will do
|
107
|
+
# it anyway if we return nil, but then it will wrap it also in
|
108
|
+
# translation_missing span.
|
109
|
+
# Humanizing key should be last resort
|
110
|
+
if content.nil? && Lit.humanize_key
|
111
|
+
content = key.to_s.split('.').last.humanize
|
112
|
+
if content.present?
|
113
|
+
@cache[key_with_locale] = content
|
114
|
+
content = @cache[key_with_locale]
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
## return translated content
|
120
|
+
content
|
121
|
+
end
|
122
|
+
|
123
|
+
def store_item(locale, data, scope = [], startup_process = false)
|
124
|
+
key = ([locale] + scope).join('.')
|
125
|
+
if data.respond_to?(:to_hash)
|
126
|
+
# ActiveRecord::Base.transaction do
|
127
|
+
data.to_hash.each do |key, value|
|
128
|
+
store_item(locale, value, scope + [key], startup_process)
|
129
|
+
end
|
130
|
+
# end
|
131
|
+
elsif data.respond_to?(:to_str) || data.is_a?(Array)
|
132
|
+
key = ([locale] + scope).join('.')
|
133
|
+
return if startup_process && @cache.keys.member?(key) && Lit.ignore_yaml_on_startup
|
134
|
+
@cache.update_locale(key, data, data.is_a?(Array), startup_process)
|
135
|
+
elsif data.nil?
|
136
|
+
return if startup_process
|
137
|
+
key = ([locale] + scope).join('.')
|
138
|
+
@cache.delete_locale(key)
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
def load_translations_to_cache
|
143
|
+
ActiveRecord::Base.transaction do
|
144
|
+
(@translations || {}).each do |locale, data|
|
145
|
+
store_item(locale, data, [], true) if valid_locale?(locale)
|
146
|
+
end
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
def init_translations
|
151
|
+
# Load all translations from *.yml, *.rb files to @translations variable.
|
152
|
+
# We don't want to store translations in lit cache just yet. We'll do it
|
153
|
+
# with `load_translations_to_cache` when all translations form yml (rb)
|
154
|
+
# files will be loaded.
|
155
|
+
without_store_items { load_translations }
|
156
|
+
# load translations from database to cache
|
157
|
+
@cache.load_all_translations
|
158
|
+
# load translations from @translations to cache
|
159
|
+
load_translations_to_cache
|
160
|
+
@initialized = true
|
161
|
+
end
|
162
|
+
|
163
|
+
def without_store_items
|
164
|
+
@store_items = false
|
165
|
+
yield
|
166
|
+
ensure
|
167
|
+
@store_items = true
|
168
|
+
end
|
169
|
+
|
170
|
+
def store_items?
|
171
|
+
!instance_variable_defined?(:@store_items) || @store_items
|
172
|
+
end
|
173
|
+
|
174
|
+
def valid_locale?(locale)
|
175
|
+
@locales ||= ::Rails.configuration.i18n.available_locales
|
176
|
+
!@locales || @locales.map(&:to_s).include?(locale.to_s)
|
177
|
+
end
|
178
|
+
|
179
|
+
def is_ignored_key(key_without_locale)
|
180
|
+
Lit.ignored_keys.any?{ |k| key_without_locale.start_with?(k) }
|
181
|
+
end
|
182
|
+
|
183
|
+
def should_cache?(key_with_locale)
|
184
|
+
return false if @cache.has_key?(key_with_locale)
|
185
|
+
|
186
|
+
_, key_without_locale = ::Lit::Cache.split_key(key_with_locale)
|
187
|
+
return false if is_ignored_key(key_without_locale)
|
188
|
+
|
189
|
+
true
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
data/lib/lit/loader.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'logger'
|
2
|
+
require 'lit/i18n_backend'
|
3
|
+
require 'lit/cache'
|
4
|
+
|
5
|
+
module Lit
|
6
|
+
class Loader
|
7
|
+
attr_accessor :cache
|
8
|
+
attr_accessor :logger
|
9
|
+
def initialize
|
10
|
+
self.logger ||= Logger.new($stdout)
|
11
|
+
self.logger.info 'initializing Lit'
|
12
|
+
self.cache ||= Cache.new
|
13
|
+
I18n.backend = I18nBackend.new(self.cache)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/lit/rails.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
require 'logger'
|
2
|
+
require 'lit/i18n_backend'
|
3
|
+
require 'lit/cache'
|
4
|
+
|
5
|
+
module Lit
|
6
|
+
module Rails
|
7
|
+
def self.initialize
|
8
|
+
Lit.init
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
if defined?(Rails::Railtie)
|
14
|
+
require 'lit/railtie'
|
15
|
+
else
|
16
|
+
Lit::Rails.initialize
|
17
|
+
end
|
data/lib/lit/railtie.rb
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
module Lit
|
2
|
+
class Railtie < ::Rails::Railtie
|
3
|
+
## INITIALIZE IN config/initialize if you want to use redis!!!
|
4
|
+
initializer :initialize_lit_rails, after: :before_initialize do
|
5
|
+
# Lit::Rails.initialize
|
6
|
+
end
|
7
|
+
|
8
|
+
# rake_tasks do
|
9
|
+
# load "tasks/lit_tasks.rake"
|
10
|
+
# end
|
11
|
+
end
|
12
|
+
end
|
data/lib/lit/version.rb
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
namespace :lit do
|
2
|
+
desc 'Exports translated strings from lit to config/locales/lit.yml file.'
|
3
|
+
task export: :environment do
|
4
|
+
if yml = Lit.init.cache.export
|
5
|
+
path = Rails.root.join('config', 'locales', 'lit.yml')
|
6
|
+
File.new(path, 'w').write(yml)
|
7
|
+
puts "Successfully exported #{path}."
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
desc 'Reads config/locales/#{ENV["FILES"]} files and calls I18n.t() on keys forcing Lit to import given LOCALE to cache / to display them in UI. Skips nils by default (change by setting ENV["SKIP_NIL"] = false'
|
12
|
+
task raw_import: :environment do
|
13
|
+
return 'you need to define FILES env' if ENV['FILES'].blank?
|
14
|
+
return 'you need to define LOCALE env' if ENV['LOCALE'].blank?
|
15
|
+
files = ENV['FILES'].to_s.split(',')
|
16
|
+
locale = ENV['LOCALE'].to_s
|
17
|
+
I18n.with_locale(locale) do
|
18
|
+
files.each do |file|
|
19
|
+
locale_file = File.open(Rails.root.join('config', 'locales', file))
|
20
|
+
yml = YAML.load(locale_file)[locale]
|
21
|
+
Hash[*Lit::Cache.flatten_hash(yml)].each do |key, default_translation|
|
22
|
+
next if default_translation.nil? && ENV.fetch('SKIP_NIL', 'true') == 'true'
|
23
|
+
puts key
|
24
|
+
I18n.t(key, default: default_translation)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
metadata
ADDED
@@ -0,0 +1,478 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: motorefi-lit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.3
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Maciej Litwiniuk
|
8
|
+
- Piotr Boniecki
|
9
|
+
- Michał Buszkiewicz
|
10
|
+
- Nisarg Shah
|
11
|
+
autorequire:
|
12
|
+
bindir: bin
|
13
|
+
cert_chain: []
|
14
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: i18n
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
requirements:
|
20
|
+
- - "~>"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.7'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - "~>"
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: jquery-rails
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0'
|
37
|
+
type: :runtime
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
- !ruby/object:Gem::Dependency
|
45
|
+
name: rails
|
46
|
+
requirement: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: 4.2.0
|
51
|
+
type: :runtime
|
52
|
+
prerelease: false
|
53
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
version: 4.2.0
|
58
|
+
- !ruby/object:Gem::Dependency
|
59
|
+
name: appraisal
|
60
|
+
requirement: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '0'
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '0'
|
72
|
+
- !ruby/object:Gem::Dependency
|
73
|
+
name: devise
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ">="
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
type: :development
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: !ruby/object:Gem::Requirement
|
82
|
+
requirements:
|
83
|
+
- - ">="
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
- !ruby/object:Gem::Dependency
|
87
|
+
name: pg
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
89
|
+
requirements:
|
90
|
+
- - ">="
|
91
|
+
- !ruby/object:Gem::Version
|
92
|
+
version: '0'
|
93
|
+
type: :development
|
94
|
+
prerelease: false
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - ">="
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '0'
|
100
|
+
description: "Translate your apps with pleasure (sort of...) and for free.\n It's
|
101
|
+
simple i18n web interface, build on top of twitter\n bootstrap,
|
102
|
+
that one may find helpful in translating app by\n non-technicals. "
|
103
|
+
email:
|
104
|
+
- maciej@litwiniuk.net
|
105
|
+
executables: []
|
106
|
+
extensions: []
|
107
|
+
extra_rdoc_files: []
|
108
|
+
files:
|
109
|
+
- MIT-LICENSE
|
110
|
+
- README.md
|
111
|
+
- Rakefile
|
112
|
+
- app/assets/images/lit/famfamfam_flags/ad.png
|
113
|
+
- app/assets/images/lit/famfamfam_flags/ae.png
|
114
|
+
- app/assets/images/lit/famfamfam_flags/af.png
|
115
|
+
- app/assets/images/lit/famfamfam_flags/ag.png
|
116
|
+
- app/assets/images/lit/famfamfam_flags/ai.png
|
117
|
+
- app/assets/images/lit/famfamfam_flags/al.png
|
118
|
+
- app/assets/images/lit/famfamfam_flags/am.png
|
119
|
+
- app/assets/images/lit/famfamfam_flags/an.png
|
120
|
+
- app/assets/images/lit/famfamfam_flags/ao.png
|
121
|
+
- app/assets/images/lit/famfamfam_flags/ar.png
|
122
|
+
- app/assets/images/lit/famfamfam_flags/as.png
|
123
|
+
- app/assets/images/lit/famfamfam_flags/at.png
|
124
|
+
- app/assets/images/lit/famfamfam_flags/au.png
|
125
|
+
- app/assets/images/lit/famfamfam_flags/aw.png
|
126
|
+
- app/assets/images/lit/famfamfam_flags/ax.png
|
127
|
+
- app/assets/images/lit/famfamfam_flags/az.png
|
128
|
+
- app/assets/images/lit/famfamfam_flags/ba.png
|
129
|
+
- app/assets/images/lit/famfamfam_flags/bb.png
|
130
|
+
- app/assets/images/lit/famfamfam_flags/bd.png
|
131
|
+
- app/assets/images/lit/famfamfam_flags/be.png
|
132
|
+
- app/assets/images/lit/famfamfam_flags/bf.png
|
133
|
+
- app/assets/images/lit/famfamfam_flags/bg.png
|
134
|
+
- app/assets/images/lit/famfamfam_flags/bh.png
|
135
|
+
- app/assets/images/lit/famfamfam_flags/bi.png
|
136
|
+
- app/assets/images/lit/famfamfam_flags/bj.png
|
137
|
+
- app/assets/images/lit/famfamfam_flags/bm.png
|
138
|
+
- app/assets/images/lit/famfamfam_flags/bn.png
|
139
|
+
- app/assets/images/lit/famfamfam_flags/bo.png
|
140
|
+
- app/assets/images/lit/famfamfam_flags/br.png
|
141
|
+
- app/assets/images/lit/famfamfam_flags/bs.png
|
142
|
+
- app/assets/images/lit/famfamfam_flags/bt.png
|
143
|
+
- app/assets/images/lit/famfamfam_flags/bv.png
|
144
|
+
- app/assets/images/lit/famfamfam_flags/bw.png
|
145
|
+
- app/assets/images/lit/famfamfam_flags/by.png
|
146
|
+
- app/assets/images/lit/famfamfam_flags/bz.png
|
147
|
+
- app/assets/images/lit/famfamfam_flags/ca.png
|
148
|
+
- app/assets/images/lit/famfamfam_flags/catalonia.png
|
149
|
+
- app/assets/images/lit/famfamfam_flags/cc.png
|
150
|
+
- app/assets/images/lit/famfamfam_flags/cd.png
|
151
|
+
- app/assets/images/lit/famfamfam_flags/cf.png
|
152
|
+
- app/assets/images/lit/famfamfam_flags/cg.png
|
153
|
+
- app/assets/images/lit/famfamfam_flags/ch.png
|
154
|
+
- app/assets/images/lit/famfamfam_flags/ci.png
|
155
|
+
- app/assets/images/lit/famfamfam_flags/ck.png
|
156
|
+
- app/assets/images/lit/famfamfam_flags/cl.png
|
157
|
+
- app/assets/images/lit/famfamfam_flags/cm.png
|
158
|
+
- app/assets/images/lit/famfamfam_flags/cn.png
|
159
|
+
- app/assets/images/lit/famfamfam_flags/co.png
|
160
|
+
- app/assets/images/lit/famfamfam_flags/cr.png
|
161
|
+
- app/assets/images/lit/famfamfam_flags/cs.png
|
162
|
+
- app/assets/images/lit/famfamfam_flags/cu.png
|
163
|
+
- app/assets/images/lit/famfamfam_flags/cv.png
|
164
|
+
- app/assets/images/lit/famfamfam_flags/cx.png
|
165
|
+
- app/assets/images/lit/famfamfam_flags/cy.png
|
166
|
+
- app/assets/images/lit/famfamfam_flags/cz.png
|
167
|
+
- app/assets/images/lit/famfamfam_flags/da.png
|
168
|
+
- app/assets/images/lit/famfamfam_flags/de.png
|
169
|
+
- app/assets/images/lit/famfamfam_flags/dj.png
|
170
|
+
- app/assets/images/lit/famfamfam_flags/dk.png
|
171
|
+
- app/assets/images/lit/famfamfam_flags/dm.png
|
172
|
+
- app/assets/images/lit/famfamfam_flags/do.png
|
173
|
+
- app/assets/images/lit/famfamfam_flags/dz.png
|
174
|
+
- app/assets/images/lit/famfamfam_flags/ec.png
|
175
|
+
- app/assets/images/lit/famfamfam_flags/ee.png
|
176
|
+
- app/assets/images/lit/famfamfam_flags/eg.png
|
177
|
+
- app/assets/images/lit/famfamfam_flags/eh.png
|
178
|
+
- app/assets/images/lit/famfamfam_flags/en.png
|
179
|
+
- app/assets/images/lit/famfamfam_flags/england.png
|
180
|
+
- app/assets/images/lit/famfamfam_flags/er.png
|
181
|
+
- app/assets/images/lit/famfamfam_flags/es.png
|
182
|
+
- app/assets/images/lit/famfamfam_flags/et.png
|
183
|
+
- app/assets/images/lit/famfamfam_flags/europeanunion.png
|
184
|
+
- app/assets/images/lit/famfamfam_flags/fam.png
|
185
|
+
- app/assets/images/lit/famfamfam_flags/fi.png
|
186
|
+
- app/assets/images/lit/famfamfam_flags/fj.png
|
187
|
+
- app/assets/images/lit/famfamfam_flags/fk.png
|
188
|
+
- app/assets/images/lit/famfamfam_flags/fm.png
|
189
|
+
- app/assets/images/lit/famfamfam_flags/fo.png
|
190
|
+
- app/assets/images/lit/famfamfam_flags/fr.png
|
191
|
+
- app/assets/images/lit/famfamfam_flags/ga.png
|
192
|
+
- app/assets/images/lit/famfamfam_flags/gb.png
|
193
|
+
- app/assets/images/lit/famfamfam_flags/gd.png
|
194
|
+
- app/assets/images/lit/famfamfam_flags/ge.png
|
195
|
+
- app/assets/images/lit/famfamfam_flags/gf.png
|
196
|
+
- app/assets/images/lit/famfamfam_flags/gh.png
|
197
|
+
- app/assets/images/lit/famfamfam_flags/gi.png
|
198
|
+
- app/assets/images/lit/famfamfam_flags/gl.png
|
199
|
+
- app/assets/images/lit/famfamfam_flags/gm.png
|
200
|
+
- app/assets/images/lit/famfamfam_flags/gn.png
|
201
|
+
- app/assets/images/lit/famfamfam_flags/gp.png
|
202
|
+
- app/assets/images/lit/famfamfam_flags/gq.png
|
203
|
+
- app/assets/images/lit/famfamfam_flags/gr.png
|
204
|
+
- app/assets/images/lit/famfamfam_flags/gs.png
|
205
|
+
- app/assets/images/lit/famfamfam_flags/gt.png
|
206
|
+
- app/assets/images/lit/famfamfam_flags/gu.png
|
207
|
+
- app/assets/images/lit/famfamfam_flags/gw.png
|
208
|
+
- app/assets/images/lit/famfamfam_flags/gy.png
|
209
|
+
- app/assets/images/lit/famfamfam_flags/hk.png
|
210
|
+
- app/assets/images/lit/famfamfam_flags/hm.png
|
211
|
+
- app/assets/images/lit/famfamfam_flags/hn.png
|
212
|
+
- app/assets/images/lit/famfamfam_flags/hr.png
|
213
|
+
- app/assets/images/lit/famfamfam_flags/ht.png
|
214
|
+
- app/assets/images/lit/famfamfam_flags/hu.png
|
215
|
+
- app/assets/images/lit/famfamfam_flags/id.png
|
216
|
+
- app/assets/images/lit/famfamfam_flags/ie.png
|
217
|
+
- app/assets/images/lit/famfamfam_flags/il.png
|
218
|
+
- app/assets/images/lit/famfamfam_flags/in.png
|
219
|
+
- app/assets/images/lit/famfamfam_flags/io.png
|
220
|
+
- app/assets/images/lit/famfamfam_flags/iq.png
|
221
|
+
- app/assets/images/lit/famfamfam_flags/ir.png
|
222
|
+
- app/assets/images/lit/famfamfam_flags/is.png
|
223
|
+
- app/assets/images/lit/famfamfam_flags/it.png
|
224
|
+
- app/assets/images/lit/famfamfam_flags/ja.png
|
225
|
+
- app/assets/images/lit/famfamfam_flags/jm.png
|
226
|
+
- app/assets/images/lit/famfamfam_flags/jo.png
|
227
|
+
- app/assets/images/lit/famfamfam_flags/jp.png
|
228
|
+
- app/assets/images/lit/famfamfam_flags/ke.png
|
229
|
+
- app/assets/images/lit/famfamfam_flags/kg.png
|
230
|
+
- app/assets/images/lit/famfamfam_flags/kh.png
|
231
|
+
- app/assets/images/lit/famfamfam_flags/ki.png
|
232
|
+
- app/assets/images/lit/famfamfam_flags/km.png
|
233
|
+
- app/assets/images/lit/famfamfam_flags/kn.png
|
234
|
+
- app/assets/images/lit/famfamfam_flags/kp.png
|
235
|
+
- app/assets/images/lit/famfamfam_flags/kr.png
|
236
|
+
- app/assets/images/lit/famfamfam_flags/kw.png
|
237
|
+
- app/assets/images/lit/famfamfam_flags/ky.png
|
238
|
+
- app/assets/images/lit/famfamfam_flags/kz.png
|
239
|
+
- app/assets/images/lit/famfamfam_flags/la.png
|
240
|
+
- app/assets/images/lit/famfamfam_flags/lb.png
|
241
|
+
- app/assets/images/lit/famfamfam_flags/lc.png
|
242
|
+
- app/assets/images/lit/famfamfam_flags/li.png
|
243
|
+
- app/assets/images/lit/famfamfam_flags/lk.png
|
244
|
+
- app/assets/images/lit/famfamfam_flags/lr.png
|
245
|
+
- app/assets/images/lit/famfamfam_flags/ls.png
|
246
|
+
- app/assets/images/lit/famfamfam_flags/lt.png
|
247
|
+
- app/assets/images/lit/famfamfam_flags/lu.png
|
248
|
+
- app/assets/images/lit/famfamfam_flags/lv.png
|
249
|
+
- app/assets/images/lit/famfamfam_flags/ly.png
|
250
|
+
- app/assets/images/lit/famfamfam_flags/ma.png
|
251
|
+
- app/assets/images/lit/famfamfam_flags/mc.png
|
252
|
+
- app/assets/images/lit/famfamfam_flags/md.png
|
253
|
+
- app/assets/images/lit/famfamfam_flags/me.png
|
254
|
+
- app/assets/images/lit/famfamfam_flags/mg.png
|
255
|
+
- app/assets/images/lit/famfamfam_flags/mh.png
|
256
|
+
- app/assets/images/lit/famfamfam_flags/mk.png
|
257
|
+
- app/assets/images/lit/famfamfam_flags/ml.png
|
258
|
+
- app/assets/images/lit/famfamfam_flags/mm.png
|
259
|
+
- app/assets/images/lit/famfamfam_flags/mn.png
|
260
|
+
- app/assets/images/lit/famfamfam_flags/mo.png
|
261
|
+
- app/assets/images/lit/famfamfam_flags/mp.png
|
262
|
+
- app/assets/images/lit/famfamfam_flags/mq.png
|
263
|
+
- app/assets/images/lit/famfamfam_flags/mr.png
|
264
|
+
- app/assets/images/lit/famfamfam_flags/ms.png
|
265
|
+
- app/assets/images/lit/famfamfam_flags/mt.png
|
266
|
+
- app/assets/images/lit/famfamfam_flags/mu.png
|
267
|
+
- app/assets/images/lit/famfamfam_flags/mv.png
|
268
|
+
- app/assets/images/lit/famfamfam_flags/mw.png
|
269
|
+
- app/assets/images/lit/famfamfam_flags/mx.png
|
270
|
+
- app/assets/images/lit/famfamfam_flags/my.png
|
271
|
+
- app/assets/images/lit/famfamfam_flags/mz.png
|
272
|
+
- app/assets/images/lit/famfamfam_flags/na.png
|
273
|
+
- app/assets/images/lit/famfamfam_flags/nc.png
|
274
|
+
- app/assets/images/lit/famfamfam_flags/ne.png
|
275
|
+
- app/assets/images/lit/famfamfam_flags/nf.png
|
276
|
+
- app/assets/images/lit/famfamfam_flags/ng.png
|
277
|
+
- app/assets/images/lit/famfamfam_flags/ni.png
|
278
|
+
- app/assets/images/lit/famfamfam_flags/nl.png
|
279
|
+
- app/assets/images/lit/famfamfam_flags/no.png
|
280
|
+
- app/assets/images/lit/famfamfam_flags/np.png
|
281
|
+
- app/assets/images/lit/famfamfam_flags/nr.png
|
282
|
+
- app/assets/images/lit/famfamfam_flags/nu.png
|
283
|
+
- app/assets/images/lit/famfamfam_flags/nz.png
|
284
|
+
- app/assets/images/lit/famfamfam_flags/om.png
|
285
|
+
- app/assets/images/lit/famfamfam_flags/pa.png
|
286
|
+
- app/assets/images/lit/famfamfam_flags/pe.png
|
287
|
+
- app/assets/images/lit/famfamfam_flags/pf.png
|
288
|
+
- app/assets/images/lit/famfamfam_flags/pg.png
|
289
|
+
- app/assets/images/lit/famfamfam_flags/ph.png
|
290
|
+
- app/assets/images/lit/famfamfam_flags/pk.png
|
291
|
+
- app/assets/images/lit/famfamfam_flags/pl.png
|
292
|
+
- app/assets/images/lit/famfamfam_flags/pm.png
|
293
|
+
- app/assets/images/lit/famfamfam_flags/pn.png
|
294
|
+
- app/assets/images/lit/famfamfam_flags/pr.png
|
295
|
+
- app/assets/images/lit/famfamfam_flags/ps.png
|
296
|
+
- app/assets/images/lit/famfamfam_flags/pt.png
|
297
|
+
- app/assets/images/lit/famfamfam_flags/pw.png
|
298
|
+
- app/assets/images/lit/famfamfam_flags/py.png
|
299
|
+
- app/assets/images/lit/famfamfam_flags/qa.png
|
300
|
+
- app/assets/images/lit/famfamfam_flags/re.png
|
301
|
+
- app/assets/images/lit/famfamfam_flags/ro.png
|
302
|
+
- app/assets/images/lit/famfamfam_flags/rs.png
|
303
|
+
- app/assets/images/lit/famfamfam_flags/ru.png
|
304
|
+
- app/assets/images/lit/famfamfam_flags/rw.png
|
305
|
+
- app/assets/images/lit/famfamfam_flags/sa.png
|
306
|
+
- app/assets/images/lit/famfamfam_flags/sb.png
|
307
|
+
- app/assets/images/lit/famfamfam_flags/sc.png
|
308
|
+
- app/assets/images/lit/famfamfam_flags/scotland.png
|
309
|
+
- app/assets/images/lit/famfamfam_flags/sd.png
|
310
|
+
- app/assets/images/lit/famfamfam_flags/se.png
|
311
|
+
- app/assets/images/lit/famfamfam_flags/sg.png
|
312
|
+
- app/assets/images/lit/famfamfam_flags/sh.png
|
313
|
+
- app/assets/images/lit/famfamfam_flags/si.png
|
314
|
+
- app/assets/images/lit/famfamfam_flags/sj.png
|
315
|
+
- app/assets/images/lit/famfamfam_flags/sk.png
|
316
|
+
- app/assets/images/lit/famfamfam_flags/sl.png
|
317
|
+
- app/assets/images/lit/famfamfam_flags/sm.png
|
318
|
+
- app/assets/images/lit/famfamfam_flags/sn.png
|
319
|
+
- app/assets/images/lit/famfamfam_flags/so.png
|
320
|
+
- app/assets/images/lit/famfamfam_flags/sr.png
|
321
|
+
- app/assets/images/lit/famfamfam_flags/st.png
|
322
|
+
- app/assets/images/lit/famfamfam_flags/sv.png
|
323
|
+
- app/assets/images/lit/famfamfam_flags/sy.png
|
324
|
+
- app/assets/images/lit/famfamfam_flags/sz.png
|
325
|
+
- app/assets/images/lit/famfamfam_flags/tc.png
|
326
|
+
- app/assets/images/lit/famfamfam_flags/td.png
|
327
|
+
- app/assets/images/lit/famfamfam_flags/tf.png
|
328
|
+
- app/assets/images/lit/famfamfam_flags/tg.png
|
329
|
+
- app/assets/images/lit/famfamfam_flags/th.png
|
330
|
+
- app/assets/images/lit/famfamfam_flags/tj.png
|
331
|
+
- app/assets/images/lit/famfamfam_flags/tk.png
|
332
|
+
- app/assets/images/lit/famfamfam_flags/tl.png
|
333
|
+
- app/assets/images/lit/famfamfam_flags/tm.png
|
334
|
+
- app/assets/images/lit/famfamfam_flags/tn.png
|
335
|
+
- app/assets/images/lit/famfamfam_flags/to.png
|
336
|
+
- app/assets/images/lit/famfamfam_flags/tr.png
|
337
|
+
- app/assets/images/lit/famfamfam_flags/tt.png
|
338
|
+
- app/assets/images/lit/famfamfam_flags/tv.png
|
339
|
+
- app/assets/images/lit/famfamfam_flags/tw.png
|
340
|
+
- app/assets/images/lit/famfamfam_flags/tz.png
|
341
|
+
- app/assets/images/lit/famfamfam_flags/ua.png
|
342
|
+
- app/assets/images/lit/famfamfam_flags/ug.png
|
343
|
+
- app/assets/images/lit/famfamfam_flags/um.png
|
344
|
+
- app/assets/images/lit/famfamfam_flags/us.png
|
345
|
+
- app/assets/images/lit/famfamfam_flags/uy.png
|
346
|
+
- app/assets/images/lit/famfamfam_flags/uz.png
|
347
|
+
- app/assets/images/lit/famfamfam_flags/va.png
|
348
|
+
- app/assets/images/lit/famfamfam_flags/vc.png
|
349
|
+
- app/assets/images/lit/famfamfam_flags/ve.png
|
350
|
+
- app/assets/images/lit/famfamfam_flags/vg.png
|
351
|
+
- app/assets/images/lit/famfamfam_flags/vi.png
|
352
|
+
- app/assets/images/lit/famfamfam_flags/vn.png
|
353
|
+
- app/assets/images/lit/famfamfam_flags/vu.png
|
354
|
+
- app/assets/images/lit/famfamfam_flags/wales.png
|
355
|
+
- app/assets/images/lit/famfamfam_flags/wf.png
|
356
|
+
- app/assets/images/lit/famfamfam_flags/ws.png
|
357
|
+
- app/assets/images/lit/famfamfam_flags/ye.png
|
358
|
+
- app/assets/images/lit/famfamfam_flags/yt.png
|
359
|
+
- app/assets/images/lit/famfamfam_flags/za.png
|
360
|
+
- app/assets/images/lit/famfamfam_flags/zm.png
|
361
|
+
- app/assets/images/lit/famfamfam_flags/zw.png
|
362
|
+
- app/assets/images/lit/jquery-te.png
|
363
|
+
- app/assets/javascripts/lit/application.js
|
364
|
+
- app/assets/javascripts/lit/backend/bootstrap.js.coffee
|
365
|
+
- app/assets/javascripts/lit/backend/dashboard.js
|
366
|
+
- app/assets/javascripts/lit/backend/jquery-te-1.4.0.min.js
|
367
|
+
- app/assets/javascripts/lit/backend/localizations.js.coffee
|
368
|
+
- app/assets/javascripts/lit/backend/sources.js.coffee
|
369
|
+
- app/assets/javascripts/lit/lit_frontend.js
|
370
|
+
- app/assets/javascripts/lit/mousetrap.js
|
371
|
+
- app/assets/stylesheets/lit/application.css
|
372
|
+
- app/assets/stylesheets/lit/backend/jquery-te-1.4.0.css.scss
|
373
|
+
- app/assets/stylesheets/lit/lit_frontend.css
|
374
|
+
- app/controllers/lit/api/v1/base_controller.rb
|
375
|
+
- app/controllers/lit/api/v1/locales_controller.rb
|
376
|
+
- app/controllers/lit/api/v1/localization_keys_controller.rb
|
377
|
+
- app/controllers/lit/api/v1/localizations_controller.rb
|
378
|
+
- app/controllers/lit/application_controller.rb
|
379
|
+
- app/controllers/lit/concerns/request_info_store.rb
|
380
|
+
- app/controllers/lit/concerns/request_keys_store.rb
|
381
|
+
- app/controllers/lit/dashboard_controller.rb
|
382
|
+
- app/controllers/lit/incomming_localizations_controller.rb
|
383
|
+
- app/controllers/lit/locales_controller.rb
|
384
|
+
- app/controllers/lit/localization_keys_controller.rb
|
385
|
+
- app/controllers/lit/localizations_controller.rb
|
386
|
+
- app/controllers/lit/sources_controller.rb
|
387
|
+
- app/helpers/lit/application_helper.rb
|
388
|
+
- app/helpers/lit/dashboard_helper.rb
|
389
|
+
- app/helpers/lit/frontend_helper.rb
|
390
|
+
- app/helpers/lit/localization_keys_helper.rb
|
391
|
+
- app/helpers/lit/localizations_helper.rb
|
392
|
+
- app/helpers/lit/sources_helper.rb
|
393
|
+
- app/jobs/lit/synchronize_source_job.rb
|
394
|
+
- app/models/lit/incomming_localization.rb
|
395
|
+
- app/models/lit/locale.rb
|
396
|
+
- app/models/lit/localization.rb
|
397
|
+
- app/models/lit/localization_key.rb
|
398
|
+
- app/models/lit/localization_version.rb
|
399
|
+
- app/models/lit/source.rb
|
400
|
+
- app/views/kaminari/lit/_first_page.html.erb
|
401
|
+
- app/views/kaminari/lit/_gap.html.erb
|
402
|
+
- app/views/kaminari/lit/_last_page.html.erb
|
403
|
+
- app/views/kaminari/lit/_next_page.html.erb
|
404
|
+
- app/views/kaminari/lit/_page.html.erb
|
405
|
+
- app/views/kaminari/lit/_paginator.html.erb
|
406
|
+
- app/views/kaminari/lit/_prev_page.html.erb
|
407
|
+
- app/views/layouts/lit/_messages.html.erb
|
408
|
+
- app/views/layouts/lit/_navigation.html.erb
|
409
|
+
- app/views/layouts/lit/application.html.erb
|
410
|
+
- app/views/lit/dashboard/index.html.erb
|
411
|
+
- app/views/lit/incomming_localizations/accept.js.erb
|
412
|
+
- app/views/lit/incomming_localizations/destroy.js.erb
|
413
|
+
- app/views/lit/incomming_localizations/index.html.erb
|
414
|
+
- app/views/lit/locales/_hide_link.html.erb
|
415
|
+
- app/views/lit/locales/hide.js.erb
|
416
|
+
- app/views/lit/locales/index.html.erb
|
417
|
+
- app/views/lit/localization_keys/_localization_row.html.erb
|
418
|
+
- app/views/lit/localization_keys/destroy.js.erb
|
419
|
+
- app/views/lit/localization_keys/index.html.erb
|
420
|
+
- app/views/lit/localization_keys/star.js.erb
|
421
|
+
- app/views/lit/localizations/_form.html.erb
|
422
|
+
- app/views/lit/localizations/_previous_versions_rows.html.erb
|
423
|
+
- app/views/lit/localizations/edit.js.erb
|
424
|
+
- app/views/lit/localizations/previous_versions.js.erb
|
425
|
+
- app/views/lit/localizations/update.js.erb
|
426
|
+
- app/views/lit/sources/_form.html.erb
|
427
|
+
- app/views/lit/sources/edit.html.erb
|
428
|
+
- app/views/lit/sources/index.html.erb
|
429
|
+
- app/views/lit/sources/new.html.erb
|
430
|
+
- app/views/lit/sources/show.html.erb
|
431
|
+
- config/routes.rb
|
432
|
+
- db/migrate/20180101010101_lit_create_lit_locales.rb
|
433
|
+
- db/migrate/20180101010102_lit_create_lit_localization_keys.rb
|
434
|
+
- db/migrate/20180101010103_lit_create_lit_localizations.rb
|
435
|
+
- db/migrate/20180101010104_lit_add_is_completed_and_is_starred_to_localization_keys.rb
|
436
|
+
- db/migrate/20180101010105_lit_add_is_hidden_to_locales.rb
|
437
|
+
- db/migrate/20180101010106_lit_create_lit_localization_versions.rb
|
438
|
+
- db/migrate/20180101010107_lit_create_lit_sources.rb
|
439
|
+
- db/migrate/20180101010108_lit_create_lit_incomming_localizations.rb
|
440
|
+
- db/migrate/20180101010109_lit_add_sync_complete_to_lit_sources.rb
|
441
|
+
- lib/generators/lit/install/templates/initializer.rb
|
442
|
+
- lib/generators/lit/install_generator.rb
|
443
|
+
- lib/lit.rb
|
444
|
+
- lib/lit/adapters/hash_storage.rb
|
445
|
+
- lib/lit/adapters/redis_storage.rb
|
446
|
+
- lib/lit/cache.rb
|
447
|
+
- lib/lit/engine.rb
|
448
|
+
- lib/lit/i18n_backend.rb
|
449
|
+
- lib/lit/loader.rb
|
450
|
+
- lib/lit/rails.rb
|
451
|
+
- lib/lit/railtie.rb
|
452
|
+
- lib/lit/version.rb
|
453
|
+
- lib/tasks/lit_tasks.rake
|
454
|
+
homepage: https://github.com/motorefi/lit
|
455
|
+
licenses:
|
456
|
+
- MIT
|
457
|
+
metadata: {}
|
458
|
+
post_install_message:
|
459
|
+
rdoc_options: []
|
460
|
+
require_paths:
|
461
|
+
- lib
|
462
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
463
|
+
requirements:
|
464
|
+
- - ">="
|
465
|
+
- !ruby/object:Gem::Version
|
466
|
+
version: '0'
|
467
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
468
|
+
requirements:
|
469
|
+
- - ">="
|
470
|
+
- !ruby/object:Gem::Version
|
471
|
+
version: '0'
|
472
|
+
requirements: []
|
473
|
+
rubyforge_project:
|
474
|
+
rubygems_version: 2.7.6
|
475
|
+
signing_key:
|
476
|
+
specification_version: 4
|
477
|
+
summary: Database powered i18n backend with web gui
|
478
|
+
test_files: []
|