parent
fc20e8b594
commit
e80cd61e06
|
|
@ -190,7 +190,7 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
|
|||
currentDatasource.edit_url || currentDatasource.url;
|
||||
}}
|
||||
>
|
||||
{t('Use Legacy Datasource Editor')}
|
||||
{t('Use legacy datasource editor')}
|
||||
</Button>
|
||||
)}
|
||||
<Button
|
||||
|
|
|
|||
|
|
@ -446,7 +446,7 @@ function ExploreViewContainer(props) {
|
|||
tabIndex={0}
|
||||
>
|
||||
<span role="button" tabIndex={0} className="action-button">
|
||||
<Tooltip title={t('Open Datasource Tab')}>
|
||||
<Tooltip title={t('Open Datasource tab')}>
|
||||
<Icon
|
||||
name="collapse"
|
||||
color={supersetTheme.colors.primary.base}
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ export default function PropertiesModal({
|
|||
<form onSubmit={onSubmit}>
|
||||
<Row>
|
||||
<Col md={6}>
|
||||
<h3>{t('Basic Information')}</h3>
|
||||
<h3>{t('Basic information')}</h3>
|
||||
<FormGroup>
|
||||
<FormLabel htmlFor="name" required>
|
||||
{t('Name')}
|
||||
|
|
@ -235,7 +235,7 @@ export default function PropertiesModal({
|
|||
<Col md={6}>
|
||||
<h3>{t('Configuration')}</h3>
|
||||
<FormGroup>
|
||||
<FormLabel htmlFor="cacheTimeout">{t('Cache Timeout')}</FormLabel>
|
||||
<FormLabel htmlFor="cacheTimeout">{t('Cache timeout')}</FormLabel>
|
||||
<FormControl
|
||||
name="cacheTimeout"
|
||||
type="text"
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ class SaveModal extends React.Component<SaveModalProps, SaveModalState> {
|
|||
<StyledModal
|
||||
show
|
||||
onHide={this.props.onHide}
|
||||
title={t('Save Chart')}
|
||||
title={t('Save chart')}
|
||||
footer={
|
||||
<div data-test="save-modal-footer">
|
||||
<Button id="btn_cancel" buttonSize="sm" onClick={this.props.onHide}>
|
||||
|
|
|
|||
|
|
@ -377,7 +377,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
|||
let description = '';
|
||||
if (requiresQuery(sourceType)) {
|
||||
if (sourceType === ANNOTATION_SOURCE_TYPES.NATIVE) {
|
||||
label = 'Annotation Layer';
|
||||
label = 'Annotation layer';
|
||||
description = 'Select the Annotation Layer you would like to use.';
|
||||
} else {
|
||||
label = t('Chart');
|
||||
|
|
@ -467,8 +467,8 @@ export default class AnnotationLayer extends React.PureComponent {
|
|||
name="annotation-layer-time-column"
|
||||
label={
|
||||
annotationType === ANNOTATION_TYPES.INTERVAL
|
||||
? 'Interval Start column'
|
||||
: 'Event Time Column'
|
||||
? 'Interval start column'
|
||||
: 'Event time column'
|
||||
}
|
||||
description="This column must contain date/time information."
|
||||
validationErrors={!timeColumn ? ['Mandatory'] : []}
|
||||
|
|
@ -608,7 +608,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
|||
options={[
|
||||
{ value: 'solid', label: 'Solid' },
|
||||
{ value: 'dashed', label: 'Dashed' },
|
||||
{ value: 'longDashed', label: 'Long Dashed' },
|
||||
{ value: 'longDashed', label: 'Long dashed' },
|
||||
{ value: 'dotted', label: 'Dotted' },
|
||||
]}
|
||||
value={style}
|
||||
|
|
@ -648,7 +648,7 @@ export default class AnnotationLayer extends React.PureComponent {
|
|||
</div>
|
||||
<TextControl
|
||||
name="annotation-layer-stroke-width"
|
||||
label={t('Line Width')}
|
||||
label={t('Line width')}
|
||||
isInt
|
||||
value={width}
|
||||
onChange={v => this.setState({ width: v })}
|
||||
|
|
@ -711,14 +711,14 @@ export default class AnnotationLayer extends React.PureComponent {
|
|||
/>
|
||||
<CheckboxControl
|
||||
name="annotation-layer-hide"
|
||||
label={t('Hide Layer')}
|
||||
label={t('Hide layer')}
|
||||
value={!show}
|
||||
onChange={v => this.setState({ show: !v })}
|
||||
/>
|
||||
<SelectControl
|
||||
hovered
|
||||
description={t('Choose the Annotation Layer Type')}
|
||||
label={t('Annotation Layer Type')}
|
||||
description={t('Choose the annotation layer type')}
|
||||
label={t('Annotation layer type')}
|
||||
name="annotation-layer-type"
|
||||
clearable={false}
|
||||
options={supportedAnnotationTypes}
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ class AnnotationLayerControl extends React.PureComponent {
|
|||
key={i}
|
||||
trigger="click"
|
||||
placement="right"
|
||||
title={t('Edit Annotation Layer')}
|
||||
title={t('Edit annotation layer')}
|
||||
content={this.renderPopover(
|
||||
i,
|
||||
anno,
|
||||
|
|
|
|||
|
|
@ -156,10 +156,10 @@ class DatasourceControl extends React.PureComponent {
|
|||
<Menu onClick={this.handleMenuItemClick}>
|
||||
{this.props.isEditable && (
|
||||
<Menu.Item key={EDIT_DATASET} data-test="edit-dataset">
|
||||
{t('Edit Dataset')}
|
||||
{t('Edit dataset')}
|
||||
</Menu.Item>
|
||||
)}
|
||||
<Menu.Item key={CHANGE_DATASET}>{t('Change Dataset')}</Menu.Item>
|
||||
<Menu.Item key={CHANGE_DATASET}>{t('Change dataset')}</Menu.Item>
|
||||
<Menu.Item key={VIEW_IN_SQL_LAB}>{t('View in SQL Lab')}</Menu.Item>
|
||||
</Menu>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ export default class AdhocFilterEditPopoverSimpleTabContent extends React.Compon
|
|||
loading: this.state.loading,
|
||||
value: comparator,
|
||||
onChange: this.onComparatorChange,
|
||||
notFoundContent: t('type a value here'),
|
||||
notFoundContent: t('Type a value here'),
|
||||
disabled: DISABLE_INPUT_OPERATORS.includes(operator),
|
||||
placeholder: this.createSuggestionsPlaceholder(),
|
||||
labelText: comparator?.length > 0 && this.createSuggestionsPlaceholder(),
|
||||
|
|
|
|||
|
|
@ -124,9 +124,9 @@ export default class AdhocFilterEditPopoverSqlTabContent extends React.Component
|
|||
))}
|
||||
</Select>
|
||||
<span className="filter-edit-clause-info">
|
||||
<strong>WHERE</strong> {t('filters by columns')}
|
||||
<strong>WHERE</strong> {t('Filters by columns')}
|
||||
<br />
|
||||
<strong>HAVING</strong> {t('filters by metrics')}
|
||||
<strong>HAVING</strong> {t('Filters by metrics')}
|
||||
</span>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export default class AdhocMetricEditPopoverTitle extends React.Component {
|
|||
|
||||
render() {
|
||||
const { title, onChange, isEditDisabled } = this.props;
|
||||
const defaultLabel = t('My Metric');
|
||||
const defaultLabel = t('My metric');
|
||||
|
||||
if (isEditDisabled) {
|
||||
return (
|
||||
|
|
|
|||
Loading…
Reference in New Issue