Merge pull request #53 from nephila/feature/seo_length

Change SEO fields length
This commit is contained in:
Iacopo Spalletti 2014-11-30 13:13:25 +01:00
commit ea12e4753e
18 changed files with 347 additions and 218 deletions

View file

@ -3,13 +3,14 @@
History History
------- -------
0.3.0 (Unreleased) 0.3.0 (unreleased)
++++++++++++++++++ ++++++++++++++++++
* Multisite support * Multisite support
* Configurable default author support * Configurable default author support
* Refactored settings * Refactored settings
* Fix multilanguage issues * Fix multilanguage issues
* Fix SEO fields length.
0.2.0 (2014-09-24) 0.2.0 (2014-09-24)
++++++++++++++++++ ++++++++++++++++++

View file

@ -35,10 +35,10 @@ Supported django CMS versions:
* django CMS 3.0 * django CMS 3.0
Documentation .. warning:: Starting from version 0.3 the length of the meta_description and
------------- meta_title fields has been changed according to the most common
defaults for search engines. Existing data will not be affected,
No doc at the moment, sorry but widgets that enforce the length for new data is now being used.
Quickstart Quickstart
---------- ----------

View file

@ -9,7 +9,6 @@ HELPER_SETTINGS = {
], ],
'ROOT_URLCONF': 'tests.test_utils.urls', 'ROOT_URLCONF': 'tests.test_utils.urls',
'INSTALLED_APPS': [ 'INSTALLED_APPS': [
'django.contrib.messages',
'admin_enhancer', 'admin_enhancer',
'filer', 'filer',
'parler', 'parler',
@ -21,7 +20,6 @@ HELPER_SETTINGS = {
'cmsplugin_filer_image', 'cmsplugin_filer_image',
'django_select2', 'django_select2',
'taggit_autosuggest', 'taggit_autosuggest',
'djangocms_blog',
], ],
'LANGUAGE_CODE': 'en', 'LANGUAGE_CODE': 'en',
'LANGUAGES': ( 'LANGUAGES': (

View file

@ -7,6 +7,7 @@ from django.conf import settings
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from parler.admin import TranslatableAdmin from parler.admin import TranslatableAdmin
from .forms import PostAdminForm
from .models import Post, BlogCategory from .models import Post, BlogCategory
from .settings import get_setting from .settings import get_setting
@ -24,6 +25,7 @@ class BlogCategoryAdmin(EnhancedModelAdminMixin, TranslatableAdmin):
class PostAdmin(EnhancedModelAdminMixin, FrontendEditableAdmin, class PostAdmin(EnhancedModelAdminMixin, FrontendEditableAdmin,
PlaceholderAdmin, TranslatableAdmin): PlaceholderAdmin, TranslatableAdmin):
form = PostAdminForm
list_display = ['title', 'author', 'date_published', 'date_published_end'] list_display = ['title', 'author', 'date_published', 'date_published_end']
date_hierarchy = 'date_published' date_hierarchy = 'date_published'
raw_id_fields = ['author'] raw_id_fields = ['author']
@ -43,7 +45,7 @@ class PostAdmin(EnhancedModelAdminMixin, FrontendEditableAdmin,
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
('SEO', { ('SEO', {
'fields': [('meta_description', 'meta_keywords', 'meta_title')], 'fields': [('meta_description', 'meta_title', 'meta_keywords')],
'classes': ('collapse',) 'classes': ('collapse',)
}), }),
] ]

View file

@ -2,6 +2,9 @@
from django import forms from django import forms
from django.conf import settings from django.conf import settings
import django_select2 import django_select2
from parler.forms import TranslatableModelForm
from .models import Post
class LatestEntriesForm(forms.ModelForm): class LatestEntriesForm(forms.ModelForm):
@ -16,3 +19,17 @@ class LatestEntriesForm(forms.ModelForm):
'all': ('%sdjangocms_blog/css/%s' % (settings.STATIC_URL, 'all': ('%sdjangocms_blog/css/%s' % (settings.STATIC_URL,
'djangocms_blog_admin.css'),) 'djangocms_blog_admin.css'),)
} }
class PostAdminForm(TranslatableModelForm):
def __init__(self, *args, **kwargs):
super(PostAdminForm, self).__init__(*args, **kwargs)
original_attrs = self.fields['meta_description'].widget.attrs
original_attrs['maxlength'] = 160
self.fields['meta_description'].widget = forms.TextInput(original_attrs)
self.fields['meta_title'].max_length = 70
class Meta:
model = Post
exclude = ()

View file

