2020-08-19 03:46:02 -05:00
|
|
|
##########################################################################
|
|
|
|
#
|
|
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
|
|
#
|
|
|
|
# Copyright (C) 2013 - 2020, The pgAdmin Development Team
|
|
|
|
# This software is released under the PostgreSQL Licence
|
|
|
|
#
|
|
|
|
##########################################################################
|
|
|
|
|
|
|
|
"""Application wide constants."""
|
2020-08-20 07:28:37 -05:00
|
|
|
from flask_babelex import gettext
|
|
|
|
|
|
|
|
# Mimetypes
|
|
|
|
MIMETYPE_APP_HTML = 'text/html'
|
|
|
|
MIMETYPE_APP_JS = 'application/javascript'
|
|
|
|
|
|
|
|
|
|
|
|
# Preference labels
|
|
|
|
PREF_LABEL_KEYBOARD_SHORTCUTS = gettext('Keyboard shortcuts')
|
|
|
|
PREF_LABEL_DISPLAY = gettext('Display')
|
|
|
|
PREF_LABEL_OPTIONS = gettext('Options')
|
|
|
|
PREF_LABEL_EXPLAIN = gettext('Explain')
|
|
|
|
PREF_LABEL_EDITOR = gettext('Editor')
|
|
|
|
PREF_LABEL_CSV_TXT = gettext('CSV/TXT Output')
|
|
|
|
PREF_LABEL_RESULTS_GRID = gettext('Results grid')
|
|
|
|
PREF_LABEL_SQL_FORMATTING = gettext('SQL formatting')
|
2020-11-04 06:15:28 -06:00
|
|
|
PREF_LABEL_TABS_SETTINGS = gettext('Tab settings')
|
2020-08-19 03:46:02 -05:00
|
|
|
|
|
|
|
PGADMIN_NODE = 'pgadmin.node.%s'
|
|
|
|
UNAUTH_REQ = "Unauthorized request."
|
2020-08-28 07:47:27 -05:00
|
|
|
SERVER_CONNECTION_CLOSED = gettext(
|
|
|
|
'Not connected to server or connection with the server has been closed.')
|
2020-09-03 08:05:58 -05:00
|
|
|
|
|
|
|
# Data Types
|
|
|
|
DATATYPE_TIME_WITH_TIMEZONE = 'time with time zone'
|
|
|
|
DATATYPE_TIME_WITHOUT_TIMEZONE = 'time without time zone'
|
|
|
|
|
|
|
|
DATATYPE_TIMESTAMP_WITH_TIMEZONE = 'timestamp with time zone'
|
|
|
|
DATATYPE_TIMESTAMP_WITHOUT_TIMEZONE = 'timestamp without time zone'
|
|
|
|
|
|
|
|
# Error Messages
|
|
|
|
ERROR_MSG_TRANS_ID_NOT_FOUND = gettext(
|
|
|
|
'Transaction ID not found in the session.')
|
2020-09-07 07:26:02 -05:00
|
|
|
|
|
|
|
# Role module constant
|
|
|
|
ERROR_FETCHING_ROLE_INFORMATION = gettext(
|
|
|
|
'Error fetching role information from the database server.')
|
2020-10-01 02:59:00 -05:00
|
|
|
|
|
|
|
ERROR_FETCHING_DATA = gettext('Unable to fetch data.')
|