diff --git a/plinth/modules/backups/forms.py b/plinth/modules/backups/forms.py index 1a4ed149e..365ecbb34 100644 --- a/plinth/modules/backups/forms.py +++ b/plinth/modules/backups/forms.py @@ -84,8 +84,8 @@ class UploadForm(forms.Form): file = forms.FileField( label=_('Upload File'), required=True, - validators=[FileExtensionValidator(['gz'], - 'Backup files have to be in .tar.gz format')], + validators=[FileExtensionValidator( + ['gz'], _('Backup files have to be in .tar.gz format'))], help_text=_('Select the backup file you want to upload')) @@ -136,7 +136,7 @@ class AddRepositoryForm(forms.Form): if passphrase != confirm_passphrase: raise forms.ValidationError( - "The entered encryption passphrases do not match" + _("The entered encryption passphrases do not match") ) path = cleaned_data.get("repository") diff --git a/plinth/modules/backups/templates/backups_repository.inc b/plinth/modules/backups/templates/backups_repository.inc index faf97bafe..db5108256 100644 --- a/plinth/modules/backups/templates/backups_repository.inc +++ b/plinth/modules/backups/templates/backups_repository.inc @@ -44,7 +44,7 @@ class="inline-block" > {% csrf_token %}