From 0b02e443a130db0f4f6bc4c0839bf4dad76cd7d5 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 26 Jan 2009 13:40:35 +0100 Subject: Clarifying the need and context of patching i18n in Rails 2.2, so we have "available_locales" available {i18n guide} --- railties/doc/guides/source/i18n.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'railties/doc') diff --git a/railties/doc/guides/source/i18n.txt b/railties/doc/guides/source/i18n.txt index e3b3877760..6a20133254 100644 --- a/railties/doc/guides/source/i18n.txt +++ b/railties/doc/guides/source/i18n.txt @@ -151,7 +151,7 @@ Of course, you probably don't want to manually include locale in every URL all o IMPORTANT: Following examples rely on having locales loaded into your application available as an array of strings like +["en", "es", "gr"]+. This is not inclued in current version of Rails 2.2 -- forthcoming Rails version 2.3 will contain easy accesor +available_locales+. (See http://github.com/svenfuchs/i18n/commit/411f8fe7[this commit] and background at http://rails-i18n.org/wiki/pages/i18n-available_locales[Rails I18n Wiki].) -We have to include support for getting available locales manually in an initializer like this: +So, for having available locales easily available in Rails 2.2, we have to include this support manually in an initializer, like this: [source, ruby] ------------------------------------------------------- -- cgit v1.2.3