@ -7,9 +7,9 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: djangocms-blog\n" "Project-Id-Version: djangocms-blog\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-01 07:16+0200\n" "POT-Creation-Date: 2014-11-30 12:49+0100\n"
"PO-Revision-Date: 2014-10-12 12:01+0000\n" "PO-Revision-Date: 2014-11-30 11:49+0000\n"
"Last-Translator: Bashar Al-Abdulhadi\n" "Last-Translator: yakky <i.spalletti@nephila.it>\n"
"Language-Team: Arabic (http://www.transifex.com/projects/p/djangocms-blog/language/ar/)\n" "Language-Team: Arabic (http://www.transifex.com/projects/p/djangocms-blog/language/ar/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -61,124 +61,142 @@ msgstr "التعديل على موضوع"
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "مواضيع المدونة على %(site_name)s" msgstr "مواضيع المدونة على %(site_name)s"
#: models.py:28 #: models.py:31
msgid "parent" msgid "parent"
msgstr "" msgstr ""
#: models.py:30 #: models.py:33
msgid "created at" msgid "created at"
msgstr "" msgstr ""
#: models.py:31 #: models.py:34
msgid "modified at" msgid "modified at"
msgstr "" msgstr ""
#: models.py:34 #: models.py:37
msgid "name" msgid "name"
msgstr "" msgstr ""
#: models.py:35 models.py:95 #: models.py:38 models.py:105
msgid "slug" msgid "slug"
msgstr "" msgstr ""
#: models.py:42 #: models.py:45
msgid "blog category" msgid "blog category"
msgstr "" msgstr ""
#: models.py:43 #: models.py:46
msgid "blog categories" msgid "blog categories"
msgstr "" msgstr ""
#: models.py:66 #: models.py:70
msgid "Author" msgid "Author"
msgstr "" msgstr ""
#: models.py:71 #: models.py:75
msgid "Published Since" msgid "Published Since"
msgstr "" msgstr ""
#: models.py:73 #: models.py:77
msgid "Published Until" msgid "Published Until"
msgstr "" msgstr ""
#: models.py:75 #: models.py:79
msgid "Publish" msgid "Publish"
msgstr "" msgstr ""
#: models.py:76 #: models.py:80
msgid "category" msgid "category"
msgstr "" msgstr ""
#: models.py:78 #: models.py:82
msgid "Main image" msgid "Main image"
msgstr "" msgstr ""
#: models.py:81 #: models.py:85
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "" msgstr ""
#: models.py:85 #: models.py:89
msgid "Main image full" msgid "Main image full"
msgstr "" msgstr ""
#: models.py:89 #: models.py:93
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "" msgstr ""
#: models.py:94 #: models.py:96
msgid "Site(s)"
msgstr ""
#: models.py:98
msgid ""
"Select sites in which to show the post. If none is set it will be visible in"
" all the configured sites."
msgstr ""
#: models.py:104
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: models.py:96 #: models.py:106
msgid "Abstract" msgid "Abstract"
msgstr "" msgstr ""
#: models.py:97 #: models.py:107
msgid "Post meta description" msgid "Post meta description"
msgstr "" msgstr ""
#: models.py:99 #: models.py:109
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "" msgstr ""
#: models.py:101 #: models.py:111
msgid "Post meta title"
msgstr ""
#: models.py:112
msgid "used in title tag and social sharing"
msgstr ""
#: models.py:115
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: models.py:158 #: models.py:178
msgid "blog article" msgid "blog article"
msgstr "" msgstr ""
#: models.py:159 #: models.py:179
msgid "blog articles" msgid "blog articles"
msgstr "" msgstr ""
#: models.py:199 models.py:226 #: models.py:222 models.py:250
msgid "Articles" msgid "Articles"
msgstr "" msgstr ""
#: models.py:200 #: models.py:223
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "" msgstr ""
#: models.py:202 #: models.py:225
msgid "Show only the blog articles tagged with chosen tags." msgid "Show only the blog articles tagged with chosen tags."
msgstr "" msgstr ""
#: models.py:204 #: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "" msgstr ""
#: models.py:222 templates/djangocms_blog/plugins/authors.html:3 #: models.py:246 templates/djangocms_blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "" msgstr ""
#: models.py:227 #: models.py:251
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "" msgstr ""
#: templates/djangocms_blog/post_detail.html:16 #: templates/djangocms_blog/post_detail.html:18
#: templates/djangocms_blog/includes/blog_item.html:10 #: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "" msgstr ""
@ -223,7 +241,7 @@ msgstr ""
msgid "next" msgid "next"
msgstr "" msgstr ""
#: templates/djangocms_blog/includes/blog_item.html:44 #: templates/djangocms_blog/includes/blog_item.html:46
msgid "read more" msgid "read more"
msgstr "" msgstr ""

View file

