Skip to content

Commit

Permalink
Change ui strings, add synthetic messageids
Browse files Browse the repository at this point in the history
  • Loading branch information
csenger committed Apr 14, 2016
1 parent 3c6b701 commit 2f09663
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 5 additions & 1 deletion src/collective/mailchimp/browser/newsletter.py
Expand Up @@ -171,7 +171,11 @@ class UnsubscribeNewsletterForm(NewsletterSubscriberForm):

fields = field.Fields(INewsletterUnsubscribe)
id = "newsletter-unsubscriber-form"
label = _(u"Unsubscribe from newsletter")
label = _(u'mailchimp_unsubscribe_newsletter_form_title',
default=u"Unsubscribe from newsletter")

description = _(u'mailchimp_unsubscribe_newsletter_form_description',
default='')

def updateActions(self):
# Avoid calling NewsletterSubscriberForm.updateActions():
Expand Down
14 changes: 9 additions & 5 deletions src/collective/mailchimp/interfaces.py
Expand Up @@ -86,10 +86,12 @@ class INewsletterUnsubscribe(INewsletterSubscribe):
constraint=validate_email)

interest_groups = schema.Tuple(
title=_(u"Unsubscribe from interest groups"),
title=_(
u'mailchimp_unsubscribe_interest_groups',
default=u"Unsubscribe only form the following interest groups"),
description=_(
u"mailchimp_help_unsubscribe_interest_groups",
default=u"Unsubscribe from the following interest groups."
default=u""
),
value_type=schema.Choice(
vocabulary="collective.mailchimp.vocabularies.InterestGroups",
Expand All @@ -98,10 +100,12 @@ class INewsletterUnsubscribe(INewsletterSubscribe):
)

unsubscribe = schema.Bool(
title=_(u"Unsubscribe from the complete List"),
title=_(
u'mailchimp_unsubscribe_newsletter',
default=u"Unsubscribe from the complete newsletter"),
description=_(
u'mailchimp_unsubscribe_from_list',
default=u'Unsubscribe from all interest groups'),
u'mailchimp_help_unsubscribe_newsletter',
default=u''),
)


Expand Down

0 comments on commit 2f09663

Please sign in to comment.