I almost made it a whole new repository, but instead I'll just experiment here.
Ruby + PostgreSQL project to parse a file, send it to Gengo, get it back, unparse it, turn into many languages.
Tried it in Ruby, but surprisingly, this PL/pgSQL version is just as nice.
- INSERT INTO files(filename, raw) VALUES ('myfile.txt', 'the text of the file here')
- SELECT * FROM parse_file(123)
- SELECT text FROM text_for_translator(123)
- Send that text file to Gengo. When I get it back....
- SELECT * FROM txn_compare(123, 'their translated file text here')
- Everything look OK? Check last line in particular. If so...
- SELECT * FROM txn_update(123, 'zh', 'their translated file text here')
- SELECT * FROM merge(123, 'zh')