@ -7,9 +7,9 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: djangocms-blog\n" "Project-Id-Version: djangocms-blog\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-01 07:16+0200\n" "POT-Creation-Date: 2014-11-30 12:49+0100\n"
"PO-Revision-Date: 2014-11-20 14:53+0000\n" "PO-Revision-Date: 2014-11-30 11:49+0000\n"
"Last-Translator: Christoph Reimers <christoph@superservice-international.com>\n" "Last-Translator: yakky <i.spalletti@nephila.it>\n"
"Language-Team: German (http://www.transifex.com/projects/p/djangocms-blog/language/de/)\n" "Language-Team: German (http://www.transifex.com/projects/p/djangocms-blog/language/de/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -61,124 +61,142 @@ msgstr "Post bearbeiten"
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "Blog-Artikel auf %(site_name)s" msgstr "Blog-Artikel auf %(site_name)s"
#: models.py:28 #: models.py:31
msgid "parent" msgid "parent"
msgstr "übergeordnetes Element" msgstr "übergeordnetes Element"
#: models.py:30 #: models.py:33
msgid "created at" msgid "created at"
msgstr "erstellt am" msgstr "erstellt am"
#: models.py:31 #: models.py:34
msgid "modified at" msgid "modified at"
msgstr "bearbeitet am" msgstr "bearbeitet am"
#: models.py:34 #: models.py:37
msgid "name" msgid "name"
msgstr "Name" msgstr "Name"
#: models.py:35 models.py:95 #: models.py:38 models.py:105
msgid "slug" msgid "slug"
msgstr "" msgstr ""
#: models.py:42 #: models.py:45
msgid "blog category" msgid "blog category"
msgstr "Blog-Kategorie" msgstr "Blog-Kategorie"
#: models.py:43 #: models.py:46
msgid "blog categories" msgid "blog categories"
msgstr "Blog-Kategorien" msgstr "Blog-Kategorien"
#: models.py:66 #: models.py:70
msgid "Author" msgid "Author"
msgstr "Autor" msgstr "Autor"
#: models.py:71 #: models.py:75
msgid "Published Since" msgid "Published Since"
msgstr "Veröffentlicht seit" msgstr "Veröffentlicht seit"
#: models.py:73 #: models.py:77
msgid "Published Until" msgid "Published Until"
msgstr "Veröffentlicht bis" msgstr "Veröffentlicht bis"
#: models.py:75 #: models.py:79
msgid "Publish" msgid "Publish"
msgstr "Veröffentlichen" msgstr "Veröffentlichen"
#: models.py:76 #: models.py:80
msgid "category" msgid "category"
msgstr "Kategorie" msgstr "Kategorie"
#: models.py:78 #: models.py:82
msgid "Main image" msgid "Main image"
msgstr "Haupt-Bild" msgstr "Haupt-Bild"
#: models.py:81 #: models.py:85
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "Haupt-Bild Vorschau" msgstr "Haupt-Bild Vorschau"
#: models.py:85 #: models.py:89
msgid "Main image full" msgid "Main image full"
msgstr "volles Haupt-Bild" msgstr "volles Haupt-Bild"
#: models.py:89 #: models.py:93
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "Kommentare einschalten" msgstr "Kommentare einschalten"
#: models.py:94 #: models.py:96
msgid "Site(s)"
msgstr ""
#: models.py:98
msgid ""
"Select sites in which to show the post. If none is set it will be visible in"
" all the configured sites."
msgstr ""
#: models.py:104
msgid "Title" msgid "Title"
msgstr "Titel" msgstr "Titel"
#: models.py:96 #: models.py:106
msgid "Abstract" msgid "Abstract"
msgstr "Auszug" msgstr "Auszug"
#: models.py:97 #: models.py:107
msgid "Post meta description" msgid "Post meta description"
msgstr "Post Meta-Description" msgstr "Post Meta-Description"
#: models.py:99 #: models.py:109
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "Post Meta-Keywords" msgstr "Post Meta-Keywords"
#: models.py:101 #: models.py:111
msgid "Post meta title"
msgstr ""
#: models.py:112
msgid "used in title tag and social sharing"
msgstr ""
#: models.py:115
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: models.py:158 #: models.py:178
msgid "blog article" msgid "blog article"
msgstr "Blog-Artikel" msgstr "Blog-Artikel"
#: models.py:159 #: models.py:179
msgid "blog articles" msgid "blog articles"
msgstr "Blog-Artikel" msgstr "Blog-Artikel"
#: models.py:199 models.py:226 #: models.py:222 models.py:250
msgid "Articles" msgid "Articles"
msgstr "Artikel" msgstr "Artikel"
#: models.py:200 #: models.py:223
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "Anzahl der anzuzeigenden letzten Artikel" msgstr "Anzahl der anzuzeigenden letzten Artikel"
#: models.py:202 #: models.py:225
msgid "Show only the blog articles tagged with chosen tags." msgid "Show only the blog articles tagged with chosen tags."
msgstr "Nur die Blog-Einträge mit dem ausgewählten Tag anzeigen" msgstr "Nur die Blog-Einträge mit dem ausgewählten Tag anzeigen"
#: models.py:204 #: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "Nur die Blog-Einträge der ausgewählten Kategorie anzeigen" msgstr "Nur die Blog-Einträge der ausgewählten Kategorie anzeigen"
#: models.py:222 templates/djangocms_blog/plugins/authors.html:3 #: models.py:246 templates/djangocms_blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "Authoren" msgstr "Authoren"
#: models.py:227 #: models.py:251
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "Die Anzahl der anzuzeigenden Autoren-Artikel" msgstr "Die Anzahl der anzuzeigenden Autoren-Artikel"
#: templates/djangocms_blog/post_detail.html:16 #: templates/djangocms_blog/post_detail.html:18
#: templates/djangocms_blog/includes/blog_item.html:10 #: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "von" msgstr "von"
@ -223,7 +241,7 @@ msgstr "von"
msgid "next" msgid "next"
msgstr "nächste" msgstr "nächste"
#: templates/djangocms_blog/includes/blog_item.html:44 #: templates/djangocms_blog/includes/blog_item.html:46
msgid "read more" msgid "read more"
msgstr "weiterlesen" msgstr "weiterlesen"

