diff --git a/superset/assets/backendSync.json b/superset/assets/backendSync.json index 9b825529e..711496dcd 100644 --- a/superset/assets/backendSync.json +++ b/superset/assets/backendSync.json @@ -37,7 +37,7 @@ null, null ], - "description": "Bounds for the Y axis. When left empty, the bounds are dynamically defined based on the min/max of the data. Note that this feature will only expand the axis range. It won't narrow the data's extent." + "description": "Bounds for the Y-axis. When left empty, the bounds are dynamically defined based on the min/max of the data. Note that this feature will only expand the axis range. It won't narrow the data's extent." }, "order_by_cols": { "type": "SelectControl", @@ -253,7 +253,7 @@ ] ], "default": "series", - "description": "Defines how the color are attributed." + "description": "Defines how the colors are attributed." }, "canvas_image_rendering": { "type": "SelectControl", @@ -753,7 +753,7 @@ "label": "Reduce X ticks", "renderTrigger": true, "default": false, - "description": "Reduces the number of X axis ticks to be rendered. If true, the x axis wont overflow and labels may be missing. If false, a minimum width will be applied to columns and the width may overflow into an horizontal scroll." + "description": "Reduces the number of X-axis ticks to be rendered. If true, the x-axis won't overflow and labels may be missing. If false, a minimum width will be applied to columns and the width may overflow into a horizontal scroll." }, "include_series": { "type": "CheckboxControl", @@ -834,7 +834,7 @@ "Usa" ] ], - "description": "The name of country that Superset should display" + "description": "The name of the country that Superset should display" }, "country_fieldtype": { "type": "SelectControl", @@ -2242,14 +2242,14 @@ "label": "X bounds", "renderTrigger": true, "default": true, - "description": "Whether to display the min and max values of the X axis" + "description": "Whether to display the min and max values of the X-axis" }, "y_axis_showminmax": { "type": "CheckboxControl", "label": "Y bounds", "renderTrigger": true, "default": true, - "description": "Whether to display the min and max values of the Y axis" + "description": "Whether to display the min and max values of the Y-axis" }, "rich_tooltip": { "type": "CheckboxControl", @@ -2263,14 +2263,14 @@ "label": "Y Log Scale", "default": false, "renderTrigger": true, - "description": "Use a log scale for the Y axis" + "description": "Use a log scale for the Y-axis" }, "x_log_scale": { "type": "CheckboxControl", "label": "X Log Scale", "default": false, "renderTrigger": true, - "description": "Use a log scale for the X axis" + "description": "Use a log scale for the X-axis" }, "log_scale": { "type": "CheckboxControl", diff --git a/superset/assets/src/SqlLab/actions.js b/superset/assets/src/SqlLab/actions.js index 91e848649..6d2b6af1a 100644 --- a/superset/assets/src/SqlLab/actions.js +++ b/superset/assets/src/SqlLab/actions.js @@ -287,7 +287,7 @@ export function addTable(query, tableName, schemaName) { isMetadataLoading: false, }), ), - dispatch(addDangerToast(t('Error occurred while fetching table metadata'))), + dispatch(addDangerToast(t('An error occurred while fetching table metadata'))), ]), ); @@ -300,7 +300,7 @@ export function addTable(query, tableName, schemaName) { .catch(() => Promise.all([ dispatch(mergeTable({ ...table, isExtraMetadataLoading: false })), - dispatch(addDangerToast(t('Error occurred while fetching table metadata'))), + dispatch(addDangerToast(t('An error occurred while fetching table metadata'))), ]), ); }; diff --git a/superset/assets/src/SqlLab/components/QueryTable.jsx b/superset/assets/src/SqlLab/components/QueryTable.jsx index f92d65e8a..9e539636e 100644 --- a/superset/assets/src/SqlLab/components/QueryTable.jsx +++ b/superset/assets/src/SqlLab/components/QueryTable.jsx @@ -173,7 +173,7 @@ class QueryTable extends React.PureComponent { } [s, s]), - description: t('The name of country that Superset should display'), + description: t('The name of the country that Superset should display'), }, country_fieldtype: { type: 'SelectControl', @@ -741,7 +741,7 @@ export const controls = { default: 'auto', clearable: false, renderTrigger: true, - description: t('The way the ticks are laid out on the X axis'), + description: t('The way the ticks are laid out on the X-axis'), }, left_margin: { @@ -1543,7 +1543,7 @@ export const controls = { label: t('X bounds'), renderTrigger: true, default: false, - description: t('Whether to display the min and max values of the X axis'), + description: t('Whether to display the min and max values of the X-axis'), }, y_axis_showminmax: { @@ -1551,7 +1551,7 @@ export const controls = { label: t('Y bounds'), renderTrigger: true, default: false, - description: t('Whether to display the min and max values of the Y axis'), + description: t('Whether to display the min and max values of the Y-axis'), }, rich_tooltip: { @@ -1568,7 +1568,7 @@ export const controls = { label: t('Y Log Scale'), default: false, renderTrigger: true, - description: t('Use a log scale for the Y axis'), + description: t('Use a log scale for the Y-axis'), }, x_log_scale: { @@ -1576,7 +1576,7 @@ export const controls = { label: t('X Log Scale'), default: false, renderTrigger: true, - description: t('Use a log scale for the X axis'), + description: t('Use a log scale for the X-axis'), }, log_scale: { diff --git a/superset/assets/src/explore/visTypes.jsx b/superset/assets/src/explore/visTypes.jsx index 0ae0ca56a..97ac501e8 100644 --- a/superset/assets/src/explore/visTypes.jsx +++ b/superset/assets/src/explore/visTypes.jsx @@ -1369,7 +1369,7 @@ export const visTypes = { }, link_length: { label: t('No of Bins'), - description: t('Select number of bins for the histogram'), + description: t('Select the number of bins for the histogram'), default: 5, }, global_opacity: { @@ -1816,7 +1816,7 @@ export const visTypes = { ], }, { - label: t('Additional meta data'), + label: t('Additional metadata'), controlSetRows: [ ['all_columns'], ], @@ -1837,11 +1837,11 @@ export const visTypes = { }, row_limit: { label: t('Event count limit'), - description: t('The maximum number of events to return, equivalent to number of rows'), + description: t('The maximum number of events to return, equivalent to the number of rows'), }, all_columns: { label: t('Meta data'), - description: t('Select any columns for meta data inspection'), + description: t('Select any columns for metadata inspection'), }, }, }, diff --git a/superset/connectors/druid/views.py b/superset/connectors/druid/views.py index f6b3bb005..c67e3fcf6 100644 --- a/superset/connectors/druid/views.py +++ b/superset/connectors/druid/views.py @@ -121,7 +121,7 @@ class DruidMetricInlineView(CompactCRUDMixin, SupersetModelView): # noqa '[Druid Post Aggregation]' '(http://druid.io/docs/latest/querying/post-aggregations.html)', True), - 'is_restricted': _('Whether the access to this metric is restricted ' + 'is_restricted': _('Whether access to this metric is restricted ' 'to certain roles. Only roles with the permission ' "'metric access on XXX (the name of this metric)' " 'are allowed to access this metric'), diff --git a/superset/connectors/sqla/views.py b/superset/connectors/sqla/views.py index e02bde802..c085958f5 100644 --- a/superset/connectors/sqla/views.py +++ b/superset/connectors/sqla/views.py @@ -108,7 +108,7 @@ class SqlMetricInlineView(CompactCRUDMixin, SupersetModelView): # noqa 'expression': utils.markdown( 'a valid, *aggregating* SQL expression as supported by the ' 'underlying backend. Example: `count(DISTINCT userid)`', True), - 'is_restricted': _('Whether the access to this metric is restricted ' + 'is_restricted': _('Whether access to this metric is restricted ' 'to certain roles. Only roles with the permission ' "'metric access on XXX (the name of this metric)' " 'are allowed to access this metric'),