diff --git a/superset-frontend/src/SqlLab/components/SqlEditor.jsx b/superset-frontend/src/SqlLab/components/SqlEditor.jsx index 3af2b1fa15c..ac79746fe4c 100644 --- a/superset-frontend/src/SqlLab/components/SqlEditor.jsx +++ b/superset-frontend/src/SqlLab/components/SqlEditor.jsx @@ -503,7 +503,7 @@ class SqlEditor extends React.PureComponent { {' '} - Autocomplete{' '} + {t('Autocomplete')}{' '} ({ label: registry.get(k)?.name || k, value: k })) @@ -441,7 +441,7 @@ function ChartList(props: ChartListProps) { id: 'datasource_id', input: 'select', operator: FilterOperators.equals, - unfilteredLabel: 'All', + unfilteredLabel: t('All'), fetchSelects: createFetchDatasets( createErrorHandler(errMsg => addDangerToast( @@ -460,7 +460,7 @@ function ChartList(props: ChartListProps) { urlDisplay: 'favorite', input: 'select', operator: FilterOperators.chartIsFav, - unfilteredLabel: 'Any', + unfilteredLabel: t('Any'), selects: [ { label: t('Yes'), value: true }, { label: t('No'), value: false }, @@ -478,19 +478,19 @@ function ChartList(props: ChartListProps) { { desc: false, id: 'slice_name', - label: 'Alphabetical', + label: t('Alphabetical'), value: 'alphabetical', }, { desc: true, id: 'changed_on_delta_humanized', - label: 'Recently modified', + label: t('Recently modified'), value: 'recently_modified', }, { desc: false, id: 'changed_on_delta_humanized', - label: 'Least recently modified', + label: t('Least recently modified'), value: 'least_recently_modified', }, ]; diff --git a/superset-frontend/src/views/CRUD/dashboard/DashboardCard.tsx b/superset-frontend/src/views/CRUD/dashboard/DashboardCard.tsx index 45bc57ab7bf..4ca0d3146f0 100644 --- a/superset-frontend/src/views/CRUD/dashboard/DashboardCard.tsx +++ b/superset-frontend/src/views/CRUD/dashboard/DashboardCard.tsx @@ -135,7 +135,7 @@ function DashboardCard({ loading={dashboard.loading || false} title={dashboard.dashboard_title} titleRight={ - + } url={bulkSelectEnabled ? undefined : dashboard.url} imgURL={dashboard.thumbnail_url} diff --git a/superset/translations/messages.pot b/superset/translations/messages.pot index 10deaa68ba9..707b7ab654d 100644 --- a/superset/translations/messages.pot +++ b/superset/translations/messages.pot @@ -2710,6 +2710,11 @@ msgstr "" msgid "Edit Dashboard" msgstr "" +#: superset-frontend/src/dashboard/components/Header.jsx:485 +#: superset-frontend/src/dashboard/components/nativeFilters/FilterConfigModal/FiltersList.tsx:56 +msgid "Edit dashboard" +msgstr "" + #: superset/views/dashboard/mixin.py:46 msgid "" "This json object describes the positioning of the widgets in the " @@ -7745,26 +7750,46 @@ msgstr "" #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:385 #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:364 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:378 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:399 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:420 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:444 msgid "All" msgstr "" #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:406 #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:418 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:463 msgid "Any" msgstr "" #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:436 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:481 msgid "Alphabetical" msgstr "" #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:442 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:487 msgid "Recently modified" msgstr "" #: superset-frontend/src/views/CRUD/dashboard/DashboardList.tsx:448 +#: superset-frontend/src/views/CRUD/chart/ChartList.tsx:493 msgid "Least recently modified" msgstr "" #: superset-frontend/src/components/ListView/ListView.tsx:393 msgid "No Data" msgstr "" + +#: superset-frontend/src/views/CRUD/dashboard/DashboardCard.tsx:138 +msgid "published" +msgstr "" + +#: superset-frontend/src/views/CRUD/dashboard/DashboardCard.tsx:138 +msgid "draft" +msgstr "" + +#: superset-frontend/src/SqlLab/components/SqlEditor.jsx:506 +msgid "Autocomplete" +msgstr ""