mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Using the 'gettext' as oppose to '_', which is not defined in these
files.
This commit is contained in:
parent
7f0847b95d
commit
a84a62def8
@ -560,7 +560,7 @@ class CastView(PGChildNodeView):
|
||||
|
||||
if len(res['rows']) == 0:
|
||||
return gone(
|
||||
_("Could not find the specified cast on the server.")
|
||||
gettext("Could not find the specified cast on the server.")
|
||||
)
|
||||
|
||||
old_data = res['rows'][0]
|
||||
@ -663,13 +663,13 @@ class CastView(PGChildNodeView):
|
||||
status, res = self.conn.execute_scalar(sql)
|
||||
if not status:
|
||||
return internal_server_error(
|
||||
_("Could not generate reversed engineered SQL for the "
|
||||
gettext("Could not generate reversed engineered SQL for the "
|
||||
"cast.\n\n{0}").format(res)
|
||||
)
|
||||
|
||||
if res is None:
|
||||
return gone(
|
||||
_("Could not generate reversed engineered SQL for the "
|
||||
gettext("Could not generate reversed engineered SQL for the "
|
||||
"cast node.\n")
|
||||
)
|
||||
|
||||
|
@ -475,7 +475,7 @@ class ExtensionView(PGChildNodeView):
|
||||
return internal_server_error(errormsg=res)
|
||||
if len(res['rows']) == 0:
|
||||
return gone(
|
||||
_("Could not find the extension on the server.")
|
||||
gettext("Could not find the extension on the server.")
|
||||
)
|
||||
|
||||
result = res['rows'][0]
|
||||
|
@ -705,7 +705,9 @@ class ForeignDataWrapperView(PGChildNodeView):
|
||||
return internal_server_error(errormsg=res)
|
||||
if len(res['rows']) == 0:
|
||||
return gone(
|
||||
_("Could not find the foreign data wrapper on the server.")
|
||||
gettext(
|
||||
"Could not find the foreign data wrapper on the server."
|
||||
)
|
||||
)
|
||||
|
||||
is_valid_options = False
|
||||
|
Loading…
Reference in New Issue
Block a user