View file

@ -6,7 +6,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-01 07:16+0200\n" "POT-Creation-Date: 2014-11-30 12:50+0100\n"
"PO-Revision-Date: 2014-03-05 18:09+0100\n" "PO-Revision-Date: 2014-03-05 18:09+0100\n"
"Last-Translator: Iacopo Spalletti\n" "Last-Translator: Iacopo Spalletti\n"
"Language-Team: Italian <i.spalletti@nephila.it>\n" "Language-Team: Italian <i.spalletti@nephila.it>\n"
@ -60,125 +60,144 @@ msgstr ""
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "Blog articles on %(site_name)s" msgstr "Blog articles on %(site_name)s"
#: models.py:28 #: models.py:31
msgid "parent" msgid "parent"
msgstr "parent" msgstr "parent"
#: models.py:30 #: models.py:33
msgid "created at" msgid "created at"
msgstr "created at" msgstr "created at"
#: models.py:31 #: models.py:34
msgid "modified at" msgid "modified at"
msgstr "modified at" msgstr "modified at"
#: models.py:34 #: models.py:37
msgid "name" msgid "name"
msgstr "name" msgstr "name"
#: models.py:35 models.py:95 #: models.py:38 models.py:105
msgid "slug" msgid "slug"
msgstr "slug" msgstr "slug"
#: models.py:42 #: models.py:45
msgid "blog category" msgid "blog category"
msgstr "blog category" msgstr "blog category"
#: models.py:43 #: models.py:46
msgid "blog categories" msgid "blog categories"
msgstr "blog categories" msgstr "blog categories"
#: models.py:66 #: models.py:70
msgid "Author" msgid "Author"
msgstr "Author" msgstr "Author"
#: models.py:71 #: models.py:75
msgid "Published Since" msgid "Published Since"
msgstr "Published Since" msgstr "Published Since"
#: models.py:73 #: models.py:77
msgid "Published Until" msgid "Published Until"
msgstr "Published Until" msgstr "Published Until"
#: models.py:75 #: models.py:79
msgid "Publish" msgid "Publish"
msgstr "Publish" msgstr "Publish"
#: models.py:76 #: models.py:80
msgid "category" msgid "category"
msgstr "category" msgstr "category"
#: models.py:78 #: models.py:82
msgid "Main image" msgid "Main image"
msgstr "Main image" msgstr "Main image"
#: models.py:81 #: models.py:85
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "Main image thumbnail" msgstr "Main image thumbnail"
#: models.py:85 #: models.py:89
msgid "Main image full" msgid "Main image full"
msgstr "Main image full" msgstr "Main image full"
#: models.py:89 #: models.py:93
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "" msgstr ""
#: models.py:94 #: models.py:96
msgid "Site(s)"
msgstr ""
#: models.py:98
msgid ""
"Select sites in which to show the post. If none is set it will be visible in "
"all the configured sites."
msgstr ""
#: models.py:104
msgid "Title" msgid "Title"
msgstr "Title" msgstr "Title"
#: models.py:96 #: models.py:106
msgid "Abstract" msgid "Abstract"
msgstr "" msgstr ""
#: models.py:97 #: models.py:107
msgid "Post meta description" msgid "Post meta description"
msgstr "Post meta description" msgstr "Post meta description"
#: models.py:99 #: models.py:109
#, fuzzy #, fuzzy
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "Post meta description" msgstr "Post meta description"
#: models.py:101 #: models.py:111
#, fuzzy
msgid "Post meta title"
msgstr "Post meta description"
#: models.py:112
msgid "used in title tag and social sharing"
msgstr ""
#: models.py:115
msgid "Text" msgid "Text"
msgstr "Text" msgstr "Text"
#: models.py:158 #: models.py:178
msgid "blog article" msgid "blog article"
msgstr "blog article" msgstr "blog article"
#: models.py:159 #: models.py:179
msgid "blog articles" msgid "blog articles"
msgstr "blog articles" msgstr "blog articles"
#: models.py:199 models.py:226 #: models.py:222 models.py:250
msgid "Articles" msgid "Articles"
msgstr "Articles" msgstr "Articles"
#: models.py:200 #: models.py:223
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "The number of latests articles to be displayed." msgstr "The number of latests articles to be displayed."
#: models.py:202 #: models.py:225
msgid "Show only the blog articles tagged with chosen tags." msgid "Show only the blog articles tagged with chosen tags."
msgstr "Show only the blog articles tagged with chosen tags." msgstr "Show only the blog articles tagged with chosen tags."
#: models.py:204 #: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "Show only the blog articles tagged with chosen categories." msgstr "Show only the blog articles tagged with chosen categories."
#: models.py:222 templates/djangocms_blog/plugins/authors.html:3 #: models.py:246 templates/djangocms_blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "Authors" msgstr "Authors"
#: models.py:227 #: models.py:251
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "The number of author articles to be displayed." msgstr "The number of author articles to be displayed."
#: templates/djangocms_blog/post_detail.html:16 #: templates/djangocms_blog/post_detail.html:18
#: templates/djangocms_blog/includes/blog_item.html:10 #: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "by" msgstr "by"
@ -223,7 +242,7 @@ msgstr "of"
msgid "next" msgid "next"
msgstr "next" msgstr "next"
#: templates/djangocms_blog/includes/blog_item.html:44 #: templates/djangocms_blog/includes/blog_item.html:46
msgid "read more" msgid "read more"
msgstr "read more" msgstr "read more"

