Automatic translation to a new language for Gettext/JSON using Google translate
Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
Rakefile
Readme.md
autolang.gemspec

Readme.md

Autolang

  • Kick-start your translation!
  • Translate all your Gettext - msgids / json to another language using google-translate.

Usage

gem install autolang

autolang API_KEY /path/to/app.pot <language-code>
autolang API_KEY /path/to/app.pot es
autolang API_KEY /path/to/app.json es

language-code are 2 letter ISO 639 codes
if you have no .pot file, use gettext and updatepo first (google helps...)

Translation examples

  • Car|Engine -> Motor
  • hello %{name} -> hallo %{name}

TODO

  • Do not convert "& to "and", use something 'smarter'.

Authors

Original by Chris Blackburn released under MIT license

Enhanced by

Build Status