diff --git a/muranodashboard/categories/forms.py b/muranodashboard/categories/forms.py index c8dcf05b6..6f9592ca9 100644 --- a/muranodashboard/categories/forms.py +++ b/muranodashboard/categories/forms.py @@ -22,9 +22,9 @@ from muranodashboard import api class AddCategoryForm(horizon_forms.SelfHandlingForm): - name = forms.CharField(label='Category Name', + name = forms.CharField(label=_('Category Name'), max_length=80, - help_text='80 characters max.') + help_text=_('80 characters max.')) def handle(self, request, data): if data: diff --git a/muranodashboard/environments/forms.py b/muranodashboard/environments/forms.py index 56d79d7a2..ed80bde1d 100644 --- a/muranodashboard/environments/forms.py +++ b/muranodashboard/environments/forms.py @@ -30,7 +30,7 @@ ENV_NAME_HELP_TEXT = _("Environment name must contain at least one " class CreateEnvironmentForm(horizon_forms.SelfHandlingForm): - name = forms.CharField(label="Environment Name", + name = forms.CharField(label=_("Environment Name"), help_text=ENV_NAME_HELP_TEXT, max_length=255, required=True) diff --git a/muranodashboard/images/forms.py b/muranodashboard/images/forms.py index 879f91675..dae981345 100644 --- a/muranodashboard/images/forms.py +++ b/muranodashboard/images/forms.py @@ -53,9 +53,9 @@ class MarkImageForm(horizon_forms.SelfHandlingForm): 'cirros.demo': 'CirrOS for Murano Demo' } - image = forms.ChoiceField(label='Image') + image = forms.ChoiceField(label=_('Image')) title = forms.CharField(max_length="255", label=_("Title")) - type = forms.ChoiceField(label="Type", choices=_metadata.items()) + type = forms.ChoiceField(label=_("Type"), choices=_metadata.items()) existing_titles = forms.CharField(widget=forms.HiddenInput) def __init__(self, request, *args, **kwargs): diff --git a/muranodashboard/packages/forms.py b/muranodashboard/packages/forms.py index ed4c002a9..1b6408f24 100644 --- a/muranodashboard/packages/forms.py +++ b/muranodashboard/packages/forms.py @@ -161,11 +161,11 @@ class ImportPackageForm(forms.Form): class PackageParamsMixin(forms.Form): name = forms.CharField(label=_('Name'), max_length=80, - help_text='80 characters max.') + help_text=_('80 characters max.')) tags = forms.CharField(label=_('Tags'), required=False, - help_text='Provide comma-separated list of words,' - ' associated with the package') + help_text=_('Provide comma-separated list of words,' + ' associated with the package')) is_public = forms.BooleanField(label=_('Public'), required=False, widget=forms.CheckboxInput)