Various misc fixes:

- Using the 'gettext' as oppose to '_', which is not defined
- Define missing variables
- Fixed escape character in string with double quote
- Removed some dead code in a test case
- Removed unnecessary self assignment

Includes some fixes for Accessibility improvements
- Use semantic markup to mark emphasized or special text
- Added hidden legend in <fieldset> for better screen reader support
This commit is contained in:
Ashesh Vashi
2020-04-08 14:14:25 +05:30
parent 8fe687eb55
commit d9f6baac72
15 changed files with 28 additions and 59 deletions

View File

@@ -588,7 +588,7 @@ class ResourceGroupView(NodeView):
if len(res['rows']) == 0:
return gone(
_("The specified resource group could not be found.")
gettext("The specified resource group could not be found.")
)
old_data = res['rows'][0]
for arg in required_args:
@@ -655,7 +655,7 @@ class ResourceGroupView(NodeView):
return internal_server_error(errormsg=res)
if len(res['rows']) == 0:
return gone(
_("The specified resource group could not be found.")
gettext("The specified resource group could not be found.")
)
# Making copy of output for future use