Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change pybabel keywords from __ to _ #2986

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
415 changes: 297 additions & 118 deletions babel/messages.pot

Large diffs are not rendered by default.

13 changes: 6 additions & 7 deletions superset/connectors/druid/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from flask_appbuilder.models.sqla.interface import SQLAInterface

from flask_babel import lazy_gettext as _
from flask_babel import gettext as __

import superset
from superset import db, utils, appbuilder, sm, security
Expand Down Expand Up @@ -142,10 +141,10 @@ def _delete(self, pk):
appbuilder.add_view(
DruidClusterModelView,
name="Druid Clusters",
label=__("Druid Clusters"),
label=_("Druid Clusters"),
icon="fa-cubes",
category="Sources",
category_label=__("Sources"),
category_label=_("Sources"),
category_icon='fa-database',)


Expand Down Expand Up @@ -239,9 +238,9 @@ def _delete(self, pk):
appbuilder.add_view(
DruidDatasourceModelView,
"Druid Datasources",
label=__("Druid Datasources"),
label=_("Druid Datasources"),
category="Sources",
category_label=__("Sources"),
category_label=_("Sources"),
icon="fa-cube")


Expand Down Expand Up @@ -277,10 +276,10 @@ def refresh_datasources(self):

appbuilder.add_link(
"Refresh Druid Metadata",
label=__("Refresh Druid Metadata"),
label=_("Refresh Druid Metadata"),
href='/druid/refresh_datasources/',
category='Sources',
category_label=__("Sources"),
category_label=_("Sources"),
category_icon='fa-database',
icon="fa-cog")

Expand Down
5 changes: 2 additions & 3 deletions superset/connectors/sqla/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import sqlalchemy as sa

from flask_babel import lazy_gettext as _
from flask_babel import gettext as __

from superset import appbuilder, db, utils, security, sm
from superset.utils import has_access
Expand Down Expand Up @@ -257,9 +256,9 @@ def edit(self, pk):
appbuilder.add_view(
TableModelView,
"Tables",
label=__("Tables"),
label=_("Tables"),
category="Sources",
category_label=__("Sources"),
category_label=_("Sources"),
icon='fa-table',)

appbuilder.add_separator("Sources")
Binary file modified superset/translations/es/LC_MESSAGES/messages.mo
Binary file not shown.
Loading