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

@@ -485,7 +485,7 @@ class TablespaceView(PGChildNodeView):
if len(res['rows']) == 0:
return gone(
_("Could not find the tablespace on the server.")
gettext("Could not find the tablespace on the server.")
)
# Making copy of output for further processing
@@ -550,7 +550,7 @@ class TablespaceView(PGChildNodeView):
if len(res['rows']) == 0:
return gone(
_("Could not find the tablespace on the server.")
gettext("Could not find the tablespace on the server.")
)
# Making copy of output for future use
old_data = dict(res['rows'][0])