View file

@ -8,8 +8,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: djangocms-blog\n" "Project-Id-Version: djangocms-blog\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-01 07:16+0200\n" "POT-Creation-Date: 2014-11-30 12:49+0100\n"
"PO-Revision-Date: 2014-10-12 09:43+0000\n" "PO-Revision-Date: 2014-11-30 11:51+0000\n"
"Last-Translator: yakky <i.spalletti@nephila.it>\n" "Last-Translator: yakky <i.spalletti@nephila.it>\n"
"Language-Team: Italian (http://www.transifex.com/projects/p/djangocms-blog/language/it/)\n" "Language-Team: Italian (http://www.transifex.com/projects/p/djangocms-blog/language/it/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -62,124 +62,142 @@ msgstr "Modifica articolo"
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "Articoli del blog su %(site_name)s" msgstr "Articoli del blog su %(site_name)s"
#: models.py:28 #: models.py:31
msgid "parent" msgid "parent"
msgstr "superiore" msgstr "superiore"
#: models.py:30 #: models.py:33
msgid "created at" msgid "created at"
msgstr "creato il" msgstr "creato il"
#: models.py:31 #: models.py:34
msgid "modified at" msgid "modified at"
msgstr "modificato il" msgstr "modificato il"
#: models.py:34 #: models.py:37
msgid "name" msgid "name"
msgstr "nome" msgstr "nome"
#: models.py:35 models.py:95 #: models.py:38 models.py:105
msgid "slug" msgid "slug"
msgstr "slug" msgstr "slug"
#: models.py:42 #: models.py:45
msgid "blog category" msgid "blog category"
msgstr "categoria del blog" msgstr "categoria del blog"
#: models.py:43 #: models.py:46
msgid "blog categories" msgid "blog categories"
msgstr "categorie del blog" msgstr "categorie del blog"
#: models.py:66 #: models.py:70
msgid "Author" msgid "Author"
msgstr "Autore" msgstr "Autore"
#: models.py:71 #: models.py:75
msgid "Published Since" msgid "Published Since"
msgstr "Pubblicato il" msgstr "Pubblicato il"
#: models.py:73 #: models.py:77
msgid "Published Until" msgid "Published Until"
msgstr "fino al" msgstr "fino al"
#: models.py:75 #: models.py:79
msgid "Publish" msgid "Publish"
msgstr "Pubblicato" msgstr "Pubblicato"
#: models.py:76 #: models.py:80
msgid "category" msgid "category"
msgstr "categoria" msgstr "categoria"
#: models.py:78 #: models.py:82
msgid "Main image" msgid "Main image"
msgstr "Immagine" msgstr "Immagine"
#: models.py:81 #: models.py:85
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "Dimensione miniatura" msgstr "Dimensione miniatura"
#: models.py:85 #: models.py:89
msgid "Main image full" msgid "Main image full"
msgstr "Dimensione piena" msgstr "Dimensione piena"
#: models.py:89 #: models.py:93
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "Abilita commenti sul post" msgstr "Abilita commenti sul post"
#: models.py:94 #: models.py:96
msgid "Site(s)"
msgstr "Sito/i"
#: models.py:98
msgid ""
"Select sites in which to show the post. If none is set it will be visible in"
" all the configured sites."
msgstr "Seleziona i siti in cui deve apparire l'articolo. Se non è selezionato nessun sito, l'articolo comparirà in tutti i siti configurati."
#: models.py:104
msgid "Title" msgid "Title"
msgstr "Titolo" msgstr "Titolo"
#: models.py:96 #: models.py:106
msgid "Abstract" msgid "Abstract"
msgstr "Riassunto" msgstr "Riassunto"
#: models.py:97 #: models.py:107
msgid "Post meta description" msgid "Post meta description"
msgstr "Meta descrizione dell'articolo" msgstr "Descrizione SEO dell'articolo"
#: models.py:99 #: models.py:109
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "Meta keyword dell'articolo" msgstr "Keyword SEO dell'articolo"
#: models.py:101 #: models.py:111
msgid "Post meta title"
msgstr "Titolo SEO dell'articolo"
#: models.py:112
msgid "used in title tag and social sharing"
msgstr "Usato nel tag title e nei titoli per le condivisioni sui social network"
#: models.py:115
msgid "Text" msgid "Text"
msgstr "Test" msgstr "Test"
#: models.py:158 #: models.py:178
msgid "blog article" msgid "blog article"
msgstr "articolo del blog" msgstr "articolo del blog"
#: models.py:159 #: models.py:179
msgid "blog articles" msgid "blog articles"
msgstr "articoli del blog" msgstr "articoli del blog"
#: models.py:199 models.py:226 #: models.py:222 models.py:250
msgid "Articles" msgid "Articles"
msgstr "Articoli" msgstr "Articoli"
#: models.py:200 #: models.py:223
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "Il numero di articoli da mostrare." msgstr "Il numero di articoli da mostrare."
#: models.py:202 #: models.py:225
msgid "Show only the blog articles tagged with chosen tags." msgid "Show only the blog articles tagged with chosen tags."
msgstr "Mostra solo gli articoli marcati con i tag selezionati." msgstr "Mostra solo gli articoli marcati con i tag selezionati."
#: models.py:204 #: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "Mostra solo gli articoli marcati con i categorie selezionati." msgstr "Mostra solo gli articoli marcati con i categorie selezionati."
#: models.py:222 templates/djangocms_blog/plugins/authors.html:3 #: models.py:246 templates/djangocms_blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "Autori" msgstr "Autori"
#: models.py:227 #: models.py:251
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "Numero di elementi per autore da mostrare." msgstr "Numero di elementi per autore da mostrare."
#: templates/djangocms_blog/post_detail.html:16 #: templates/djangocms_blog/post_detail.html:18
#: templates/djangocms_blog/includes/blog_item.html:10 #: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "di" msgstr "di"
@ -224,7 +242,7 @@ msgstr "di"
msgid "next" msgid "next"
msgstr "successivo" msgstr "successivo"
#: templates/djangocms_blog/includes/blog_item.html:44 #: templates/djangocms_blog/includes/blog_item.html:46
msgid "read more" msgid "read more"
msgstr "leggi" msgstr "leggi"

