github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

grosser / autolang forked from cblackburn/autolang

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 5
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Gettext: Automatic translation to a new language using GTranslate — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

doku fix 
grosser (author)
Wed Dec 03 09:13:16 -0800 2008
commit  f73ff1395eb610d92252aab8c4bcc0e8fc4cb8b2
tree    2c2fd59dee9bed0d02af5d2bed0774c31ac0bbda
parent  6ac25220aabec9daeea0d8520f22efb9d78e9341
autolang /
name age
history
message
file .gitignore Mon Nov 24 02:31:18 -0800 2008 ignore svn [Michael Grosser]
file README.markdown Loading commit data...
file autolang.rake Wed Dec 03 08:48:49 -0800 2008 require later to not crash all users rake tasks [grosser]
directory spec/
README.markdown

Autolang

Goal

  • Kick-start your translation!
  • Translate all your Gettext - msgids to another language using google-translate.
  • Provide a simple interface for other translation tasks

Install

sudo gem install googletranslate gettext

Copy the rake task anywhere OR use git: git clone git://github.com/grosser/autolang.git

Usage

Translate your pot file to any other language:

# to translate into spanish (=es), when current apps name is myapp (from myapp.pot)
L=es POT_FILE=/app/po/my_app.pot rake autolang:translate

Translation examples

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

TODO

  • Make the Autolang class usable on its own (no ENV dependencies)
  • Do not convert "& to "and", use something 'smarter'.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server