Upcoming Globalize feature: an alternative way of storing model translations
posted: January 31st, 2007 · by: Sven
Saimon Moore, one of the Globalize committers, pointed me to some terrific new Globalize functionality that most likely will make it into the next (for-1.2 that is) release of Globalize (which is expected to arrive pretty soon).
Saimon has described said feature himself in a blog article: Alternative implementation of Globalize Model Translations. But there’s a lot of code to read over there so I thought I’d sum things up a bit for you.
Read the rest of this entryGlobalize's advanced features - Get on Rails with Globalize! Part 3 of 8
posted: January 14th, 2007 · by: Sven
In Part 2 of this series you’ve seen:
- 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
In this article we’ll talk about some of the more advanced features Globalize comes with like:
- Abstracting ViewTranslations (sprintf-like usage)
- Singular and (multiple) plural ViewTranslations
- Globalize’s Currency class
- Piggybacking translations of associated models