Wednesday, November 4, 2009

Globalize2

We have started to adopt I18n for internationalizing our application. It was quite a hurdle and took almost 3 days to find all the plain-text used in our application and replace it with 'I18n.translate' calls. Unfortunately I18n doesn't come with content internationalization. You may want to have a list of countries being displayed in the users' language, for example.

One way you could internationalize your content is putting the content that you need to internationalize into the internationalization YML file itself (i.e, en.yml). One catch is that your keys may not start with numbers. Having everything that needs to be translated in one file can be convenient if you delegate the translation to someone, because that person would have to only edit the text file you hand them. One downside is that your YML file grows extremely big.

Now I found Globalize2, a internationalization plugin that builds on I18n and provides content translation. It looks quite promising and more 'rail-ish' than putting your content into the YML file.

No comments: