This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Tue Sep 22 10:14:55 -0700 2009 | |
| |
app/ | Sat May 02 02:00:02 -0700 2009 | |
| |
config/ | Fri May 01 06:09:49 -0700 2009 | |
| |
tasks/ | Fri May 01 10:18:44 -0700 2009 | |
| |
translation_db_engine.yml | Sat May 02 02:00:02 -0700 2009 |
README.markdown
A interface for database stored translation editing as rails engine.
Uses your styles/layout and fits seamlessly.
Setup
script/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
- Run 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
TranslationKeymodel thathas_many :translations,available_localesandaccepts_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_dbto 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_localesis populated and edit fields are shown correctly) - Visit
/translation_keysin your browser.
TODO
- specs
- search + ordering + pagination
Author
Michael Grosser
grosser.michael@gmail.com
Hereby placed under public domain, do what you want, just do not hold me accountable...







