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 paster-created products

In Creating an Archetypes product with paster, we covered how to create Archetypes content types with paster help.

We'll now see how to internationalize content types created in this way.

Getting ready

To perform the following task, we'll use the pox.video product available in the accompanying code.

How to do it...

  1. Collect translatable text in the paster-created code: All paster-generated code is already i18n aware, so let's create the message catalog template straight.

    Go to the pox/video folder and run:

    $ i18ndude rebuild-pot --pot ./locales/pox.video.pot --create pox.video ./*
    
    
    • i18ndude (or any other translation tool) recognizes and extracts translatable text if it's surrounded by _(u"...").
  2. Create message ...

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