mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Define constants for preferences label to fix SonarQube issues.
This commit is contained in:
@@ -8,8 +8,22 @@
|
||||
##########################################################################
|
||||
|
||||
"""Application wide constants."""
|
||||
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')
|
||||
|
||||
APP_JS = 'application/javascript'
|
||||
PGADMIN_NODE = 'pgadmin.node.%s'
|
||||
KEYBOARD_SHORTCUTS = 'Keyboard shortcuts'
|
||||
UNAUTH_REQ = "Unauthorized request."
|
||||
|
||||
Reference in New Issue
Block a user