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/

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

Reply via email to