mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
mark dynamic Credential Type labels and help_text for i18n
see: https://github.com/ansible/tower/issues/1960 related: https://github.com/ansible/ansible-tower/pull/6844
This commit is contained in:
@@ -2363,6 +2363,7 @@ class CredentialTypeSerializer(BaseSerializer):
|
||||
|
||||
# translate labels and help_text for credential fields "managed by Tower"
|
||||
if value.get('managed_by_tower'):
|
||||
value['name'] = _(value['name'])
|
||||
for field in value.get('inputs', {}).get('fields', []):
|
||||
field['label'] = _(field['label'])
|
||||
if 'help_text' in field:
|
||||
|
||||
Reference in New Issue
Block a user