Skip to content

ScreenStaring/translation-manager

Repository files navigation

Translation Manager

Translation management for gettext formatted translations.

Translation List View Translation Edit Translation Search Translations Search Translations Results

Backends

Translation modifications are pushed to Redis and saved to the database (I18n is used to push the translations to Redis).

Translations can also be exported to gettext PO files.

Redis

Translations are saved in Redis using the following keys:

language."text"

Where language is an ISO 639-1 language code and "text" is the source translation. For example, if the English source text "The rats sleep in the subway" was translated into Portuguese and Spanish the following keys would be created:

es."The rats sleep in the subway"
pt."The rats sleep in the subway"

TODO: escape quotes and "."

PO Files

There's a thor task for this

Database

TODO; for now See config/schema.rb

Installation

You need a MySQL database.

Development

  1. git clone git@github.com:ScreenStaring/translation-manager.git
  2. cd translation-manager
  3. cp config/database.yml.default config/database.yml
  4. Add DB connection info to config/database.yml
  5. Install Redis (optional -but recommended)
  6. bundle install
  7. bundle exec rails s

About

Translation management for gettext formatted translations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published