An open API service indexing awesome lists of open source software.

https://github.com/screenstaring/translation-manager

Translation management for gettext formatted translations
https://github.com/screenstaring/translation-manager

gettext translation-management

Last synced: 2 months ago
JSON representation

Translation management for gettext formatted translations

Awesome Lists containing this project

README

        

# Translation Manager

Translation management for [gettext](https://www.gnu.org/software/gettext/) formatted translations.

![Translation List](screenshots/index.png)
![View Translation](screenshots/show.png)
![Edit Translation](screenshots/edit.png)
![Search Translations](screenshots/search.png)
![Search Translations Results](screenshots/search-results.png)

## 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](https://en.wikipedia.org/wiki/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 [email protected]:ScreenStaring/translation-manager.git`
1. `cd translation-manager`
1. `cp config/database.yml.default config/database.yml`
1. Add DB connection info to `config/database.yml`
1. [Install Redis](http://redis.io/download) (optional -but recommended)
1. `bundle install`
1. `bundle exec rails s`