Merge pull request #333 from fsbraun/develop

Add i18n translation for admin.py
This commit is contained in:
Iacopo Spalletti 2016-09-21 21:16:23 +02:00 committed by GitHub
commit bb1a2a1cd3

View file

@ -88,17 +88,17 @@ class PostAdmin(PlaceholderAdminMixin, FrontendEditableAdminMixin,
(None, { (None, {
'fields': [['title', 'categories', 'publish', 'app_config']] 'fields': [['title', 'categories', 'publish', 'app_config']]
}), }),
('Info', { (_('Info'), {
'fields': [['slug', 'tags'], 'fields': [['slug', 'tags'],
['date_published', 'date_published_end'], ['date_published', 'date_published_end'],
['enable_comments']], ['enable_comments']],
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
('Images', { (_('Images'), {
'fields': [['main_image', 'main_image_thumbnail', 'main_image_full']], 'fields': [['main_image', 'main_image_thumbnail', 'main_image_full']],
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
('SEO', { (_('SEO'), {
'fields': [['meta_description', 'meta_title', 'meta_keywords']], 'fields': [['meta_description', 'meta_title', 'meta_keywords']],
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
@ -302,32 +302,32 @@ class BlogConfigAdmin(BaseAppHookConfig, TranslatableAdmin):
(None, { (None, {
'fields': ('type', 'namespace', 'app_title', 'object_name') 'fields': ('type', 'namespace', 'app_title', 'object_name')
}), }),
('Generic', { (_('Generic'), {
'fields': ( 'fields': (
'config.default_published', 'config.use_placeholder', 'config.use_abstract', 'config.default_published', 'config.use_placeholder', 'config.use_abstract',
'config.set_author', 'config.set_author',
) )
}), }),
('Layout', { (_('Layout'), {
'fields': ( 'fields': (
'config.paginate_by', 'config.url_patterns', 'config.template_prefix', 'config.paginate_by', 'config.url_patterns', 'config.template_prefix',
'config.menu_structure', 'config.menu_empty_categories', 'config.menu_structure', 'config.menu_empty_categories',
), ),
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
('Notifications', { (_('Notifications'), {
'fields': ( 'fields': (
'config.send_knock_create', 'config.send_knock_update' 'config.send_knock_create', 'config.send_knock_update'
), ),
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
('Sitemap', { (_('Sitemap'), {
'fields': ( 'fields': (
'config.sitemap_changefreq', 'config.sitemap_priority', 'config.sitemap_changefreq', 'config.sitemap_priority',
), ),
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
('Meta', { (_('Meta'), {
'fields': ( 'fields': (
'config.object_type', 'config.object_type',
) )