O'Reilly logo

Plone 3 Products Development Cookbook by Marcos F. Romero, Juan Pablo Giménez

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using i18n with ArchGenXML

In Creating a model (Chapter 3), we saw how to create Archetypes-based content types with a code generator named ArchGenXML. When we did this, we omitted, knowingly, any reference to automatic internationalization support, which this tool supplies.

Let's look at it now.

Getting ready

We are going to use the poxContentTypes.zargo file which is available for download, corresponding to the UML model we created in the aforementioned recipe. So, if you didn't create it, get it from this book's web page.

In this section, we'll use the PTS approach by using an i18n folder.

How to do it...

We could actually leave our UML model as it is and still enjoy the benefits of ArchGenXML regarding i18n support. However, let's add some options ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required