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.
To perform the following task, we'll use the
pox.video product available in the accompanying code.
paster-created code: All
paster-generatedcode 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 _(