Apply capitalization guidelines - iteration 5 (#12343) (#12451)

This commit is contained in:
Michael S. Molina
2021-01-22 15:11:48 -03:00
committed by GitHub
parent fc20e8b594
commit e80cd61e06
10 changed files with 20 additions and 20 deletions

View File

@@ -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}

View File

@@ -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,

View File

@@ -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>
);

View File

@@ -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(),

View File

@@ -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>

View File

@@ -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 (