diff --git a/docs/settings.rst b/docs/settings.rst index 46658f2..b52562c 100644 --- a/docs/settings.rst +++ b/docs/settings.rst @@ -61,7 +61,7 @@ behavior without touching the code: (3600 * 24 * 30 * 12 * 100, ugettext(u'100 Years')), ) - **One-time snippets** are supported. One time snippets are automatically + **One-time snippets** are supported. One-Time snippets are automatically deleted once a defined view count has reached (Default: ``2``). To enable one-time snippets you have to add a choice ``onetime`` to the expire choices:: diff --git a/dpaste/forms.py b/dpaste/forms.py index 703d1f5..b5e42a9 100644 --- a/dpaste/forms.py +++ b/dpaste/forms.py @@ -82,7 +82,7 @@ class SnippetForm(forms.ModelForm): def clean_content(self): content = self.cleaned_data.get('content', '') if content.strip() == '': - raise forms.ValidationError(_('Please fill out this field.')) + raise forms.ValidationError(_('This field is required.')) return content def clean_expires(self): diff --git a/dpaste/models.py b/dpaste/models.py index ac2e293..2e5d63f 100644 --- a/dpaste/models.py +++ b/dpaste/models.py @@ -35,7 +35,7 @@ class Snippet(models.Model): EXPIRE_CHOICES = ( (EXPIRE_TIME, _(u'Expire by timestamp')), (EXPIRE_KEEP, _(u'Keep Forever')), - (EXPIRE_ONETIME, _(u'One time snippet')), + (EXPIRE_ONETIME, _(u'One-Time snippet')), ) secret_id = models.CharField(_(u'Secret ID'), max_length=255, blank=True, null=True, diff --git a/dpaste/templates/dpaste/snippet_details.html b/dpaste/templates/dpaste/snippet_details.html index 6397c68..2f14c22 100644 --- a/dpaste/templates/dpaste/snippet_details.html +++ b/dpaste/templates/dpaste/snippet_details.html @@ -81,9 +81,9 @@