Babelphish – yml Translation Made Simple
You've just finished version one of your most excellent, million dollar application. You've built it the right way. All of your application' strings live in the en.yml file neatly tucked into the locales directory patiently waiting for the day when you hit it big, go international and hire a expensive fancy firm to translate your application for the next big market.
Why wait? Impress your friends, your family, and the ladies right now. Today. In just seconds.
With Google Translate and some gem magic your application can now impress your investors in 41 languages. Win friends and influence people in just three simple steps:
sudo gem install ya2yaml sudo gem install babelphish babelphish -y ./locales/en.yml -o
Viola! Your application now has a yml file for every language Google supports. -y gives the path to your source file. Feel free to start with other languages es.yml, jp.yml, etc all work just fine. -o means overwrite the files in the directory. If you have already paid someone a lot of money to translate your application I don't recommend using that option.
In case you think I suck as a programmer feel free to go fork it.
More from jbasdf
- How New Carpet and Rattlesnake turned me into a Consultant or What the Hell Happened?
- A copy of ApplicationController has been removed from the module tree but is still active! And can’t dup NilClass
- Rails Conf Intro from Chad Fowler and Some Stuff from the Mountain West Ruby Conference
- Mac OSX and the Samsung ML1740 on a network
- Amazon S3, Jungle Disk and the new way to backup
-
Setti
-
Paul
Justin Ball is a software consultant and entrepreneur with a passion for Ruby. He evolved from a C++ and .Net monkey into a python programmer and finally found Ruby. In the rare moments when he isn't writing code, talking about code or measuring his code productivity in profanity per hour, you can find him on his bike in the mountains or on the roads surrounding Cache Valley. 









