diff --git a/aircox_cms/locale/fr/LC_MESSAGES/django.mo b/aircox_cms/locale/fr/LC_MESSAGES/django.mo index 9b4b324..64fdbcf 100644 Binary files a/aircox_cms/locale/fr/LC_MESSAGES/django.mo and b/aircox_cms/locale/fr/LC_MESSAGES/django.mo differ diff --git a/aircox_cms/locale/fr/LC_MESSAGES/django.po b/aircox_cms/locale/fr/LC_MESSAGES/django.po index ddcfc0d..09577be 100755 --- a/aircox_cms/locale/fr/LC_MESSAGES/django.po +++ b/aircox_cms/locale/fr/LC_MESSAGES/django.po @@ -965,7 +965,7 @@ msgstr "Sons" #: wagtail_hooks.py:151 msgid "Today's Diffusions" -msgstr "Diffusion du jour" +msgstr "Diffusions du jour" #~ msgid "Published by" #~ msgstr "PubliƩ par" diff --git a/aircox_cms/models.py b/aircox_cms/models.py index 2cc1a34..604d410 100755 --- a/aircox_cms/models.py +++ b/aircox_cms/models.py @@ -169,9 +169,10 @@ class WebsiteSettings(BaseSetting): class Comment(models.Model): publication = models.ForeignKey( 'Publication', + verbose_name = _('publication') ) published = models.BooleanField( - verbose_name = _('public'), + verbose_name = _('published'), default = False ) author = models.CharField( @@ -194,6 +195,10 @@ class Comment(models.Model): _('comment'), ) + class Meta: + verbose_name = _('comment') + verbose_name_plural = _('comments') + def __str__(self): # Translators: text shown in the comments list (in admin) return _('{date}, {author}: {content}...').format( diff --git a/aircox_cms/wagtail_hooks.py b/aircox_cms/wagtail_hooks.py index 887d31a..9238c1e 100755 --- a/aircox_cms/wagtail_hooks.py +++ b/aircox_cms/wagtail_hooks.py @@ -60,9 +60,9 @@ class CommentAdmin(ModelAdmin): menu_label = _('Comments') menu_icon = 'pick' menu_order = 300 - list_display = ('published', 'author', 'date', 'content') + list_display = ('published', 'publication', 'author', 'date', 'content') list_filter = ('date', 'published') - search_fields = ('name', 'content', 'date') + search_fields = ('author', 'content', 'publication__title') modeladmin_register(CommentAdmin)