mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 09:57:35 -02:30
sprinkle more i18n for certain field labels
see: https://github.com/ansible/tower/issues/2063
This commit is contained in:
@@ -1147,7 +1147,19 @@ class OAuth2ApplicationSerializer(BaseSerializer):
|
|||||||
extra_kwargs = {
|
extra_kwargs = {
|
||||||
'user': {'allow_null': True, 'required': False},
|
'user': {'allow_null': True, 'required': False},
|
||||||
'organization': {'allow_null': False},
|
'organization': {'allow_null': False},
|
||||||
'authorization_grant_type': {'allow_null': False}
|
'authorization_grant_type': {'allow_null': False, 'label': _('Authorization Grant Type')},
|
||||||
|
'client_secret': {
|
||||||
|
'label': _('Client Secret')
|
||||||
|
},
|
||||||
|
'client_type': {
|
||||||
|
'label': _('Client Type')
|
||||||
|
},
|
||||||
|
'redirect_uris': {
|
||||||
|
'label': _('Redirect URIs')
|
||||||
|
},
|
||||||
|
'skip_authorization': {
|
||||||
|
'label': _('Skip Authorization')
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
def to_representation(self, obj):
|
def to_representation(self, obj):
|
||||||
@@ -4476,16 +4488,19 @@ class InstanceGroupSerializer(BaseSerializer):
|
|||||||
# both defining field details here and also getting the field's help_text
|
# both defining field details here and also getting the field's help_text
|
||||||
policy_instance_percentage = serializers.IntegerField(
|
policy_instance_percentage = serializers.IntegerField(
|
||||||
default=0, min_value=0, max_value=100, required=False, initial=0,
|
default=0, min_value=0, max_value=100, required=False, initial=0,
|
||||||
|
label=_('Policy Instance Percentage'),
|
||||||
help_text=_("Minimum percentage of all instances that will be automatically assigned to "
|
help_text=_("Minimum percentage of all instances that will be automatically assigned to "
|
||||||
"this group when new instances come online.")
|
"this group when new instances come online.")
|
||||||
)
|
)
|
||||||
policy_instance_minimum = serializers.IntegerField(
|
policy_instance_minimum = serializers.IntegerField(
|
||||||
default=0, min_value=0, required=False, initial=0,
|
default=0, min_value=0, required=False, initial=0,
|
||||||
|
label=_('Policy Instance Minimum'),
|
||||||
help_text=_("Static minimum number of Instances that will be automatically assign to "
|
help_text=_("Static minimum number of Instances that will be automatically assign to "
|
||||||
"this group when new instances come online.")
|
"this group when new instances come online.")
|
||||||
)
|
)
|
||||||
policy_instance_list = serializers.ListField(
|
policy_instance_list = serializers.ListField(
|
||||||
child=serializers.CharField(), required=False,
|
child=serializers.CharField(), required=False,
|
||||||
|
label=_('Policy Instance List'),
|
||||||
help_text=_("List of exact-match Instances that will be assigned to this group")
|
help_text=_("List of exact-match Instances that will be assigned to this group")
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user