Getting started

Get Globalize!

Generally we recommend using the Rails plugin install script via Subversion:

If you have problems with Subversions, e.g. because you’re behind a restrictive firewall, you might want to use the tar files:

How to install

From your rails app root directory:

  1. script/plugin install svn://svn.globalize-rails.org/globalize/branches/for-1.1
  2. rake globalize:setup

...and you’re globalized, dude!

Also, you might want to:
  • Get edge Globalize instead of stable: svn://svn.globalize-rails.org/globalize/trunk
  • Add include Globalize to your environment.rb file, so that you won’t have to type Globalize::Locale.set all the time. Instead, you can just type Locale.set.
  • Add Language and Country fixtures if your code references any models provided Globalize. Look in vendor/plugins/globalize/test/fixtures for a template.

Optionally, try:

  • rake globalize:test
    globalize plugin testing has it’s own database.yml file, so make sure to configure it before running the tests. it’s found in the directory RAILS_ROOT/vendor/plugins/globalize/test/config
  • rake doc:plugins
    This creates HTML documentation in the RAILS_ROOT/doc/plugins/globalize directory.

Get started

There are several walkthrough- or howto-style articles available, each taking a different approach. We don’t garantuee for the freshness of the presented information though.

Also relevant:

Find more howtos, tutorials and articles in the documentation section

Also, be sure to subscribe to our mailing list and check out our documentation

revision 1 · 03.06.09 09:27 · by: Marko Seppä