mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
backups: Make validator errors translatable
Fix spelling error. Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
493fdd572b
commit
6a3f158266
@ -84,8 +84,8 @@ class UploadForm(forms.Form):
|
|||||||
file = forms.FileField(
|
file = forms.FileField(
|
||||||
label=_('Upload File'),
|
label=_('Upload File'),
|
||||||
required=True,
|
required=True,
|
||||||
validators=[FileExtensionValidator(['gz'],
|
validators=[FileExtensionValidator(
|
||||||
'Backup files have to be in .tar.gz format')],
|
['gz'], _('Backup files have to be in .tar.gz format'))],
|
||||||
help_text=_('Select the backup file you want to upload'))
|
help_text=_('Select the backup file you want to upload'))
|
||||||
|
|
||||||
|
|
||||||
@ -136,7 +136,7 @@ class AddRepositoryForm(forms.Form):
|
|||||||
|
|
||||||
if passphrase != confirm_passphrase:
|
if passphrase != confirm_passphrase:
|
||||||
raise forms.ValidationError(
|
raise forms.ValidationError(
|
||||||
"The entered encryption passphrases do not match"
|
_("The entered encryption passphrases do not match")
|
||||||
)
|
)
|
||||||
|
|
||||||
path = cleaned_data.get("repository")
|
path = cleaned_data.get("repository")
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
class="inline-block" >
|
class="inline-block" >
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<button type="submit" class="btn btn-sm btn-default"
|
<button type="submit" class="btn btn-sm btn-default"
|
||||||
title="{% trans 'Unount Location' %}">
|
title="{% trans 'Unmount Location' %}">
|
||||||
<span class="glyphicon glyphicon-eject" aria-hidden="true">
|
<span class="glyphicon glyphicon-eject" aria-hidden="true">
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user