A ripl plugin that let's ripl speak your language
Ruby
Switch branches/tags
Nothing to show
Pull request Compare This branch is 23 commits behind cldwalker:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/ripl
test
.gemspec
CHANGELOG.rdoc
LICENSE.txt
README.rdoc
Rakefile
deps.rip

README.rdoc

Description

A ripl plugin that translates ripl to your preferred language.

Usage

Add to your ~/.riplrc:

require 'ripl/i18n'

If a locale exists for your language and is set via your shell variable $LANG, this plugin automatically uses it. Otherwise, explicitly set your language with:

# :es maps to es.yml
Ripl.config[:i18n_locale] = :es

If you want to load and use your own locale:

Ripl::I18n.load 'path/to/my_lang.yml'
Ripl.config[:i18n_locale] = :my_lang

Contribute Your Language

As I would like to make ripl available in as many languages as possible, please do add your own! Here's all you have to do:

  • Fork this project.

  • Create a .yml file under lib/ripl/i18n/locales/ for your language. If you're not sure what locale to use for your language, see some examples.

  • Be sure to translate all the keys in lib/ripl/i18n/locales/en.yml.

Credits

  • janlelis for auto locale + de.yml

Inspiration

yugui.jp/articles/863