From 301bc8ac7c7a7ba29b013b5f4cfe3ec4a702915a Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Fri, 22 Nov 2013 10:16:15 +0100 Subject: [PATCH] Translate state.name in motion log message. --- openslides/agenda/forms.py | 2 +- openslides/motion/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/agenda/forms.py b/openslides/agenda/forms.py index b0c72f58f..035e0ad3f 100644 --- a/openslides/agenda/forms.py +++ b/openslides/agenda/forms.py @@ -28,7 +28,7 @@ class ItemForm(CleanHtmlFormMixin, CssClassMixin, forms.ModelForm): max_length=5, required=False, label=ugettext_lazy("Duration"), - help_text=ugettext_lazy('Input format: HH:MM or MM')) + help_text=ugettext_lazy('Input format: HH:MM or M or MM or MMM')) class Meta: model = Item diff --git a/openslides/motion/views.py b/openslides/motion/views.py index bfa2a75a1..5bc0221ed 100644 --- a/openslides/motion/views.py +++ b/openslides/motion/views.py @@ -661,7 +661,7 @@ class MotionSetStateView(SingleObjectMixin, RedirectView): if success: self.object.save(update_fields=['state', 'identifier']) self.object.write_log( - message_list=[ugettext_noop('State changed to'), ' %s' % self.object.state.name], # TODO: Change string to 'State set to ...' + message_list=[ugettext_noop('State changed to'), ' ', self.object.state.name], # TODO: Change string to 'State set to ...' person=self.request.user) messages.success(request, _('The state of the motion was set to %s.')