Hi together,
I am using i18ndude with zopeskel/paster generated Archetypes for Plone4.1 for the first time.

 i18ndude ignoring explicit msgids in the schema seems a known ploblem.
 It uses the label or description itself as the msgid instead.

Environment:
=================
        • Plone 4109
        • CMF 2.2.4
        • Zope 2.13.8
• Python 2.6.7 (r267:88850, Jul 29 2011, 10:54:55) [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu4)]
        • PIL 1.1.6.4

I used zettwerk.i18nduder as a wrapper for calling i18ndude 3.2.2



I am new to using zopeskel/paster to generate Archetypes with paster local commands. There are some pitfalls in preparation for internationalisation not documented yet I came over yesterday.
I have to write rthis down soon.

Now I have a running and installing package wit some Archetypes that translate well with LinguaPlone.
Next step ist generating the .po / .pot files via i18ndude.

I wrote the default text into the widget label and description parameters. Thgen I started to create "speaking" abstract msgids and added them to the widget definition as usual together with the i18n_domain.

The msgid is simply ignored on running i18ndude. As you see trying putting the msgid definition before the i.e. label had no effect at all.. I tried the opposite too!

Curious for pointing to an existing solution while looking for my own.

Outlook:
-----------------

The placement of the msgid first seems a good point to force the generation of the #Default: msg and using the ststed msgid.


Question to ArchGenXML experts:
=============================

Is it possible to use ArchGenXML generated POT feature with Archetypes not created via ArchGenXML?
It seems that ArchGenXML has fixed this.


Examples
================

This is one of my Archetype fields schema in one of my content types files: ~/instances/MySite/src/mytranslated.package/mytranslated/package/ content/tour.py

The schema file:
-------------------------------------------------

...

    atapi.StringField('productCode',
        required=False,
        searchable=True,
        languageIndependent=False,
        storage=atapi.AnnotationStorage(),
widget =atapi.StringWidget(label_msgid='MyTranslationDomain_label_productCode',
                                  label=_(u"Product Code"),
                                  i18n_domain='MyTranslationDomain',
description_msgid='MyTranslationDomain_help_productCode', description=_(u"A short unique code to identify our products"),
                                  ),
        ),

...

The i18ndude generated POT file:
-------------------------------------------------

~/instances/MySite/src/mytranslated.package/mytranslated/package/ locales/mytranslated.package.pot

a usual entry is:

...

#: ./../content/tour.py:45
msgid "A short unique code to identify our products"
msgstr ""

...


--
Armin Carl Stroß-Radschinski, Dipl. Designer
acsr industrialdesign, Landgrafenstraße 32, 53842 Troisdorf, Germany

Telefon +49 (0) 22 41 / 94 69 94, FAX +49 (0) 22 41 / 94 69 96
eMail [email protected] - http://www.acsr.de
UST. ID Nr: DE154092803 (EU VAT ID)




_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to