fix translation
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							@ -965,7 +965,7 @@ msgstr "Sons"
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#: wagtail_hooks.py:151
 | 
					#: wagtail_hooks.py:151
 | 
				
			||||||
msgid "Today's Diffusions"
 | 
					msgid "Today's Diffusions"
 | 
				
			||||||
msgstr "Diffusion du jour"
 | 
					msgstr "Diffusions du jour"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#~ msgid "Published by"
 | 
					#~ msgid "Published by"
 | 
				
			||||||
#~ msgstr "Publié par"
 | 
					#~ msgstr "Publié par"
 | 
				
			||||||
 | 
				
			|||||||
@ -169,9 +169,10 @@ class WebsiteSettings(BaseSetting):
 | 
				
			|||||||
class Comment(models.Model):
 | 
					class Comment(models.Model):
 | 
				
			||||||
    publication = models.ForeignKey(
 | 
					    publication = models.ForeignKey(
 | 
				
			||||||
        'Publication',
 | 
					        'Publication',
 | 
				
			||||||
 | 
					        verbose_name = _('publication')
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    published = models.BooleanField(
 | 
					    published = models.BooleanField(
 | 
				
			||||||
        verbose_name = _('public'),
 | 
					        verbose_name = _('published'),
 | 
				
			||||||
        default = False
 | 
					        default = False
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    author = models.CharField(
 | 
					    author = models.CharField(
 | 
				
			||||||
@ -194,6 +195,10 @@ class Comment(models.Model):
 | 
				
			|||||||
        _('comment'),
 | 
					        _('comment'),
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    class Meta:
 | 
				
			||||||
 | 
					        verbose_name = _('comment')
 | 
				
			||||||
 | 
					        verbose_name_plural = _('comments')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def __str__(self):
 | 
					    def __str__(self):
 | 
				
			||||||
        # Translators: text shown in the comments list (in admin)
 | 
					        # Translators: text shown in the comments list (in admin)
 | 
				
			||||||
        return _('{date}, {author}: {content}...').format(
 | 
					        return _('{date}, {author}: {content}...').format(
 | 
				
			||||||
 | 
				
			|||||||
@ -60,9 +60,9 @@ class CommentAdmin(ModelAdmin):
 | 
				
			|||||||
    menu_label = _('Comments')
 | 
					    menu_label = _('Comments')
 | 
				
			||||||
    menu_icon = 'pick'
 | 
					    menu_icon = 'pick'
 | 
				
			||||||
    menu_order = 300
 | 
					    menu_order = 300
 | 
				
			||||||
    list_display = ('published', 'author', 'date', 'content')
 | 
					    list_display = ('published', 'publication', 'author', 'date', 'content')
 | 
				
			||||||
    list_filter = ('date', 'published')
 | 
					    list_filter = ('date', 'published')
 | 
				
			||||||
    search_fields = ('name', 'content', 'date')
 | 
					    search_fields = ('author', 'content', 'publication__title')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
modeladmin_register(CommentAdmin)
 | 
					modeladmin_register(CommentAdmin)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user