Some common questions on getting started - Get on Rails with Globalize! Part 2 of 8

posted: December 3rd, 2006 · by: Sven

in: Globalization, Programming · tagged as: , , , , , , ·  14 comments »

In Part 1 of this series you’ve seen how easy it is to get up and running with Globalize. And you’ve seen what the most basic concepts of this multilanguage plugin for Ruby on Rails are, namely:

  • .t for ViewTranslations (arbitrary, static text)
  • the translates directive for ModelTranslations and
  • .loc to localize your date, time and number formats.

In this article we’ll talk about some common questions on getting started like:

  • How to setup your application to use Unicode
  • How to select and keep the current user’s locale
  • How to translate entire templates (instead of individual strings)
  • How to translate Rails ActiveRecord messages

(Update 06/12/06.: mention ActiveRecord::Multibyte and explain MySQL/Unicode character-set)

Read the rest of this entry

artweb design
Sven Fuchs
Grünberger Str. 65
10245 Berlin, Germany


http://www.artweb-design.de

Fon +49 (30) 47 98 69 96
Fax +49 (30) 47 98 69 97