Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Another templates localization schema for Rails 2.3 which allows you to create a folder for each locale on your views root

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 init.rb
Octocat-spinner-32 localized_templates.gemspec
License: MIT
Version: 0.4


This plugin uses Rails I18n ( to allow templates localization.
You can localize your views using the following naming convention:

And you can also localize rescue files:


If you don't want to localize a file (like a xml file), simply don't move it and it will be
rendered as default to all languages.

This is an alternative to Rails 2.3 templates localization schema. If you are
localizing almost all of your views, it definitely suits you better because
your views will be better organized.


Install LocalizedTemplates is very easy. If you are running run on Rails 2.3
just do the following:

  gem sources -a
  sudo gem install josevalim-localized_templates

In RAILS_ROOT/config/environment.rb:

  config.gem "josevalim-localized_templates",  :lib => "localized_templates", :source => ""

If you want it as plugin, just do:

   script/plugin install git://

If you are running on Rails 2.2, you should use version 0.3.1:

    cd myapp
    git clone git://
    cd vendor/plugins/localized_templates
    git checkout v0.3.1
    rm -rf ./.git

Bugs and Feedback

If you discover any bugs, please send an e-mail to
If you just want to give some positive feedback or drop a line, that's fine too! =)

Copyright (c) 2009 José Valim
Something went wrong with that request. Please try again.