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
- Host: GitHub
- URL: https://github.com/screenstaring/translation-manager
- Owner: ScreenStaring
- Created: 2019-12-14T14:06:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T23:21:10.000Z (about 5 years ago)
- Last Synced: 2025-01-27T15:44:56.855Z (4 months ago)
- Topics: gettext, translation-management
- Language: Ruby
- Homepage:
- Size: 840 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
Awesome Lists containing this project
README
# Translation Manager
Translation management for [gettext](https://www.gnu.org/software/gettext/) formatted translations.




## 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`