An open API service indexing awesome lists of open source software.

https://github.com/sixarm/sixarm_ruby_set_locale

SixArm.com » Ruby » localization and internationalization set_locale method for ApplicationController
https://github.com/sixarm/sixarm_ruby_set_locale

applicationcontroller gem locale rails ruby

Last synced: 2 months ago
JSON representation

SixArm.com » Ruby » localization and internationalization set_locale method for ApplicationController

Awesome Lists containing this project

README

          

# SixArm.com → Ruby →
SetLocale module wth rubygem_set_locale methods for I18n internationalization

* Doc:
* Gem:
* Repo:

## Introduction

Gem implementation of code like http://almosteffortless.com/2008/07/21/simple-localization-in-rails-22/

For docs go to

Want to help? We're happy to get pull requests.

## Install

### Gem

To install this gem in your shell or terminal:

gem install sixarm_ruby_set_locale

### Gemfile

To add this gem to your Gemfile:

gem 'sixarm_ruby_set_locale'

### Require

To require the gem in your code:

require 'sixarm_ruby_set_locale'

## Example

class ApplicationController < ActionController::Base
...
include SetLocale
before_filter :rubygem_set_locale
...
end