mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
committed by
GitHub
parent
d80c2ed72a
commit
8532e6d9e1
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user