View file

@ -6,9 +6,9 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: djangocms-blog\n" "Project-Id-Version: djangocms-blog\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-01 07:16+0200\n" "POT-Creation-Date: 2014-11-30 12:49+0100\n"
"PO-Revision-Date: 2014-03-29 15:29+0000\n" "PO-Revision-Date: 2014-11-30 11:49+0000\n"
"Last-Translator: Iacopo Spalletti\n" "Last-Translator: yakky <i.spalletti@nephila.it>\n"
"Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/djangocms-blog/language/pt_BR/)\n" "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/djangocms-blog/language/pt_BR/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
@ -60,124 +60,142 @@ msgstr ""
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "" msgstr ""
#: models.py:28 #: models.py:31
msgid "parent" msgid "parent"
msgstr "" msgstr ""
#: models.py:30 #: models.py:33
msgid "created at" msgid "created at"
msgstr "" msgstr ""
#: models.py:31 #: models.py:34
msgid "modified at" msgid "modified at"
msgstr "" msgstr ""
#: models.py:34 #: models.py:37
msgid "name" msgid "name"
msgstr "" msgstr ""
#: models.py:35 models.py:95 #: models.py:38 models.py:105
msgid "slug" msgid "slug"
msgstr "" msgstr ""
#: models.py:42 #: models.py:45
msgid "blog category" msgid "blog category"
msgstr "" msgstr ""
#: models.py:43 #: models.py:46
msgid "blog categories" msgid "blog categories"
msgstr "" msgstr ""
#: models.py:66 #: models.py:70
msgid "Author" msgid "Author"
msgstr "" msgstr ""
#: models.py:71 #: models.py:75
msgid "Published Since" msgid "Published Since"
msgstr "" msgstr ""
#: models.py:73 #: models.py:77
msgid "Published Until" msgid "Published Until"
msgstr "" msgstr ""
#: models.py:75 #: models.py:79
msgid "Publish" msgid "Publish"
msgstr "" msgstr ""
#: models.py:76 #: models.py:80
msgid "category" msgid "category"
msgstr "" msgstr ""
#: models.py:78 #: models.py:82
msgid "Main image" msgid "Main image"
msgstr "" msgstr ""
#: models.py:81 #: models.py:85
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "" msgstr ""
#: models.py:85 #: models.py:89
msgid "Main image full" msgid "Main image full"
msgstr "" msgstr ""
#: models.py:89 #: models.py:93
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "" msgstr ""
#: models.py:94 #: models.py:96
msgid "Site(s)"
msgstr ""
#: models.py:98
msgid ""
"Select sites in which to show the post. If none is set it will be visible in"
" all the configured sites."
msgstr ""
#: models.py:104
msgid "Title" msgid "Title"
msgstr "" msgstr ""
#: models.py:96 #: models.py:106
msgid "Abstract" msgid "Abstract"
msgstr "" msgstr ""
#: models.py:97 #: models.py:107
msgid "Post meta description" msgid "Post meta description"
msgstr "" msgstr ""
#: models.py:99 #: models.py:109
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "" msgstr ""
#: models.py:101 #: models.py:111
msgid "Post meta title"
msgstr ""
#: models.py:112
msgid "used in title tag and social sharing"
msgstr ""
#: models.py:115
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: models.py:158 #: models.py:178
msgid "blog article" msgid "blog article"
msgstr "" msgstr ""
#: models.py:159 #: models.py:179
msgid "blog articles" msgid "blog articles"
msgstr "" msgstr ""
#: models.py:199 models.py:226 #: models.py:222 models.py:250
msgid "Articles" msgid "Articles"
msgstr "" msgstr ""
#: models.py:200 #: models.py:223
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "" msgstr ""
#: models.py:202 #: models.py:225
msgid "Show only the blog articles tagged with chosen tags." msgid "Show only the blog articles tagged with chosen tags."
msgstr "" msgstr ""
#: models.py:204 #: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "" msgstr ""
#: models.py:222 templates/djangocms_blog/plugins/authors.html:3 #: models.py:246 templates/djangocms_blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "" msgstr ""
#: models.py:227 #: models.py:251
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "" msgstr ""
#: templates/djangocms_blog/post_detail.html:16 #: templates/djangocms_blog/post_detail.html:18
#: templates/djangocms_blog/includes/blog_item.html:10 #: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "" msgstr ""
@ -222,7 +240,7 @@ msgstr ""
msgid "next" msgid "next"
msgstr "" msgstr ""
#: templates/djangocms_blog/includes/blog_item.html:44 #: templates/djangocms_blog/includes/blog_item.html:46
msgid "read more" msgid "read more"
msgstr "" msgstr ""

