Apply capitalization guidelines - iteration 2 (#12343) (#12448)

This commit is contained in:
Michael S. Molina
2021-01-22 02:45:12 -03:00
committed by GitHub
parent d80c2ed72a
commit 8532e6d9e1
10 changed files with 14 additions and 14 deletions

View File

@@ -163,7 +163,7 @@ export const DynamicPluginProvider: React.FC = ({ children }) => {
}),
);
} catch (error) {
logging.error('failed to load dynamic plugins', error.stack || error);
logging.error('Failed to load dynamic plugins', error.stack || error);
}
}

View File

@@ -78,7 +78,7 @@ ${extra.issue_codes.map(issueCode => issueCode.message).join('\n')}`;
return (
<ErrorAlert
title={t('%s Error', extra.engine_name || t('DB Engine'))}
title={t('%s Error', extra.engine_name || t('DB engine'))}
subtitle={message}
level={level}
source={source}

View File

@@ -120,7 +120,7 @@ export default function ErrorAlert({
className="link"
onClick={() => setIsModalOpen(true)}
>
{t('See More')}
{t('See more')}
</span>
)}
</div>
@@ -136,7 +136,7 @@ export default function ErrorAlert({
className="link"
onClick={() => setIsBodyExpanded(true)}
>
{t('See More')}
{t('See more')}
</span>
)}
{isBodyExpanded && (
@@ -149,7 +149,7 @@ export default function ErrorAlert({
className="link"
onClick={() => setIsBodyExpanded(false)}
>
{t('See Less')}
{t('See less')}
</span>
</>
)}
@@ -178,7 +178,7 @@ export default function ErrorAlert({
text={copyText}
shouldShowText={false}
wrapped={false}
copyNode={<Button onClick={noOp}>{t('Copy Message')}</Button>}
copyNode={<Button onClick={noOp}>{t('Copy message')}</Button>}
/>
)}
<Button

View File

@@ -23,7 +23,7 @@ import getErrorMessageComponentRegistry from './getErrorMessageComponentRegistry
import { SupersetError, ErrorSource } from './types';
import ErrorAlert from './ErrorAlert';
const DEFAULT_TITLE = t('Unexpected Error');
const DEFAULT_TITLE = t('Unexpected error');
type Props = {
title?: string;

View File

@@ -111,7 +111,7 @@ ${extra.issue_codes.map(issueCode => issueCode.message).join('\n')}`;
return (
<ErrorAlert
title={t('Parameter Error')}
title={t('Parameter error')}
subtitle={message}
level={level}
source={source}

View File

@@ -95,7 +95,7 @@ ${extra.issue_codes.map(issueCode => issueCode.message).join('\n')}`;
return (
<ErrorAlert
title={t('Timeout Error')}
title={t('Timeout error')}
subtitle={subtitle}
level={level}
source={source}

View File

@@ -314,7 +314,7 @@ export default class FilterableTable extends PureComponent<
<CopyToClipboard shouldShowText={false} text={jsonString} />
</Button>
}
modalTitle={t('Cell Content')}
modalTitle={t('Cell content')}
triggerNode={node}
/>
);

View File

@@ -345,7 +345,7 @@ function ListView<T extends object = any>({
className="deselect-all"
onClick={() => toggleAllRowsSelected(false)}
>
{t('Deselect All')}
{t('Deselect all')}
</span>
<div className="divider" />
{bulkActions.map(action => (
@@ -390,7 +390,7 @@ function ListView<T extends object = any>({
<EmptyWrapper className={viewMode}>
<Empty
image={<EmptyImage />}
description={emptyState.message || 'No Data'}
description={emptyState.message || 'No data'}
>
{emptyState.slot || null}
</Empty>

View File

@@ -45,7 +45,7 @@ class RefreshChartOverlay extends React.PureComponent<Props> {
<RefreshOverlayWrapper>
<div>
<Button onClick={this.props.onQuery} buttonStyle="primary">
{t('Run Query')}
{t('Run query')}
</Button>
</div>
</RefreshOverlayWrapper>

View File

@@ -80,7 +80,7 @@ class URLShortLinkModal extends React.Component<
ref={this.setModalRef}
triggerNode={this.props.triggerNode}
beforeOpen={this.getCopyUrl}
modalTitle={this.props.title || t('Share Dashboard')}
modalTitle={this.props.title || t('Share dashboard')}
modalBody={
<div>
<CopyToClipboard