[Product-Developers] i18ndude with zopeskel-paster generated Archetypes is ignoring explicit msgids in the schema file
Maurits van Rees
m.van.rees at zestsoftware.nl
Mon Aug 15 14:30:13 UTC 2011
Op 15-08-11 10:26, Maurits van Rees schreef:
> Here you are combining two ways of doing i18n: the archetypes specific
> way with label_msgid and i18n_domain and the general way of using the
> underscore (MessageFactory). I recommend using only the new way. So that
> would be like this:
>
> widget=atapi.StringWidget(label_msgid='',
> label=_(u'MyTranslationDomain_label_productCode',
> default=u"Product Code"),
> description=_(u'MyTranslationDomain_help_productCode',
> default=u"A short unique code to identify our products"),
> ),
Oh, rereading my own message I see I forgot to remove one string. It
should be like this (barring typos):
widget=atapi.StringWidget(
label=_(u'MyTranslationDomain_label_productCode',
default=u"Product Code"),
description=_(u'MyTranslationDomain_help_productCode',
default=u"A short unique code to identify our products"),
),
--
Maurits van Rees
Web App Programmer at Zest Software: http://zestsoftware.nl
Personal website: http://maurits.vanrees.org/
More information about the Product-Developers
mailing list