posted: November 10th, 2006 · by: Sven
I don’t know where you’re coming from. But my former experiences using I18n solutions have never been so much fun.
I’ve been absolutely thrilled about Globalize. Imagine to just plug-in some extension and instantly being able to use simple, intuitive mechanisms to translate your (now multi-language) application. Wouldn’t that be wonderful exactly the way you’d expect a Rails solution for your most common programming problems to work?
Well, Globalize is just that. Globalize is a powerful, yet elegant and usable Rails plugin that’s here to help you with the translation and localization of:
- arbitrary text like in templates (“hello world!”), mails, messages, etc.
- model data like text that goes in the database as part of your ActiveRecord classes
- stuff like dates, time, numbers, currency etc.
This series is here to help you get started and get the most out of Globalize.
As most of the parts of this series aren’t complete yet, I’ll edit the following outline as soon as stuff sediments. To stay informed about updates please subscribe to my blog.
- How to install and configure Globalize
- How to translate arbitrary text (ViewTranslations)
- How to translate Rails models (ModelTranslations)
- How to add translations to the database
- How to localize Dates, Times and Numbers
- How to setup your application to use Unicode
- How to select and persist the current user’s locale
- How to translate Rails ActiveRecord messages
- How to localize entire templates
- Abstracting ViewTranslations (sprintf-like usage)
- Singular and (multiple) plural ViewTranslations
- Globalize’s Currency class
- Piggyback translated ActiveRecord associations
- Pros and cons of different ways to store the locale:
- Sessions, accept-language header, geo-location
- RESTful, URL-based approaches
- Preload View Translations in Production
- Bridge Globalize and TZInfo
- Clear Globalize’s translations runtime cache
- Use nice predicated block helpers in your views
- Organize your translations through Globalize’s namespaces
- Alternative Storage Mechanism for Model Translations
- Disable Globalize::ViewTranslation’s SQL logging
- Multilingual URLs
- Patch Globalize to get it working with :include and no base language
- Translate your application while browsing it
- Localized, concise Rails URL helpers
- Get Liquid templates to play nice with Globalize
- Globalize time_ago_in_words method of Rails
- Multiple arguments to fetch
- I’m seeing lot’s of strange characters!
- Weird Currency parsing results
- Globalize WrongLanguageError on attribute read
- Globalizes screws my RJS (or: my IE6)!
- Globalize compared to other Rails I18n/L10n solutions (?) ->