r-gamedev-polygot icon indicating copy to clipboard operation
r-gamedev-polygot copied to clipboard

An (incomplete) Gettext port of http://www.reddit.com/r/gamedev/comments/20ketu/introducing_polyglot_an_open_google_doc_with/

Polygot

A gettext version of: http://www.reddit.com/r/gamedev/comments/20ketu/introducing_polyglot_an_open_google_doc_with/

To-do

  1. License?
  2. Fork it
  3. Build Scripts
  4. Fill out all the metadata in the .po and .pot files.
  5. Refresh data

Rebuilding everything

Included is a small python script csv2po.py it requires the packages unicodecsv and babel.

After downloading each of the sheets as csv on the google doc, you'll need to update the headers to match their ISO locale codes. E.g. ::

STRING ID,DESCRIPTION,en_US,en_GB,fr,fr_CA,es,de,it,pt_PT,ru

Then, you'll want to run csv2po.py and it'll dump everything out into .po and .pot files. e.g. ::

python csv2po.py src_csv/menu.csv src_csv/errors.py src_csv/gameplay.csv