Giter Club home page Giter Club logo

translation_db_engine's Introduction

A interface for database stored translation editing as rails engine. Uses your styles/layout and fits seamlessly.

Setup

rails plugin install git://github.com/grosser/translation_db_engine.git

Default

  • Setup FastGettext(>= 0.4.7) to run from database and include the db_models, see FastGettext Readme
  • rails generate migration CreateTranslationTables and paste in migrations to create models
  • Start translating! (it is as fast as mo/po based translations because of FastGettext`s caching)

Personalized

  • Setup whichever I18n framework supports a database
  • Create a TranslationKey model that has_many :translations, available_locales and accepts_nested_attributes_for :translations
  • Make available locales return the locales you need
  • Start translating!

Thereafter...

  • Setup authentification by copying and modifying translation_db_engine.yml into RAILS_ROOT/config
  • rake sync_po_to_db to load all translations from .po files into the database (given they lie in /locale), requires pomo po parser
  • (If not translations exist yet) Add initial translations through import or create them through the script/console (you NEED a translation for every locale so that available_locales is populated and edit fields are shown correctly)
  • Visit /translation_keys in your browser.

TODO

  • specs
  • search + ordering + pagination

Author

Michael Grosser
[email protected]
Hereby placed under public domain, do what you want, just do not hold me accountable...

translation_db_engine's People

Contributors

grosser avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.