View file

@ -7,8 +7,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: djangocms-blog\n" "Project-Id-Version: djangocms-blog\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2014-09-01 07:16+0200\n" "POT-Creation-Date: 2014-11-30 12:49+0100\n"
"PO-Revision-Date: 2014-10-12 09:43+0000\n" "PO-Revision-Date: 2014-11-30 11:49+0000\n"
"Last-Translator: yakky <i.spalletti@nephila.it>\n" "Last-Translator: yakky <i.spalletti@nephila.it>\n"
"Language-Team: Russian (http://www.transifex.com/projects/p/djangocms-blog/language/ru/)\n" "Language-Team: Russian (http://www.transifex.com/projects/p/djangocms-blog/language/ru/)\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -61,124 +61,142 @@ msgstr ""
msgid "Blog articles on %(site_name)s" msgid "Blog articles on %(site_name)s"
msgstr "Статьи из блог на %(site_name)s" msgstr "Статьи из блог на %(site_name)s"
#: models.py:28 #: models.py:31
msgid "parent" msgid "parent"
msgstr "предок" msgstr "предок"
#: models.py:30 #: models.py:33
msgid "created at" msgid "created at"
msgstr "время создания" msgstr "время создания"
#: models.py:31 #: models.py:34
msgid "modified at" msgid "modified at"
msgstr "время изменения" msgstr "время изменения"
#: models.py:34 #: models.py:37
msgid "name" msgid "name"
msgstr "название" msgstr "название"
#: models.py:35 models.py:95 #: models.py:38 models.py:105
msgid "slug" msgid "slug"
msgstr "URL" msgstr "URL"
#: models.py:42 #: models.py:45
msgid "blog category" msgid "blog category"
msgstr "категория блога" msgstr "категория блога"
#: models.py:43 #: models.py:46
msgid "blog categories" msgid "blog categories"
msgstr "категории блога" msgstr "категории блога"
#: models.py:66 #: models.py:70
msgid "Author" msgid "Author"
msgstr "Автор" msgstr "Автор"
#: models.py:71 #: models.py:75
msgid "Published Since" msgid "Published Since"
msgstr "Опубликована с" msgstr "Опубликована с"
#: models.py:73 #: models.py:77
msgid "Published Until" msgid "Published Until"
msgstr "Опубликована до" msgstr "Опубликована до"
#: models.py:75 #: models.py:79
msgid "Publish" msgid "Publish"
msgstr "Показывать на сайте" msgstr "Показывать на сайте"
#: models.py:76 #: models.py:80
msgid "category" msgid "category"
msgstr "категория" msgstr "категория"
#: models.py:78 #: models.py:82
msgid "Main image" msgid "Main image"
msgstr "Картинка для статьи" msgstr "Картинка для статьи"
#: models.py:81 #: models.py:85
msgid "Main image thumbnail" msgid "Main image thumbnail"
msgstr "Уменьшенная копия" msgstr "Уменьшенная копия"
#: models.py:85 #: models.py:89
msgid "Main image full" msgid "Main image full"
msgstr "Полный размер" msgstr "Полный размер"
#: models.py:89 #: models.py:93
msgid "Enable comments on post" msgid "Enable comments on post"
msgstr "" msgstr ""
#: models.py:94 #: models.py:96
msgid "Site(s)"
msgstr ""
#: models.py:98
msgid ""
"Select sites in which to show the post. If none is set it will be visible in"
" all the configured sites."
msgstr ""
#: models.py:104
msgid "Title" msgid "Title"
msgstr "Заголовок" msgstr "Заголовок"
#: models.py:96 #: models.py:106
msgid "Abstract" msgid "Abstract"
msgstr "" msgstr ""
#: models.py:97 #: models.py:107
msgid "Post meta description" msgid "Post meta description"
msgstr "" msgstr ""
#: models.py:99 #: models.py:109
msgid "Post meta keywords" msgid "Post meta keywords"
msgstr "" msgstr ""
#: models.py:101 #: models.py:111
msgid "Post meta title"
msgstr ""
#: models.py:112
msgid "used in title tag and social sharing"
msgstr ""
#: models.py:115
msgid "Text" msgid "Text"
msgstr "" msgstr ""
#: models.py:158 #: models.py:178
msgid "blog article" msgid "blog article"
msgstr "статья блога" msgstr "статья блога"
#: models.py:159 #: models.py:179
msgid "blog articles" msgid "blog articles"
msgstr "статьи блога" msgstr "статьи блога"
#: models.py:199 models.py:226 #: models.py:222 models.py:250
msgid "Articles" msgid "Articles"
msgstr "Статьи" msgstr "Статьи"
#: models.py:200 #: models.py:223
msgid "The number of latests articles to be displayed." msgid "The number of latests articles to be displayed."
msgstr "Количество показываемых последних статей." msgstr "Количество показываемых последних статей."
#: models.py:202 #: models.py:225
msgid "Show only the blog articles tagged with chosen tags." msgid "Show only the blog articles tagged with chosen tags."
msgstr "Показывать только статьи с выбранными тэгами." msgstr "Показывать только статьи с выбранными тэгами."
#: models.py:204 #: models.py:227
msgid "Show only the blog articles tagged with chosen categories." msgid "Show only the blog articles tagged with chosen categories."
msgstr "Показывать только статьи из выбранныех категорий." msgstr "Показывать только статьи из выбранныех категорий."
#: models.py:222 templates/djangocms_blog/plugins/authors.html:3 #: models.py:246 templates/djangocms_blog/plugins/authors.html:3
msgid "Authors" msgid "Authors"
msgstr "Авторы" msgstr "Авторы"
#: models.py:227 #: models.py:251
msgid "The number of author articles to be displayed." msgid "The number of author articles to be displayed."
msgstr "Количество статей автора, которые будут показаны." msgstr "Количество статей автора, которые будут показаны."
#: templates/djangocms_blog/post_detail.html:16 #: templates/djangocms_blog/post_detail.html:18
#: templates/djangocms_blog/includes/blog_item.html:10 #: templates/djangocms_blog/includes/blog_item.html:11
msgid "by" msgid "by"
msgstr "создана" msgstr "создана"
@ -223,7 +241,7 @@ msgstr "из"
msgid "next" msgid "next"
msgstr "следующая" msgstr "следующая"
#: templates/djangocms_blog/includes/blog_item.html:44 #: templates/djangocms_blog/includes/blog_item.html:46
msgid "read more" msgid "read more"
msgstr "продолжение" msgstr "продолжение"

View file

@ -93,8 +93,10 @@ class Post(ModelMeta, TranslatableModel):
verbose_name=_(u'Enable comments on post'), verbose_name=_(u'Enable comments on post'),
default=get_setting('ENABLE_COMMENTS') default=get_setting('ENABLE_COMMENTS')
) )
sites = models.ManyToManyField(Site, verbose_name=_(u'Site(s'), blank=True, null=True, sites = models.ManyToManyField(Site, verbose_name=_(u'Site(s)'), blank=True,
help_text=_(u'Select sites in which to show the post. If none is set it will be' null=True,
help_text=_(u'Select sites in which to show the post. '
u'If none is set it will be '
u'visible in all the configured sites.') u'visible in all the configured sites.')
) )