babelphish

The basics

Babelphish will translate your application’s yml file’s using Google Translate. Sure the translations might not be perfect, but in many cases they will be good enough until you can pay for professional translation work.

Installing

Make sure you have ya2yaml installed:

sudo gem install ya2yaml

Install babelphish

sudo gem install babelphish

Usage

Translate the en.yml file into all supported languages:
babelphish -y ./my/locales/en.yml

Translate the en.yml file into all supported languages and overwrite other yml files:
babelphish -y ./my/locales/en.yml -o

How to submit patches

Fork the code on Github:
http://github.com/jbasdf/babelphish/tree/master

Language Codes

AFRIKAANS = ‘af’
ALBANIAN = ‘sq’
AMHARIC = ‘am’
ARABIC = ‘ar’
ARMENIAN = ‘hy’
AZERBAIJANI = ‘az’
BASQUE = ‘eu’
BELARUSIAN = ‘be’
BENGALI = ‘bn’
BIHARI = ‘bh’
BULGARIAN = ‘bg’
BURMESE = ‘my’
CATALAN = ‘ca’
CHEROKEE = ‘chr’
CHINESE = ‘zh’
CHINESE_SIMPLIFIED = ‘zh-CN’
CHINESE_TRADITIONAL = ‘zh-TW’
CROATIAN = ‘hr’
CZECH = ‘cs’
DANISH = ‘da’
DHIVEHI = ‘dv’
DUTCH = ‘nl’
ENGLISH = ‘en’
ESPERANTO = ‘eo’
ESTONIAN = ‘et’
FILIPINO = ‘tl’
FINNISH = ‘fi’
FRENCH = ‘fr’
GALICIAN = ‘gl’
GEORGIAN = ‘ka’
GERMAN = ‘de’
GREEK = ‘el’
GUARANI = ‘gn’
GUJARATI = ‘gu’
HEBREW = ‘iw’
HINDI = ‘hi’
HUNGARIAN = ‘hu’
ICELANDIC = ‘is’
INDONESIAN = ‘id’
INUKTITUT = ‘iu’
ITALIAN = ‘it’
JAPANESE = ‘ja’
KANNADA = ‘kn’
KAZAKH = ‘kk’
KHMER = ‘km’
KOREAN = ‘ko’
KURDISH = ‘ku’
KYRGYZ = ‘ky’
LAOTHIAN = ‘lo’
LATVIAN = ‘lv’
LITHUANIAN = ‘lt’
MACEDONIAN = ‘mk’
MALAY = ‘ms’
MALAYALAM = ‘ml’
MALTESE = ‘mt’
MARATHI = ‘mr’
MONGOLIAN = ‘mn’
NEPALI = ‘ne’
NORWEGIAN = ‘no’
ORIYA = ‘or’
PASHTO = ‘ps’
PERSIAN = ‘fa’
POLISH = ‘pl’
PORTUGUESE = ‘pt-PT’
PUNJABI = ‘pa’
ROMANIAN = ‘ro’
RUSSIAN = ‘ru’
SANSKRIT = ‘sa’
SERBIAN = ‘sr’
SINDHI = ‘sd’
SINHALESE = ‘si’
SLOVAK = ‘sk’
SLOVENIAN = ‘sl’
SPANISH = ‘es’
SWAHILI = ‘sw’
SWEDISH = ‘sv’
TAJIK = ‘tg’
TAMIL = ‘ta’
TAGALOG = ‘tl’
TELUGU = ‘te’
THAI = ‘th’
TIBETAN = ‘bo’
TURKISH = ‘tr’
UKRAINIAN = ‘uk’
URDU = ‘ur’
UZBEK = ‘uz’
UIGHUR = ‘ug’
VIETNAMESE = ‘vi’

License

This code is free to use under the terms of the MIT license.

Contact

Comments are welcome. Send an email to my account on github: http://github.com/jbasdf or you can find me on the web: http://www.justinball.com

FIXME full name, 15th August 2009
Theme extended from Paul Battley